| Issue 151: | Receive "Function Expected" error in IE when using a form | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
Used IE 7
Created the following:
call jquery 1.2.6
nyroModal 1.3.1
script
$('#editData').submit(function(e) {
e.preventDefault();
$('#editData').nyroModalManual({
modal: false,
showLoading: 'showLoading',
bgColor: '#666666',
width: 535,
height: 600,
minWidth: 535, // Minimum width
minHeight: 600, // Minimum height
resizeable: true, // Indicate if the content is resizable. Will be set
to false for swf
autoSizable: true,
closeButton: '<a href="#" class="nyroModalClose" id="closeBut"
title="close">Close</a>' // Adding automaticly as the first child of
#nyroModalWrapper
});
return false;
});
html
<form action="test.cfm" method="post" id="editData" >
<input type="hidden" name="caseId" id="caseId" value="1970" />
<input type="hidden" name="taskEvent" id="taskEvent"
value="Analyst_Review" />
<input type="hidden" name="returnQueue" id="returnQueue"
value="In_Process" />
<input type="submit" name="btnAssignAnalyst" value="Move to Analyst
Review" class="buttonStyle2">
</form>
As per example expected test.cfm to load and pass form variables.
Instead get the following error
"Function Expected"
When I used the source files for jQuery and nyroModal it gave me line
number 1039 (most like jQuery)
Now if I add target="_blank" it does open model window but no form
variables passed.
This originally was in a Coldfusion framework but also experience the issue
when use straigh .html files.
Jan 28, 2009
So how do I know that #editData should use nyroModal? Should I attach the class="nyroModal" to form? Thanks
Jan 29, 2009
ok Thanks what a silly error. I tried the code you suggested and I must be doing something wrong as it did not work. That said, I am now getting a "the requested content cannot be loaded..." error. I am using the code I posted at the beginning with the showLoading correct. As best I can the response back was correct. Thanks
Jan 29, 2009
Sorry for the broken english. On the last issue The modal opens but the form data does not seem to submit to it (no form vars passed).
Jan 31, 2009
Actually the code I wanted to write was:
$('#editData').nyroModal({
modal: false,
bgColor: '#666666',
width: 535,
height: 600,
minWidth: 535, // Minimum width
minHeight: 600 // Minimum height
});
It's up to you to know if you need the manual call or simply use the class in the HTML.
I wrote different way to use to let the ability to the developer to choose which one
will fit the best with him needs.
Feb 11, 2009
Does it work now?
Feb 16, 2009
mdimassasongko, Try to use the last jQuery version first please (and next time, create a new issue for you problem)
Feb 16, 2009
the demo of the version 1.3.1 included a mistake on line 59 replace }): by }); please
Feb 16, 2009
i have to change on line 59 replace }): by }); and not succesfully ...why ...? thanks ...
Feb 16, 2009
i'm try in IE6 ...
Feb 16, 2009
You get back to the 1.3.1 version which was bogus in the debug mode in IE...
Feb 16, 2009
catch you ...i'm removing nyromodal version 1.4.1 and get back to the 1.3.1 version . i was insert jquery 1.3.1 and insert nyromodal 1.3.1 why not work? thanks....
Feb 16, 2009
Use jQuery 1.3.1 and nyroModal 1.4.1 !
Feb 16, 2009
Mr. cedric thanks for your support. But i try to use jQuery 1.3.1 and nyroModal 1.4.1 . I'm having error again. why not work again ? thanks
Jul 23, 2009
(No comment was entered for this change.)
Status:
Fixed
|
||||||||
Your bug comes from the line: showLoading: 'showLoading' it should be a function, not a string! Remove the line and you shouldn't have the bug. Then, instead of using the submit function, why don't use directly the nyroModal one like that: $('#editData').submit({ modal: false, bgColor: '#666666', width: 535, height: 600, minWidth: 535, // Minimum width minHeight: 600 // Minimum height }); I also removed the default values.