XbabylonX Posted March 13, 2015 Share Posted March 13, 2015 Hello,I can easily set a webpage to be displayed on a prim's single face by setting it through its properties window but I cant achieve the same using llSetPrimMediaParamsIs it my viewers settings (firestorm)? Or am I missing something else in the script file?Thank you. Link to comment Share on other sites More sharing options...
XbabylonX Posted March 13, 2015 Author Share Posted March 13, 2015 Ok, please ignore this thread, my internet connection or the place at which I was scripting was causing big latencies so the script didnt function. Im sorry. Link to comment Share on other sites More sharing options...
XbabylonX Posted March 13, 2015 Author Share Posted March 13, 2015 Ok, lets give this a meaning. I loaded a webpage which has external links to another domain. Clicking on them seems to take you where they should. Is this a limitation? Link to comment Share on other sites More sharing options...
Ohjiro Watanabe Posted March 13, 2015 Share Posted March 13, 2015 Links should work the same as if you were viewing the page from your browser. They won't work if you are editing the prim. Link to comment Share on other sites More sharing options...
XbabylonX Posted March 13, 2015 Author Share Posted March 13, 2015 Hi, I made a mistake in my last post. "Clicking on them seems to take you where they should." should be "Clicking on them seems NOT to take you where they should." For example, having the following code: default{ state_entry() {string html = "data:text/html,<a href='http://www.google.com'>TEST</a>"; llSetPrimMediaParams(0, [PRIM_MEDIA_AUTO_PLAY,TRUE, PRIM_MEDIA_CURRENT_URL,html, PRIM_MEDIA_HOME_URL,html, PRIM_MEDIA_HEIGHT_PIXELS,512, PRIM_MEDIA_WIDTH_PIXELS,512]); }} A white background with a linking TEST word are displayed. Clicking though on it, does nothing. Same happens when you load a website through prim's properties. The links in this website which point to different domains do not work. Thank you for your response. Link to comment Share on other sites More sharing options...
Qwalyphi Korpov Posted March 14, 2015 Share Posted March 14, 2015 XbabylonX wrote: Hi, I made a mistake in my last post. "Clicking on them seems to take you where they should." should be "Clicking on them seems NOT to take you where they should." For example, having the following code: default{ state_entry() {string html = "data:text/html,<a href='http://www.google.com'>TEST</a>"; llSetPrimMediaParams(0, [PRIM_MEDIA_AUTO_PLAY,TRUE, PRIM_MEDIA_CURRENT_URL,html, PRIM_MEDIA_HOME_URL,html, PRIM_MEDIA_HEIGHT_PIXELS,512, PRIM_MEDIA_WIDTH_PIXELS,512]); }} A white background with a linking TEST word are displayed. Clicking though on it, does nothing. Same happens when you load a website through prim's properties. The links in this website which point to different domains do not work. Thank you for your response. I tried to have your problem and couldn't make it happen. Other than while editing the prim - which was mentioned before. There are options which can be set to prevent navigation & interaction. However that seems to allow navigation and interaction followed by setting the content back to what it had been. I was confused for a bit because your code example was changed by some internet magic to show 'data&colon' where 'data' is immediately followd by ':' Link to comment Share on other sites More sharing options...
XbabylonX Posted March 14, 2015 Author Share Posted March 14, 2015 You are right, I just tried and it worked, seems a lot of lag prevents things work at the place I am. Btw, is it possible to click that link and open it in local browser? Link to comment Share on other sites More sharing options...
Qwalyphi Korpov Posted March 14, 2015 Share Posted March 14, 2015 XbabylonX wrote: You are right, I just tried and it worked, seems a lot of lag prevents things work at the place I am. Btw, is it possible to click that link and open it in local browser? The control bar can be used to open the current URL in a browser - local or external depending on your preferences. I haven't found a way to open a link in a browser interacting with Media On A Prim. Link to comment Share on other sites More sharing options...
XbabylonX Posted March 14, 2015 Author Share Posted March 14, 2015 Yeah, it seems so. Links can only open inside the prim. Too bad. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now