Jump to content

Trevor Hinterland

Resident
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Trevor Hinterland

  1. Thank you for all your answers and the suggestion. I've not used frames before but I find it difficult to think how frames can be used to 'pull' the response to the window or any part of the document. Isn't what you are suggesting just setting a property of the frame ? Surely it's not possible to do that becuase you can't set the property to something that isn't there ! The response isn't an url address is it. It's sent out from the hhtp.response. You can't address that from javascript. That's where I'm starting from becuase that is where the response comes from. Not from another document. Sorry to sound stupid but can you explain what you mean a little more. How can the frame be set from an http.response ?
  2. Sorry - You are right. It is confusing. I just want to use my in world prim to hold some persistent data for my webpage javascript. ( I know this is the wrong way round for most people but I can do so much more with LSL than server side scripty so I want to use LSL to do the processing for my javascript. I can submit the data to the prim using method GET in a form or whatever in the javascript In the prim I use HTTP in - do the processing and send the response. I would just klike to read the response back into the page that sent the initial data on the end of the url or by using a post method if possible.
  3. I send data from a javascript on a webpage to an in world prim. I get whatever data I send back to the same javascript it came from I only mentioned PHP becuase I notice it is mentioned in some of the solutions I've tried but if it's possible to go directly from the prim back to the initial webapge with the javascript in it then that would be even better.
  4. I start with a confession. I am stumped in getting this http.response thing to work as I want it to. It's humiliating to admit but there you go ! I'm new to this so I'll keep things simple or rather - you'll need to keep things simple ! I've used the echo world example in the wiki to send some text from a webpage into my in world prim by tagging the data onto the ? part of the url and delightfully got the expected response from the http.response. What i'm trying to do is read the response back into the webpage but all I get is a separate page with just the response. Is it possible to send the response back in the url and read it with javascript location.search ? I've tried that and can't get it to work. I'm not familiar with php but if anyone has an example of how to get the response back and pass it into a javascript variable that would make me very happy. Also - I'm, using a persistent url redirect ( I can't remember the address but it's mentioned in one of the examples) so I think that my confuse issues a little. Thanks for any help. :
×
×
  • Create New...