Need help in how to code in such a way that, I should get all the elements of the xml document initially when the page first loads (or something like that) and store the elements in some JavaScript data structure. So that, for subsequent access I can access from that data structure rather than invoking the xml parsing api every time. [ June 06, 2006: Message edited by: Bear Bibeault ]
Naveen
Richard Green
Ranch Hand
Joined: Aug 25, 2005
Posts: 536
posted
0
AJAX?
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
"Mike Corleone", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.
Be aware that accounts with invalid display names are removed.
Naveen, your subject line and your topic seem to have little to do with each other. Please clarify.
Richard Green
Ranch Hand
Joined: Aug 25, 2005
Posts: 536
posted
0
Apologies. I have now changed my display name. [ June 06, 2006: Message edited by: Lynette Dawson ]
Naveen Morrise
Greenhorn
Joined: Jun 06, 2006
Posts: 25
posted
0
I had a JSP page where <form id="frmCreateMain" name="frmCreateMain" method="post" action="matchToPreexisting.jsp" target="addrstand"> has call to the database, which is causing the delay in sending a XML response back which is getting parsed on everykey stroke which is time consuming. So, some how I need to get this delay reduced.
Here the scenario works like below:
The front end is the JSP Page that is displayed to the normal user.
Any thing that is displayed on the GUI, that might be either label or the text box or might be any thing is being populated from XML file.
The underneath XSL file is generating the HTML file based on the XML at the GUI.
And my understanding of the code is correct and sure.
So, if some one can help me in giving me the idea why in the GUI it displays characters or numbers after a while. The amount of delay is significant and can be seen even by the normal user. This is the reason only, why I am thinking how to code in such a way that, getting all the elements of the xml document initially when the page first loads (or something like that) and store the elements in CustomerCreate JavaScript data structure. So that, for subsequent access you can access from that data structure rather than invoking the xml parsing api every time .
If you want it to happen with each keystroke and don't mind waiting, leave it as it is. If you don't want it fired until the user is done working with the given field, use the onchange or onblur event triggers instead.
Naveen Morrise
Greenhorn
Joined: Jun 06, 2006
Posts: 25
posted
0
So, Can I use
fName.attachEvent('onChange',initName); or fName.attachEvent('onBlur',initName);