Forum Moderators: open

Message Too Old, No Replies

Error Expected: ')'

         

los7883

9:47 pm on Nov 24, 2009 (gmt 0)

10+ Year Member



Getting this error when launching webpage...dont see where its missing a ) although other sites have said it has to do more with a missing ' than with a )....any ideas? Here is what the lines look like that the error references...

<div class="innercol">
<div id="identifiers">
<strong>Enter identifier and press enter</strong>
<div class="identifier">
<input id="identifier" name="identifier" onkeyup="identifierChanged(event; $('#bulk_asset_dialog form').onsubmit(false);" type="text" value="" />
</div>
</div>
<p class="submit">
<div class="controls">
<input type="submit" value="Add these assets" onclick="$('.loading').show(); $(this).parent().hide();" /> <span>or</span> <a href="#" class="cancel_link" onclick="swapTo('bulk_asset_dialog');">
Cancel
</a>
</div>
<div class="loading" style="display: none;">
<img alt="Loading..." src="/checkoutdesk/Content/images/progress_bar.gif" />
</div>
</p>
</div>

The error references the 4th line in the code i have above...does anybody have any ideas what could be throwing this?

rocknbil

10:12 pm on Nov 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



welcome aboard los7883, count:

identifierChanged(event; $('#bulk_asset_dialog form').onsubmit(false);

Do you see an equal number of ( and ) ? :-) Nope.

When you get these look at it like this:

identifierChanged(); // OK

identifierChanged(event;); // OK, I think, does ; need to be ,?

identifierChanged(event; $('#bulk_asset_dialog form').onsubmit(false)); // Ah, there it is, last one . . .

daveVk

11:59 pm on Nov 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I find editors like notepad+ very useful for situations like this, place cursor on say open bracket and matching close bracket shows, useful while writing code as well as trouble shooting.