PDA

View Full Version : Axax, Javascript, and PHP... Oh my!



deputy963
13 Jun 2007, 08:31 AM
Alright, don't laugh! I'm not even sure this is where this should go. I'm at a loss.

I'm trying to create a Tell A Friend function, but I want to use the Spry collapsible panel built into DW CS3. I've inserted the panel into my page and configured it and the content to look as I want. It's pretty cool. It uses javascript and css to build the panel.

The problem is the PHP scripts I've tried don't inherit the URL from the page as it does when it's used without the ajax panel. Once the form is submitted it doesn't call the form function to actually send the email and load a thank you.

So, for the Dreamweaver/Ajax/Javascript/PHP specialists why doesn't the spry panel inherit the URL? Why won't the script function as it should and complete the actions (send email and display the thank you)? Is it possible?

In a perfect world I would like to stay away from frames, Iframes, popups, and floaters for this. I would like the panel to function, the content to work, and the resulting thank you to be displayed within the panel. Dynamic and neat.
The panel in question is directly below the contents on this page (http://www.davescomputertips.com/Newsletters/test.php).
Thanks a bunch!