Hi,
I wanted to make an image button, which I render in fallowing way:

<xsl:template match="wi:action[wi:styling/@type='image']">
  <button type="submit"
          name="[EMAIL PROTECTED]" id="[EMAIL PROTECTED]"
          value="normalize-space(wi:label)">
    <img src="{wi:styling/@src}"
         alt="{normalize-space(wi:label)}"
         title="{normalize-space(wi:hint):>
  </button>
</xsl:template>

It works fine with Mozilla, but when I tried IE I received an exception (there are more than one such button):

uncaught JavaScript exception: at menu (file:/var/www/webapps/ROOT/admin/flows/menu.js, Line 70) at (resource://org/apache/cocoon/woody/flow/javascript/woody2.js, Line 148): java.lang.IllegalStateException: SubmitWidget can only be set once.

Other How can I avoid sending value of unselected button by IE? Of course I can use <input type="image">, but what about more advanced buttons?

I'm using Cocoon 2.1.4-dev.

Regards,
Marcin Okraszewski

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to