The Artima Developer Community
Sponsored Link

Java Buzz Forum
Safari Issue: Cascading of mouse events and why input type="submit" wasn't working

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Safari Issue: Cascading of mouse events and why input type="submit" wasn't working Posted: Apr 24, 2006 9:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Safari Issue: Cascading of mouse events and why input type="submit" wasn't working
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

For some reason the submit button on a search widget wasn't submitting under Safari. It works totally fine in the other browsers, but Safari? nothing.

Hmm. The onsubmit event wasn't even getting called. You click the button, and nothing.

Is it one of the annoying bugs to do with naming the submit button or something lame like that?

Nope, this one turned out to be due to an event handler placed on the body element:

document.getElementsByTagName("body").item(0).onclick = function() {}

Safari would take this click and call this function, and wouldn't run the click event that the submit button has intrinsically.

Of course, the line of code above didn't actually exist, it was created via the myriad of JavaScript libraries that this web application was using.

Read: Safari Issue: Cascading of mouse events and why input type="submit" wasn't working

Topic: OMBPlus - Create mapping with operators Previous Topic   Next Topic Topic: Good accessibility required for Dutch government websites

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use