Results 1 to 2 of 2

Thread: Help!...onclick listener isn't working correctly?...any ideas?

  1. #1
    Join Date
    Jul 2013
    Posts
    41
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Help!...onclick listener isn't working correctly?...any ideas?

    Greetings, Oct 9th, 2015

    Curiously, I have been attempting to re-vamp a javascript spell check to load into a div rather than the traditional browser popup dialog which has the "Input form buttons" in a form tag that is set up with listeners of the old document.getElementById('thebutton').onclick rather than the addEvent type listeners! The spell check work fine in the browser dialog popup in both MSIE and FF, however, when switching all over to the div element rather than the popup all works fine in MSIE! Firefox however loads everything fine and the functions loads suggested words etc fine! However, upon selecting a suggested word the word is successfully surrounded by a red border but upon pressing the "Change" button nothing occurs, not even an error in the console? I have set breakpoints everywhere and have determined the "Button Listener" simply isn't catching the click event? I have attempted to alter the location references as well as addressed with "parent.document.getElementById('thebutton').onclick" or "parent.document.body.document.getElementById('thebutton').onclick"! I have tried countless other avenues...any ideas?

    Ted

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Looks like you've forgotten the code, although a reduced demo page would be more useful so that we can see the problem firsthand. (Just the pertinent scripts, markup and CSS)
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. MSIE Freezes onclick event?....Any Ideas?
    By tedteeter in forum JavaScript
    Replies: 1
    Last Post: 10-29-2013, 05:07 AM
  2. Resolved Sessions Aren't Working Correctly....Any Ideas?
    By tedteeter in forum PHP
    Replies: 6
    Last Post: 08-16-2013, 02:13 AM
  3. event listener not working
    By farridav in forum JavaScript
    Replies: 1
    Last Post: 03-23-2010, 09:16 AM
  4. Dynamic top menu not working correctly
    By patentinv in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-25-2009, 12:32 AM
  5. Link CSS not working correctly in FF?
    By Kakouhai in forum CSS
    Replies: 2
    Last Post: 02-10-2007, 02:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •