Ive got a page that has several dynmically created links and each on has an onclick event to open a modal popup with further details on that item.
The problem I have is that it works perfectly in FF but not in IE (I'm using v7). There are no javascript errors, it just does not respond to the click event.
I can see that it creates the onclick in event for each item in the source, is there anything special I have to do to make this work in IE?
I noticed your passing your numbers in as strings instead of integers eg onclick="ShowModalPopup('1629'); and I have had numerous errors with doing something like this. Take out the ' from around the 1629 and see if IE7 likes it better.
I noticed your passing your numbers in as strings instead of integers eg onclick="ShowModalPopup('1629'); and I have had numerous errors with doing something like this. Take out the ' from around the 1629 and see if IE7 likes it better.
Ok. The onclick has been supported in ie since v3 for the a tag. I suggest removing each of the functions in the onclick one at a time and seeing if you can narrow down the problem to a single function. If that works then you could put the animate function inside the ShowModalPopup function at the end. If not then try changing onclick="ShowModalPopup('1599'); animate('divPreview');" to href="javascript:ShowModalPopup('1599'); animate('divPreview');" and see what you get. Let me know your results.
I just tried the code you supplied in ie7 and the onclick is working fine altho I do not have the full code to test further so I'm betting something in your javascript is causing it to muck up somewhere.
Bookmarks