ok.. if anyone cares about this little saga, you will see various
submit buttons on my login form at
http://simplefoodie.com/iphone/
(just click on cookbook to see it slide in.

I figured out that for the addEventListener to work, you need to have
an  href="#" at minimum in the a tag!

The reason this eluded me is that in search dialog, there is is none,
but it is a button class rewrite into the toolbar div where there is
a  href="#" in that original a tag.

I hope this is all put to rest now. I am testing this now to make
sure.

Had it not worked in all other iterations and various places, this
would have been a quicker isolate on the issue.

Thanks Sean for the direction.



On Jun 3, 3:20 pm, drewdeal <[email protected]> wrote:
> Hi Sean.
>
> Yes, I added Method=POST a while back which fixed it for me too on
> iphoney and my G1.
>
> OK, I took your advice and used the SDK instead of iPhoney and using
> alerts, etc. i was able to isolate the problem further.
>
> It turns out that for links like:
> <a class="blueButton" type="submit">Sign In</a>
> A click does not even trigger the   addEventListener("click", function
> (event)
>
> Whereas:
>  <a class="button blueButton" type="submit">Search</a>
> is picked up without any problem at all!
>
> So.. the only other differences seem to be their depth of embedding,
> where the login form is not a dialog class, and is in a div.. so....
> THIS IS THE LOGIN FORM THAT DOES NOT WORK:
>
> <div id="login" class="panel" title="Sign In" style="left: 0%;"
> selected="true">
> <h2>Sign in to Access your Account</h2>
> <form id="LoginForm" method="post" action="login.htm">
> <fieldset>
> <label class="altLabel">Email:</label>
> <input type="text" name="email"/>
> <br/>
> <label class="altLabel">Pass:</label>
> <input type="password" name="password"/>
> <br/>
> <br/>
> <a class="whiteButton" type="submit">Sign In</a>
>
> THIS IS THE ONE THAT DOES:
> <form id="searchForm" class="dialog" method="post"
> action="search.htm">
> <fieldset>
> <h1>Search Recipes</h1>
> <a class="button leftButton" type="cancel">Cancel</a>
> <a class="button blueButton" type="submit">Search</a>
> <select id="cat" name="cat">
> </select>
> <label class="altLabel">Search:</label>
>
> On Jun 3, 1:48 pm, drewdeal <[email protected]> wrote:
>
> > I have the SDK, so I'll try the simulator instead, thanks.
>
> > Specifically the agent for his phone is...
>
> > Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us)
> > AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5H11
> > Safari/525.20
>
> > I am losing my head on why this does not work for him, and am
> > resorting to things like:
>
> >         else if (link.getAttribute("type") == "submit"){
> >                         alert("herman, does this show?");
> >             submitForm(findParent(link, "form"));
> >                 }
>
> > not knowing if he would see this anyway.
> > Quite the challenge here as I never thought the framework would have
> > so many issues.
>
> > .. and I thank you for taking on the release of a new version soon,
> > BTW.
>
> > Andrew
>
> > On Jun 3, 12:31 pm, Sean Gilligan <[email protected]> wrote:
>
> > > drewdeal wrote:
> > > > Thanks Ben.
>
> > > > I made that change before that fixed the dialog for for all.
>
> > > Ben's change (adding method="POST") to the form fixed the problem for you?
>
> > > >  He has
> > > > success with the dialog box forms.
>
> > > "He" is your client with the "early" iPhone?
>
> > > -- Sean
>
> > > p.s.  http://simplefoodie.com/iphonelooksreallynice!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to