Tails Posted June 17, 2015 Share Posted June 17, 2015 So, I've been testing out the new browser scripting features for MTA 1.5 and made myself a browser. All works good but it only seems to load https://www.youtube.com/. I've tried other websites but they just don't show up. I looked at the whitelist and requestBrowserDomains functions but couldn't quite figure it out yet. Any ideas? Link to comment
Mr.unpredictable. Posted June 17, 2015 Share Posted June 17, 2015 So, I've been testing out the new browser scripting features for MTA 1.5 and made myself a browser. All works good but it only seems to load https://www.youtube.com/. I've tried other websites but they just don't show up. I looked at the whitelist and requestBrowserDomains functions but couldn't quite figure it out yet. Any ideas? It works fine for me, tell me which all links you tried and also can you post your code? Link to comment
John Smith Posted June 17, 2015 Share Posted June 17, 2015 Same happens to me. I can only access youtube.com and other sites all request to be whitelisted by the player, and when they do, they still don't work(google search,google images, any other site than youtube or mtasa.com) Link to comment
Platin Posted June 17, 2015 Share Posted June 17, 2015 Tomas said: Use the [wiki]requestBrowserDomains function. Link to comment
xXMADEXx Posted June 18, 2015 Share Posted June 18, 2015 Use the requestBrowserDomains function. Link to comment
Tails Posted June 20, 2015 Author Share Posted June 20, 2015 Thanks. I got it to work now for other websites but it only shows text, no images or text formatting whatsoever. Link to comment
xXMADEXx Posted June 21, 2015 Share Posted June 21, 2015 Thanks. I got it to work now for other websites but it only shows text, no images or text formatting whatsoever. It's because the website is requesting styles and images from different URL's. You'll need to view the website HTML and request all the websites that the website you're trying to use is using. Example, if this was the page source: <!DOCTYPE html> <html lang='en'> <head> <title>My Sample Site</title> <link href='http://anotherwebsite.co/corestyels.css' type='text/css' rel='stylesheet' /> </head> <body> <img src='http://another_website_img.com/mainimg.png' /> </body> </html> You would need request access to 'http://anotherwebsite.co/ for the styles and http://another_website_img.com for the image. 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