Link to home
Start Free TrialLog in
Avatar of utlonghornjulie
utlonghornjulieFlag for United States of America

asked on

Error: Expected ';'

I have a web page that has a javascript error. When the page loads, there is a yellow triangle at the bottom left of the page. The error message says that I have a ; missing on line 364, char 14. When I go to line 364, I do not see where I need to add a ;. Please see attached txt file for source code of the web page.
RateDetailUpdateByConsID-1-.txt
Avatar of whosbetterthanme
whosbetterthanme
Flag of United States of America image

The onClick event is calling Upload_Click. I don't see that anywhere unless it's in a called source file. Your code looks malformed too.
Avatar of TMarkham1
TMarkham1

This doesn't look like valid JavaScript to me...

Upload_Click if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate('');
On line 364, change

<input onclick="Upload_Click(); if

to

<input onclick="Upload_Click if
whoops...reverse those two snippets
Try adding:

 language="javascript"


<input onclick="Upload_Click if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); " language="javascript" name="ctl00$ContentPlaceHolder1$btnUploadConsID" type="Submit" id="ctl00_ContentPlaceHolder1_btnUploadConsID" value="Upload" style="width: 120px" /></td>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of TedInAK
TedInAK
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial