Hi All, I have a list of objects displayed on a page. I then have a form that allows you to create a new object. What I want is to have AJAX validate the new object and then once validated properly, I want to create the new object and without refreshing the page, manipulate the DOM to add the new object to the list. The AJAX validation is handled thanks to the following wiki entry:
http://rifers.org/wiki/display/RIFE/Adding+AJAX+Validation+To+Your+Forms The form submission is not so clear. If you go with the typical model of a form posting to a server side object then returning a result, the page will be refreshed which is not what I want. If I were to use AJAX to call a sever side object, do I need a Submission entry in my element? I am a little unclear as to how I should approach this. Lets take this and apply it to the Friends application on rifers.org. Lets say the Friends example lists out all of your friend in a table. You add a new friend and the page is redrawn with the new table and your new friend in it. Now, let's play this my way. I add a new friend and instead of redrawing the page with the new entry, I use JavaScript to add the new friend in the proper location. As you can see, the result is the same but the "getting there" is quite different. One hand, you have a round trip to display the new page with the new friend. On the other hand, which happens to be the approach I want to take, there is no round trip to display the new friend. Is this clear? How should I do this with RIFE? Take care, Jeremy
_______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
