When I click on a URL with the link "javascript:$('#dialog-modal').dialog('open');" in Chrome and FF my Jquery dialog loads. In Internet explorer 8 the page source disappears and is replaced with "[object Object]" .. WTH?
Internet Explorer Incompatibility - page just shows "[object Object]" WTH?
2k Views Asked by Chris At
2
There are 2 best solutions below
0
mbokil
On
The problem is IE8 expects you to do something with the click event. The below code works and has been tested in Firefox, chrome, IE8. Notice you need the void(0) to make it work.
<a class="dialogBtn" href="javascript:$('#layer1').hide();void(0);" style="text-decoration:none;color:#FFF">OK</a>
Or you can use this syntax:
<a class="dialogBtn" href="javascript:void(0);" onclick="$('#layer1').hide();" style="text-decoration:none;color:#FFF">OK</a>
Related Questions in INTERNET-EXPLORER
- How do I wrap text in a pre tag for Internet explorer?
- How do I extract info from crunchbase
- Jquery on submit ajax post needs two clicks in IE
- SSL certificate error 403.13 in IIS 7.5
- Hiding Script Errors popups in IE8
- Internet explorer 11 browser cannot display the expires value of the session cookie from my app
- Internet Explorer hover/rgba/opacity/css3 compatibility
- How to wait for a java applet to load when automating Internet Explorer?
- Javascript Event.originalEvent.path IE8 error
- cursor: copy not working in Internet Expoler
- input[type="submit"][disabled] not working for IE8
- Auothotkey: Remove string, placement string in subject box
- Why does IE show junk for my dasBlog blog?
- Lag in scrolling behavior on IE 10 and IE Edge modes
- Using angularJS click on enter form functionality in Internet Explorer
Related Questions in INTERNET-EXPLORER-8
- How do I get Developer Tools to show error location in IE8
- Static bootstrap template works on webserver but not locally on IE8
- IE8 Unresponsive script error popup on Elements reset
- IE8 headaches - Does not recognize white-space: pre-wrap
- Jquery IE8 issues with .html
- Weird Attribute in HTML
- ReCaptcha V2.0 IE 8 script error 5009 'Node' is undefined
- IE 8 - .files attribute workaround
- replace not working in IE8
- Google reCaptcha IE8
- IE8 :active selector not working if child is clicked
- JavaScript - Prevent "CTRL" and "ALT" being used for special characters
- Keydown function to prevent letters - How to load function before key is entered
- function.bind() not supported in IE8. make it available specifically for IE8 browsers? or keep it generic
- Object doesn't support this property or method - jquery - IE8
Related Questions in CROSS-BROWSER
- How can I get a button on the side of a text box to be perfectly aligned all the time?
- Opening Browser Instances from different Vendors
- Firefox not recognizing background-size: cover with Cycle2 Slider injections
- CSS Works in Chrome but not Firefox
- Page cached tracking using javascript
- Browser compatibility of Polymer
- IE compatibility Changing is not working in Windows10 using meta tag
- Cross browser kerning properly technique
- Chrome and Opera refuse to transition from flex: 0 to flex: 1
- How often do Apple update fixes for Safari on iOS?
- Different text align behavior for firefox
- video not getting in ie and mozilla in bootstrap framework
- Translation with Zend Translate only works in OSX Firefox, no others browsers
- Custom cursor not working in IE8
- Get innerWidth of Bootstrap button (crossbrowser)
Related Questions in IE8-COMPATIBILITY-MODE
- IE8 Compatablity in iframe for ie10 page
- Respond.min.js works only in IE 8 emulation mode of IE 11
- How do websites get recognized as in the intranet zone for IE compatibility mode
- indexOf() Error on IE8 with SharePoint
- compatibility and identification of browser with compatibility view
- box-shadow IE8 not working on IE8
- How to find the actual IE browser version, ignoring the document mode that it uses?
- Compatibility Mode button still there even with IE=edge
- UL not displaying in IE8 Compatability Mode
- How come display none from javascript does not make thing disappear sometimes?
- vertical alignment issue compatibility mode IE
- Internet Explorer Incompatibility - page just shows "[object Object]" WTH?
- Basic CSS debugging in Internet Explorer 8 using compatibility mode
- IE Compatibility Mode Bug
- IE 8 Chinese encoding characters
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In Internet Explodezor JQuery doesnt seem to work via hyperlinks. Therefore I encapsulated this inside a function and just called the function.
Edit: Seriously whyyy do I have to wait 2 days to accept my own answer....