RobG wrote:

I don't use iUI, it seems you shouldn't be either (for this at least).


What Rolf wants to do is a perfectly good use of iUI and if you run into issues/bugs in iUI we will fix them.


  <input type='submit' name='s1' value='s1' />
  <input type='submit' name='s2' value='s2' />
  <a class="whiteButton" type="submit" name='a1'>a1</a>
  <a class="whiteButton" type="submit" name='a2'>a2</a>

You should use inputs for submit buttons, not A elements. That way,
only the one that is clicked on will be succssful and it will be the
only one sent to the server.

This is the best way to do it with or without iUI.


The type attribute should not be used this way - it is intended as a
hint to the browser regarding the content (MIME) type that will be
returned by a link. If the browser doesn't understand the type, it may
ignore the link.

I suppose iUI wants it that way - regardless, it is bad design.


RobG is right, it is not an ideal design and iUI is migrating away from that approach.




So it is impossible to find out in index.php which button has been
cklicked.

Likely because the wrong data is being sent to it.

And this is likely because you have not successfully disabled Ajax form submission.

What am I doing wrong?

Using script where a plain form would be better? :-)

target="_self" disables the script and submits the form without Ajax.


-- Sean

-- 
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