Fork me on GitHub

xhtml compliance and Forms (solution found)  Bottom

  • In the application I am working on I use forms alot to pass args to the recieving pages. This is a problem when I have more then one form on a page that does this. Everything that I have found says that XHTML doesn't support the name attribute on a form. Does anyone have a suggestion on how to handle this?
  • I assume that your using the name field combined with some javascript? If so you'll have to rewrite the javascript to use getElementByID then use the id parameter on your forms/form components.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • I was just using the javascript.document.name.submit

    so just change it out with javascript.document.getElementByID("id").submit

    That seem correct?
  • Not 100% sure... my javascript isn't great. At this point google is your friend.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Just for sake of anyone else looking for this solution the correct syntax is.

    Code

    <form action="<!--[pnmodurl modname="modname" type="user" func="function"]-->" method="post" id="form_id">
    <a href="#"onclick="document.getElementById('form_id').submit();return false;" title="<!--[pnml name="_VIEWALLYOURTICKETS"]-->" />

This list is based on users active over the last 60 minutes.