Jump to content

Returning *as* a script is in progress?


Anidazen

Recommended Posts

Hey guys.

 

I've never created an AJAX application, but I've looked at tutorials etc, and I think I understand the concepts.

 

The problem is, my script is designed to update piece-by-piece. This means not waiting for the called page to finish loading. How can I update as each different section of my script is ready? I can write any javascript, no problems -- do I need to use iframes or is there a clean way?

 

Thanks in advance.

 

 

 

Just to clarify... I would be fine doing this with an Iframe. I'd just pass arguments to the PHP in the URL, then write parent.function1("Values");

- or something similar.

 

What I don't understand is how to call functions in a similar way from the XMLRequest thingy that's used for cleaner AJAX -- without waiting for the entire page to load?

Link to comment
https://forums.phpfreaks.com/topic/77869-returning-as-a-script-is-in-progress/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.