PDA

View Full Version : need help: w/Dynamic Ajax Content and PHP form



drranch
07-16-2006, 04:54 AM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: I loaded the Dynamic Ajax Content script to my main pages header and created a Div tag where I want the new page to load and it works great. However, my new page that loads in the Div tag is a php form and when I fill it out and submit the results are opened in a new page. I would like the results to open in the same Div tag area.

Can any one assist?

jr_yeo
07-16-2006, 04:59 AM
the missing link is
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

jscheuer1
07-16-2006, 05:16 AM
I don't think that this can be done unless php can display the results on an ordinary page without reloading it which, I don't think it can.

What I think you are missing is that Dynamic Ajax Content script doesn't load a page into a division, it loads just the HTML code of a page into a division. It then becomes just one page but, if reloaded, will revert to the page it was before the other page's HTML was loaded into the division.

To get the kind of effect that you are looking for, something other than Dynamic Ajax Content script would probably have to be used. An iframe would probably be your best bet. Load the form into the iframe and load the results into the iframe.

drranch
07-16-2006, 05:34 AM
Thanks for tut! You learn something new every day:D

I'll try the iframe suggestion and see where it takes me.

AND most of all thank you for your time!