utlonghornjulie
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
RateDetailUpdateByConsID-1-.txt
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.
This doesn't look like valid JavaScript to me...
Upload_Click if (typeof(Page_ClientValidat e) == 'function') Page_ClientValidate('');
Upload_Click if (typeof(Page_ClientValidat
On line 364, change
<input onclick="Upload_Click(); if
to
<input onclick="Upload_Click if
<input onclick="Upload_Click(); if
to
<input onclick="Upload_Click if
whoops...reverse those two snippets
Try adding:
language="javascript"
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>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.