PDA

View Full Version : Dynamic AJAX content w/ Forms



NXArmada
04-10-2006, 02:16 PM
Is there a way to get Dynamic AJAX Content (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm) to work with a form like this:



<form name="form" action="search.php" method="get">
<input type="text" name="q" />
<input type="image" name="submit" value="Search" id="submit" src="_img/Search.png">
</form>

ddadmin
04-10-2006, 09:59 PM
Please do a search on the forums. Here's one solution: http://www.dynamicdrive.com/forums/showthread.php?t=7960

NXArmada
04-11-2006, 01:21 PM
I got it to work, just forgot to post my results.

I did this to get it to work:


<form name="form" action="javascript:ajaxpage('search.php?q='+document.getElementById('q').value+'&Submit=Search', 'content');" method="get">
<input type="text" id="q" name="q" />
<input type="image" name="submit" value="Search" id="submit" src="_img/Search.png">
</form>