Error/Bug? BlockUI problems.
in Using jQuery
•
12 years ago
Hi guys.
As I'm sure you've heard countless times before, jQuery is a product I cannot live without, I use it on every app I create.
From the simple to the massively complex, it cuts down my coding time massively, and since I live from my coding, I can't thank you guys enough for making coding a joy once again.
Your latest release, v1.4 produces the following error:
uncaught exception: [Exception... "Could not convert JavaScript argument arg 0" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.js :: anonymous :: line 4449" data: no]
http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.js
Line 4452
Whenever I try and create a modal block using blockUI,
I've isolated the code that produces it:
(I create the iframe and div markup on the fly)
var pgHdr = mainContain.find('div#pageHeader');
var tmpRow = pgHdr.after("<div id='resmanagebox' style=\"width:464px; height:800px; border:none; line-height:18px; margin-left:42px; margin-top:19px; \"><center><div style=\"width: 320px;\"><a class=\"ovalbutton ovalbuttonSM ovalbuttonSMRD\" style=\"margin: 6px 6px 6px 45px; text-align: center; width:250px;\" href=\"javascript:var emptyanchor=0;\"><span style=\"font-face:Verdana; letter-spacing:1px;\">click here to close managing panel</span></a></div></center><iframe allowTransparency='true' scrolling='auto' src='' width='464px' height='800px' frameborder='0' style=\"width:464px; height:800px; margin:25px 0px;\" id='resmanageframe' name='resmanageframe'></iframe></div>");
var newRow = pgHdr.next();
(Then I try and start the block, this is where the error happens)
newRow.block({message:'<span class="tankload tankloadmini" style="visibility:visible;color:#000; left:0px; top:25px; background-position:right;">loading</span>',overlayCSS: { backgroundColor: '#fff' },centerY: 0, css: { top: '39px', border:'none', backgroundColor:'transparent' } });
I would love some advice on what I can do to fix this...
Thanks and keep up the GREAT work.
Marcus Eby -
Owner - EnglishBayInc.com
Author: HTML Studio Skills
2