Frankly I'm asking this one only because I'm curious.
I have a fairly conventional RadGrid set up with edit links on each row. Each link calls a JavaScript function which in turn causes an editing screen popup.
The link elements look like this:
<a id="ctl00_MainContent_RadGrid1_ctl00_ctl04_EditLink" href="#" onclick="return EditForm('14001','0');">Edit</a>
I also have a span at the top of the page that displays "Welcome" logged in person. Somehow someone messed up the users table and the name field included characters within double quotes. As such, for example, the field would be rendered like this:
<span id="lblFullName" style="color:Blue;">Welcome Joe "***" Smith</span>
When this happened, the JavaScript function started crashing. The function got the correct parameters but this line started crashing.
var oWnd = window.radopen("EditForm.aspx?Id=" + Id, "Edit Item " + Id);
When I put a catch in there, the error was Cannot read property 'open' of undefined.
Naturally the practical solution to this problem was to purge the database of bad data but I'd still like to know what happened.
I have a fairly conventional RadGrid set up with edit links on each row. Each link calls a JavaScript function which in turn causes an editing screen popup.
The link elements look like this:
<a id="ctl00_MainContent_RadGrid1_ctl00_ctl04_EditLink" href="#" onclick="return EditForm('14001','0');">Edit</a>
I also have a span at the top of the page that displays "Welcome" logged in person. Somehow someone messed up the users table and the name field included characters within double quotes. As such, for example, the field would be rendered like this:
<span id="lblFullName" style="color:Blue;">Welcome Joe "***" Smith</span>
When this happened, the JavaScript function started crashing. The function got the correct parameters but this line started crashing.
var oWnd = window.radopen("EditForm.aspx?Id=" + Id, "Edit Item " + Id);
When I put a catch in there, the error was Cannot read property 'open' of undefined.
Naturally the practical solution to this problem was to purge the database of bad data but I'd still like to know what happened.