Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Problem with submit

Problem with submit

Scheduled Pinned Locked Moved Web Development
helpjavascripttools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    XGaMeS
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • X XGaMeS

      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

      A Offline
      A Offline
      alex barylski
      wrote on last edited by
      #2

      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 have javascript??? I would suggest either getting rid of it completely or adding a semi colon and see what happens. javascript would become javascript: It appears as though your code is being directly assigned to an event handler, so I can't see any reason why a javascript: protocol would be needed. :confused: HTH Cheers :) How do I print my voice mail?

      X 1 Reply Last reply
      0
      • A alex barylski

        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 have javascript??? I would suggest either getting rid of it completely or adding a semi colon and see what happens. javascript would become javascript: It appears as though your code is being directly assigned to an event handler, so I can't see any reason why a javascript: protocol would be needed. :confused: HTH Cheers :) How do I print my voice mail?

        X Offline
        X Offline
        XGaMeS
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups