Tuesday, March 10, 2015
Jquery ui dialog links causing a problem
So I ran into a problem today. Worked in Chrome, didnt work in Firefox and IE. Links inside JqueryUI dialog didnt open. Actually they caused some weird blocking of Jquery itself.
The case:
0. The core:
Jquery 1.4.2
Jquery 1.8.2
ASP.NET
1. Calling the Jquery UI dialog:
< onclick="$(#ArhivFilesDiv).dialog({ width: 350, height: 500, show: fade, hide: fade});">
Open
< /a >
2. The Div
< id="ArhivFilesDiv">
< href="/files/somefile.pdf">File name< /a >
< /div >
3. Result:
Dialog opens nicely, the link visible.
Any click on the link inside dialog causes freezing. The Jquery does something... indefinetly.
4. Solution:
Item 2 changed to:
< id="ArhivFilesDiv">
< onclick="window.open=http://www.blogger.com/files/somefile.pdf">File name
< /span >
< /div >
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.