473,395 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

User uploads XML, page reads XML and adjusts settings all in javascript

Hello, I have a page with a few forms up at http://niceguy.wustl.edu/NEISGEI/OMIComp/session.php

I'm trying to work on a way to save and load the page session.
So, what I want is for the user to be able to save and load an xml
file that holds the input values.
Ideally, the user clicks browse, selects their xml file, clicks Load,
and without a refresh all the selection boxes are adjusted to the
settings in the xml file.

Does anyone know if this is possible? I can upload the xml file using
php and then read it with Ajax, but I haven't tied that all in to one
page/action yet.

If anyone had any tips on how to read a remote xml file and then
perform actions, I would GREATLY appreciate it.

Thanks!
-Ed

Aug 3 '07 #1
2 1206
Which do you need to do? If you can upload the xml file via php, you
should be able to read it server-side. Do you actually need to read
it client-side? You could have the user paste the contents into a text
box and then load the xml from there. I don't know if you can load
xml from a user's local machine.

Aug 3 '07 #2
Pasting the xml would work, I might go with that, but I don't think my
boss would want that.

I think I'm going to have to upload it to the server and then read it
and apply changes. Do you know if it possible to do all this without
reloading the page?

My problem with using my php upload example is that the 95% of my page
is written in javascript. The php upload example is completely
separate file that I was merely testing how to upload. If I use
<input type="file">, I would have to submit that form and deal with it
in another page right, or on a reload for my main page? I guess this
wouldn't be too bad.

Aug 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----==...
6
by: nwheavyw8 | last post by:
I am currently trying to write a simple PHP script that will split an uploading file up into 500kb "chunks", then read and concatenate them back together when accessed for download. I can't seem...
1
by: M K | last post by:
Our production software (which works with images) has an internal webserver operating on port 80. This resides in within our firewall. It processes scripts (kpl scripts) that generate an image. So...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
3
by: Steve Long | last post by:
Hello. Can anyone tell me the proper way to save the properties of a user control between design time and run time? So, I've got this user control with the following properties: BarColor1...
3
by: dcaveney | last post by:
Is there any way to replace the "src" attribute of an <imgelement with the name of a file on the client (obtained by a <input type="file"...element, for example) in such a way that the page then...
5
eragon
by: eragon | last post by:
I wrote this function to create a new file when the user posts in my forums, and its not creating a new file, can you help me? this script is not copyrighted as the last one. function...
2
by: PWS | last post by:
Hi all, I developed an online learning website where each student has his own username/password and they can view course materials and take tests online. I did that in PHP and PostgreSQL. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.