Hi Folks,
I am trying to create a simple form with a select list and a submit
button, similar to that shown below.
Unfortunately, however, it seems to be reloading the whole page,
rather than doing an Ajax submit.
The code looks like this:
<ul id="meetings10072010" title="Meetings" selected="true">
<li class="group">Sat 10 Jul 2010</li>
<li><a href='/index.htm?method=index&d=9&m=7&y=2010'
title="Fields">Previous Day</a></li>
<li><a href='/index.htm?method=index&d=11&m=7&y=2010'
title="Fields">Next Day</a></li>
<li>
<form action="/index.htm?
method=index&d=10&m=7&y=2010" method="get">
<select id="dateString" name="dateString">
<option value="28/06/2010">Mon 28 Jun 2010</
option>
<option value="29/06/2010">Tue 29 Jun 2010</
option>
<option value="30/06/2010">Wed 30 Jun 2010</
option>
<option value="01/07/2010">Thu 1 Jul 2010</option>
<option value="02/07/2010">Fri 2 Jul 2010</option>
<option value="03/07/2010">Sat 3 Jul 2010</option>
<option value="04/07/2010">Sun 4 Jul 2010</option>
<option value="05/07/2010">Mon 5 Jul 2010</option>
<option value="06/07/2010">Tue 6 Jul 2010</option>
<option value="07/07/2010">Wed 7 Jul 2010</option>
<option value="08/07/2010">Thu 8 Jul 2010</option>
<option value="09/07/2010">Fri 9 Jul 2010</option>
<option value="10/07/2010">Sat 10 Jul 2010</
option>
<option value="11/07/2010">Sun 11 Jul 2010</
option>
<option value="12/07/2010">Mon 12 Jul 2010</
option>
<option value="13/07/2010">Tue 13 Jul 2010</
option>
<option value="14/07/2010">Wed 14 Jul 2010</
option>
<option value="15/07/2010">Thu 15 Jul 2010</
option>
</select>
<input type="submit" value="Go">
</form>
</li>
</ul>
Any suggestions on why this is not doing an Ajax submit? I had a
quick look in the forms that suggested using target="_self" if you
*don't* want the Ajax submit, but my problem is that I do want it and
it's not happening.
Additionally, I put the form itself in the last <li></li> - not sure
if that is the problem, but that was the only way I could work out to
get it to display.
The rest of project is based on the "digg" sample if that helps
identify what's happening...
Best regards,
Andrew.
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en.