popup in asp.net using javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • csgraham74

    popup in asp.net using javascript

    Hopefully someone can help me with this i dont seem to be able to find
    a javascript - asp.net group.

    im trying to creat a modal dialog box in asp.net using the following

    Dim str_JavaPopup As String = "<script language" &
    "='javascript'> window.showModa lDialog('frm_Mo reInfo.aspx?Pro ductImage="
    & str_ImageName & "&ProductDe sc=" & str_Description & "','dialogWidth :
    100px;dialogHei ght: 100px;center: yes;resize: no;status: no;help:
    no');</Script>"

    Me.Page.Registe rStartupScript( "Startup", str_JavaPopup)

    the window opens fine but the window does not resize

    is my code ok??

    thanks in advance

  • Mythran

    #2
    Re: popup in asp.net using javascript


    "csgraham74 " <csgraham74@hot mail.com> wrote in message
    news:1118265958 .279814.327060@ g49g2000cwa.goo glegroups.com.. .[color=blue]
    > Hopefully someone can help me with this i dont seem to be able to find
    > a javascript - asp.net group.
    >
    > im trying to creat a modal dialog box in asp.net using the following
    >
    > Dim str_JavaPopup As String = "<script language" &
    > "='javascript'> window.showModa lDialog('frm_Mo reInfo.aspx?Pro ductImage="
    > & str_ImageName & "&ProductDe sc=" & str_Description & "','dialogWidth :
    > 100px;dialogHei ght: 100px;center: yes;resize: no;status: no;help:
    > no');</Script>"
    >
    > Me.Page.Registe rStartupScript( "Startup", str_JavaPopup)
    >
    > the window opens fine but the window does not resize
    >
    > is my code ok??
    >
    > thanks in advance
    >[/color]

    I believe showModalDialog 's option parameter is supposed to be a
    comma-delimited list of options...not semicolon.

    Mythran

    Comment

    • Mythran

      #3
      Re: popup in asp.net using javascript


      "Mythran" <kip_potter@hot mail.comREMOVET RAIL> wrote in message
      news:O%233d0JHb FHA.2984@TK2MSF TNGP15.phx.gbl. ..[color=blue]
      >
      > "csgraham74 " <csgraham74@hot mail.com> wrote in message
      > news:1118265958 .279814.327060@ g49g2000cwa.goo glegroups.com.. .[color=green]
      >> Hopefully someone can help me with this i dont seem to be able to find
      >> a javascript - asp.net group.
      >>
      >> im trying to creat a modal dialog box in asp.net using the following
      >>
      >> Dim str_JavaPopup As String = "<script language" &
      >> "='javascript'> window.showModa lDialog('frm_Mo reInfo.aspx?Pro ductImage="
      >> & str_ImageName & "&ProductDe sc=" & str_Description & "','dialogWidth :
      >> 100px;dialogHei ght: 100px;center: yes;resize: no;status: no;help:
      >> no');</Script>"
      >>
      >> Me.Page.Registe rStartupScript( "Startup", str_JavaPopup)
      >>
      >> the window opens fine but the window does not resize
      >>
      >> is my code ok??
      >>
      >> thanks in advance
      >>[/color]
      >
      > I believe showModalDialog 's option parameter is supposed to be a
      > comma-delimited list of options...not semicolon.
      >
      > Mythran
      >[/color]

      Ok, I double-checked and the semi-colon is the delimiter and not a comma so
      ignore my last post...because of that, I did some testing and found that you
      are specifying your options as the wrong parameter....so ..

      Correct Way:
      window.showModa lDialog("url", "window name", "options delimited by
      semi-colon");

      What you are doing:
      window.showModa lDialog("url", "options delimited by semi-color");

      your options are being passed as the window name :)

      Mythran

      Comment

      • Eliyahu Goldin

        #4
        Re: popup in asp.net using javascript

        Pass an empty string as the second parameter and specify resizabe:yes in the
        third parameter.

        Eliyahu

        "csgraham74 " <csgraham74@hot mail.com> wrote in message
        news:1118265958 .279814.327060@ g49g2000cwa.goo glegroups.com.. .[color=blue]
        > Hopefully someone can help me with this i dont seem to be able to find
        > a javascript - asp.net group.
        >
        > im trying to creat a modal dialog box in asp.net using the following
        >
        > Dim str_JavaPopup As String = "<script language" &
        > "='javascript'> window.showModa lDialog('frm_Mo reInfo.aspx?Pro ductImage="
        > & str_ImageName & "&ProductDe sc=" & str_Description & "','dialogWidth :
        > 100px;dialogHei ght: 100px;center: yes;resize: no;status: no;help:
        > no');</Script>"
        >
        > Me.Page.Registe rStartupScript( "Startup", str_JavaPopup)
        >
        > the window opens fine but the window does not resize
        >
        > is my code ok??
        >
        > thanks in advance
        >[/color]


        Comment

        Working...