Jump to content

Http-in / AJAX / Proxy


Snippy Yifu
 Share

You are about to reply to a thread that has been inactive for 4643 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi everyone.

I tried to use the method described here: http://wiki.secondlife.com/wiki/LSL-Shared_Media_Communication

The goal is to have a webpage pulling information from an object inside SL without having to reload the page (AJAX style :P).

 

Because of AJAX cross-domain restriction, as explained in the wiki page I linked above, one work around is to use PHP to proxy the http-request.

The problem I'm having is ... it doesn't work.

The HTTP_REQUEST event in the SL object is never triggered if the request is made through that php proxy. It looks to me as if the cap server is just ignoring the request.

The php code works fine tho for any other non-sl urls, and my sl-urls works fine when accessed normaly (not through the php proxy), it's just when you put the two together that it doesn't work.

 

Any idea/input on the subject would help greatly, thanks.

Link to comment
Share on other sites

you can actually get more simple... dynamically write a script element with a src targeting  the lsl object page... format the page being sent from lsl as a ECMA variable, then read the variable when the script element loads, and then destry the script element after you've used it..

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4643 days.

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
 Share

×
×
  • Create New...