How would I go about checking this? Well Firefox give me the full source code when I select the web developers tools. What does a typical binding look like? Thanks for your help.
<p>Someone the jquery forum pointed out that the unhandled exception was for Trip, while the value is "trip"</p> <p></p> <p>Turns out jquery fails because of the label "buy trip" </p> <p>That space there really messes things up for
jquery.</p>
wavemaster
Participant
1279 Points
1125 Posts
selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 04:22 AM|LINK
Dialog with 6 tabs.
Tab 6 has four dialog boxes.
As soon as I select any of these checkboxes I get an Javascript runtime error for an unhandled exception: followed by the name of the check box.
These check boxes are straight HTML right, why would JS be involved in any of this?
Any ideas on how to resolve this?
TIA
Robert
<div id="tabs-6"> <h3>Purchase</h3> <p></p> <form method="post" action="DetailsDialog.cshtml"> <table> <tr><td>Buy T:</td><td><input type="checkbox" name="t" value="yes" /></td></tr> <tr><td>Buy Tr:</td><td><input type="checkbox" name="tr" value="yes" /></td></tr> <tr><td>Buy In:</td><td><input type="checkbox" name="in" value="yes" /></td></tr> <tr><td>Rel:</td><td><input type="checkbox" name="rel" value="yes" /></td></tr> </table> <div class="message info"> <p>T Purchase</p> <h5>You agree to.. </h5> <p>Release</p> <h5>You ag.. </h5> <p>Terms</p> <h5>You agree.. </h5> <p></p> <h5>By clicking Agree you have accepted these terms.</h5> </div> <input type="submit" name="action" value="Agree"> </form> </div>ferrymeidian...
Member
500 Points
126 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 04:37 AM|LINK
Check your full source code of the page, I guess there is jQuery event binding to those checkboxes.
Regards,
Ferry Meidianto
www.meidianto.com
wavemaster
Participant
1279 Points
1125 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 04:44 AM|LINK
ferrymeidian...
Member
500 Points
126 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 04:52 AM|LINK
$('[selector]').[event](function(){ //something });
[selector] is jquery selector, can be something like $(':checkbox') or $('[type=checkbox]') or more complex selector.
This page will give you idea if you're not familiar with jQuery:
http://api.jquery.com/checkbox-selector/
for [event] you can refer to this page:
http://api.jquery.com/category/events/
Regards,
Ferry Meidianto
www.meidianto.com
wavemaster
Participant
1279 Points
1125 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 02:38 PM|LINK
A little bit more information:
unhandled exception at line 4679, column 2 in jquery-1.8.2.js
0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: Trip:
There is nothing bound to those checkboxes.
bruce (sqlwo...
All-Star
36656 Points
5438 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 03:35 PM|LINK
use the call stack to see the invalid lambda xpression.
wavemaster
Participant
1279 Points
1125 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Nov 30, 2012 05:07 PM|LINK
this is what the call stack window shows in Visual Studio:
error [jquery-1.8.2.js] line 4679
tokenize [as above] line 4736
select [as above] line 5244
Sizzle [as above] line 3941
find [as above] line 5372
Anonymous function [as above] line 7459
fire [as above] line 974
fireWith [as above] line 1082
done [as above] line 7788
callback [as above] line 8500
line 4679:
+ this function Sizzle( selector, context, results, seed ) {
results = results || [];
context = context || document;
var match, elem, xml, m,
nodeType = context.nodeType;
if ( !selector || typeof selector !== "string" ) {
return results;
}
i Object, (Function)
What do you think?
Robert
wavemaster
Participant
1279 Points
1125 Posts
Re: selection of HTML checkboxes in Tab inside dialog causes JS RT error with unhandled exception
Dec 01, 2012 12:44 AM|LINK