November 5th, 2008, 05:15 PM
Need help with AJAX and JSF
I need help with following scenario:
I have a XML file wherein the parameters of different pop-up windows are stored(height,width,left,top).
Now the User can change the position and size of the pop-ups and clicks a "Save settings" button on the Pop-up.When the user clicks, the new coordinates will be saved into the XMl so that whenever he opend that pop-up it opens in the new location with new coordinates.
Can you guys please help me out in this. How should I proceed ?
1. Should I use AJAX for this such that AJAX reads the coordinates from XML files and updates it ?
Please help me out in this.
February 6th, 2009, 04:51 PM
Re: Need help with AJAX and JSF
From my own experiences, I suggest that you wrap the XML config files with an object on the server side. AJAX then doesn't need to know how the data is stored, it only needs to make the asynchronous call to retrieve and store the values.
If you want to handle this on the client-side, then I suggest *storing* it on the client-side, i.e. in a cookie.
Meddle not in the affairs of dragons, human, for thou art crunchy and taste good with ketchup.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!