Is there a ajax/js that will load pages within a div without a refresh/page url changing?
So if i was to add a 3 page / step submission form, when the user press Next then new pages will just load in the DIV. Is this possible?
Is there a ajax/js that will load pages within a div without a refresh/page url changing?
So if i was to add a 3 page / step submission form, when the user press Next then new pages will just load in the DIV. Is this possible?
acctman (08-10-2008)
are their any other versions that you know of? this one seems to be the only one that works http://www.dynamicdrive.com/dynamici...jaxcontent.htm
just wondering if there has been an improved version with less coding since that one was created in 2005.
Perfect example of how THIS thread ties in and is certainly well worth the effort...just wondering if there has been an improved version with less coding since that one was created in 2005.
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
acctman (08-12-2008)
Hmm, not on DD that I know of. You could google around for some though. I don't know of any off the top of my head as I don't really use any of these scripts.
I'm a big jQuery user, so I do most of my AJAX through that. Incidentally, that might be what you're looking for. The code to load an external HTML page into a certain div is as simple as:
Combined with the jQuery Form plugin, you should be all set.Code:$.ajax({ url: "test.html", cache: false, success: function(html){ $("#results").append(html); } });
Let me know if you need any help in setting it up.
acctman (08-12-2008)
Here's an example with a few modifications:
http://niler.net/examples/loadnewpage/file.html
Jeremy | jfein.net
acctman (08-12-2008)
Nile posted a basic example. You should be able to extrapolate from that.
The bigger question is if you really are doing what you say you are. How are you submitting the different sections of the form? Saving them to a cookie? The fact that you say that the last page will be the "submit" page leads me to believe that you're looking for more of a virtual pagination script than something like what Nile and I have posted.
acctman (08-12-2008)
What about with something like this:
http://niler.net/examples/loadnewpage/loadNextpage.html
![]()
Jeremy | jfein.net
acctman (08-12-2008)
The 3 pages would like this user goes to page 1 edits image (hits next) data is processed and saved to image file, page 2 reloads that temp img, and then on page 3 final process of temp & rename when user hits the submit.
Its part of a registration form and the idea is to limit the steps since editing the images is an Option that can be skipped. But there is still 2 other pages the uploading image page and the user info form. So if i can make the entire process seem like 2-3 pages when its actually 5pages that would be great.
Bookmarks