dcsimg
October 17, 2018
Hot Topics:

A Workaround for XML Files Too Big for Ajax to Handle

  • August 11, 2010
  • By Octavia Anghel
  • Send Email »
  • More Articles »

A simple way to transfer XML documents onto a server is to use an Ajax-driven Web interface to upload the files. However, this approach won't work for huge XML files because Ajax doesn't support uploading of files that large. In her PHPBuilder.com article, Octavia Andreea Anghel demonstrates an innovative solution for transferring huge XML documents on the server via a Web interface using Ajax and the GET method. The solution works like this:

  1. Transform the XML documents into a character string.
  2. Split the character string into equal chunks (400 characters).
  3. Save each chunk as a value in an array.
  4. Transfer the chunks one by one using the Ajax mechanism into the final XML document.

Read the full story at PHPBuilder:
Transferring Huge XML Documents in PHP with an Ajax-driven Web Interface






Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date