CobbTheWarriorsRPG Posted September 22, 2015 Share Posted September 22, 2015 Hello all, i am using an example of the wiki, my question is, why if i change the loadBrowserURL it doesnt work?, just work on youtube, thanks! --In order to render the browser on the full screen, we need to know the dimensions. local screenWidth, screenHeight = guiGetScreenSize() --Let's create a new browser in remote mode. local window = guiCreateWindow(0, 0, screenWidth, screenHeight, "Webbrowser", false) local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, window) -- The event onClientBrowserCreated will be triggered, after the browser has been initialized. -- After this event has been triggered, we will be able to load our URL local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser addEventHandler("onClientBrowserCreated", theBrowser, function() -- After the browser has been initialized, we can load [url=https://www.youtube.com]www.youtube.com[/url] loadBrowserURL(source, "https://www.youtube.com")--Here, when i change the url to [url=http://www.google.com]http://www.google.com[/url] it doesnt work end ) Link to comment
MisterQuestions Posted September 23, 2015 Share Posted September 23, 2015 Use requestBrowserDomains.. All others are blocked. Link to comment
CobbTheWarriorsRPG Posted September 24, 2015 Author Share Posted September 24, 2015 Yeah, but if i put eg: facebook.com the web page will be in blank, some help? thanks Link to comment
MIKI785 Posted September 24, 2015 Share Posted September 24, 2015 You habe to request it first, but for example facebook uses tons of subdomains and other domains so for that you should use onClientBrowserResourceBlocked. Link to comment
CobbTheWarriorsRPG Posted September 24, 2015 Author Share Posted September 24, 2015 An example? thanks! Link to comment
xeon17 Posted September 24, 2015 Share Posted September 24, 2015 Check this topic: viewtopic.php?f=104&t=92263 Link to comment
CobbTheWarriorsRPG Posted September 25, 2015 Author Share Posted September 25, 2015 it works!, thanks to all! Link to comment
xeon17 Posted September 25, 2015 Share Posted September 25, 2015 Glad to hear that it works fine 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