Problem with submit
-
We know for sure that our problem come from the call to submit. It works fine on most of the computer, but for some there nothing to do. Like the submit do nothing. Please help us.
script = "javascript:" script &= "window.dialogArguments.hidEdited.value='illustration';" script &= "window.dialogArguments.hidEditedParam1.value='" & Request.QueryString("sectionsorpages") & "';" script &= "window.dialogArguments.hidEditedParam2.value='" & Request.QueryString("p") & "';" script &= "window.dialogArguments.hidEditedParam3.value='" & CType(e.Item.FindControl("imgPhoto"), ImageButton).CommandArgument.Replace("\", "\\") & "';" script &= "window.dialogArguments.submit();" script &= "window.close();" script &= "return false;" CType(e.Item.FindControl("imgPhoto"), ImageButton).Attributes.Add("onclick", script)
I am a javascript newbie -
We know for sure that our problem come from the call to submit. It works fine on most of the computer, but for some there nothing to do. Like the submit do nothing. Please help us.
script = "javascript:" script &= "window.dialogArguments.hidEdited.value='illustration';" script &= "window.dialogArguments.hidEditedParam1.value='" & Request.QueryString("sectionsorpages") & "';" script &= "window.dialogArguments.hidEditedParam2.value='" & Request.QueryString("p") & "';" script &= "window.dialogArguments.hidEditedParam3.value='" & CType(e.Item.FindControl("imgPhoto"), ImageButton).CommandArgument.Replace("\", "\\") & "';" script &= "window.dialogArguments.submit();" script &= "window.close();" script &= "return false;" CType(e.Item.FindControl("imgPhoto"), ImageButton).Attributes.Add("onclick", script)
I am a javascript newbieFirst thing I noticed and have to question is your choice of operators when concatenating strings.
&=
I may be wrong, but in most languages this is not used to concatenate strings, but rather it's a bitwise AND assignment. Try using+=
This looks like ASP or something so it may very well use different operators for concat. Assuming you used the right operator, the first line... Why does it havejavascript
??? I would suggest either getting rid of it completely or adding a semi colon and see what happens.javascript
would becomejavascript:
It appears as though your code is being directly assigned to an event handler, so I can't see any reason why ajavascript:
protocol would be needed. :confused: HTH Cheers :) How do I print my voice mail? -
First thing I noticed and have to question is your choice of operators when concatenating strings.
&=
I may be wrong, but in most languages this is not used to concatenate strings, but rather it's a bitwise AND assignment. Try using+=
This looks like ASP or something so it may very well use different operators for concat. Assuming you used the right operator, the first line... Why does it havejavascript
??? I would suggest either getting rid of it completely or adding a semi colon and see what happens.javascript
would becomejavascript:
It appears as though your code is being directly assigned to an event handler, so I can't see any reason why ajavascript:
protocol would be needed. :confused: HTH Cheers :) How do I print my voice mail?I dont know why the : doesnt show but its really here in our application. For the rest it's because the onClick must be assigned at run-time because the controls are not here until then (we are binding image to a Datalist). Anyway we think we have find a way to resolve our problem. It appears it was an update with JScript or something similar. I am a newbie