ali Posted July 20, 2015 Share Posted July 20, 2015 (edited) local screenW, screenH = guiGetScreenSize() local window = guiCreateWindow((screenW - 1024) / 2, (screenH - 768) / 2, 1024, 768, "Web browser", false) local browser = guiCreateBrowser(9, 50, 987, 645, false, false, false, window) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://google.com") end ) why do i keep getting blank screen? Edited July 20, 2015 by Guest Link to comment
koeno100 Posted July 20, 2015 Share Posted July 20, 2015 local screenW, screenH = guiGetScreenSize() local window = guiCreateWindow((screenW - 1024) / 2, (screenH - 768) / 2, 1024, 768, "Web browser", false) local browser = guiCreateBrowser(9, 50, 987, 645, false, false, false, window) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://google.com") end ) Link to comment
koeno100 Posted July 20, 2015 Share Posted July 20, 2015 Oh sorry If you do /debugscript 3, does it show any errors? ANd maybe silly, but are you sure you're using 1.5? It worked for me EDIT: Try using http://www.google.com instead of http://google.com Link to comment
ali Posted July 20, 2015 Author Share Posted July 20, 2015 no errors and yes i am using 1.5 Link to comment
koeno100 Posted July 20, 2015 Share Posted July 20, 2015 I've tried it out, and it does work on other URLs, I just think Google isn't supported or something... Link to comment
koeno100 Posted July 20, 2015 Share Posted July 20, 2015 I did "isBrowserDomainBlocked("http://google.com")" and it returnd true, so Google is not supported Link to comment
xeon17 Posted July 20, 2015 Share Posted July 20, 2015 Troubleshootinggoogle.com doesn't work (even though I requested google.com) Google redirects to a country specific website by default. If you want to prevent Google from doing this, load the following URL: https://www.google.com/ncr Link to comment
EH10 Posted July 20, 2015 Share Posted July 20, 2015 Google .. Pakistan # local screenW, screenH = guiGetScreenSize() local window = guiCreateWindow((screenW - 1024) / 2, (screenH - 768) / 2, 1024, 768, "Web browser", false) local browser = guiCreateBrowser(9, 50, 987, 645, false, false, false, window) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "https://www.google.com.pk/") end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now