calling javascript functions

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

    calling javascript functions

    The following works, almost.

    The address of the image appears in the titlebar(topmos t area) as well in a
    bar under the title bar.

    I'd prefer that the address did not show at all.

    Possible?

    <script type="text/javascript">

    function popupWindow(pat h, w, h) {

    catWindow = window.open( path,"catWin", "width="+w+ ", height="+h+",re sizable
    = yes ,scrollbars = yes,status = no,titlebar =no,toolbar = no ")

    }

    </script>

    Is the way I concatenated the parameters correct? Seems unusal to me but it
    appears to work.



    I call it thusly:

    <a href="javascrip t:popupWindow(' Images/MasterImage.jpg ',300,300)"
    >Picture</a>
    I'd like to specify the width and height of the .jpg image rather than
    300,300.

    Do you know how to do that?



    Thanks for any help at all










  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: calling javascript functions

    If you want to specify an image size, you want to create a image handler
    page rather than just open the image. The same is true if you want to hide
    the image URL.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog


    or just read it:


    *************** *************** **************
    | Think outside the box! |
    *************** *************** **************
    "AAaron123" <aaaron123@road runner.comwrote in message
    news:%23oI7uDl$ IHA.1180@TK2MSF TNGP04.phx.gbl. ..
    The following works, almost.
    >
    The address of the image appears in the titlebar(topmos t area) as well in
    a bar under the title bar.
    >
    I'd prefer that the address did not show at all.
    >
    Possible?
    >
    <script type="text/javascript">
    >
    function popupWindow(pat h, w, h) {
    >
    catWindow = window.open( path,"catWin", "width="+w+ ",
    height="+h+",re sizable = yes ,scrollbars = yes,status = no,titlebar
    =no,toolbar = no ")
    >
    }
    >
    </script>
    >
    Is the way I concatenated the parameters correct? Seems unusal to me but
    it appears to work.
    >
    >
    >
    I call it thusly:
    >
    <a href="javascrip t:popupWindow(' Images/MasterImage.jpg ',300,300)"
    Picture</a>
    >
    I'd like to specify the width and height of the .jpg image rather than
    300,300.
    >
    Do you know how to do that?
    >
    >
    >
    Thanks for any help at all
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >

    Comment

    • AAaron123

      #3
      Re: calling javascript functions

      I don't want to force the image size.

      What I was asking was how to determine the number of pixels (width, height)
      in the .jpg file.

      I'll take your advice and create a page but still need to know how big to
      create it.

      thanks

      "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
      message news:OETTZLl$IH A.3392@TK2MSFTN GP03.phx.gbl...
      If you want to specify an image size, you want to create a image handler
      page rather than just open the image. The same is true if you want to hide
      the image URL.
      >
      --
      Gregory A. Beamer
      MVP, MCP: +I, SE, SD, DBA
      >
      Subscribe to my blog

      >
      or just read it:

      >
      *************** *************** **************
      | Think outside the box! |
      *************** *************** **************
      "AAaron123" <aaaron123@road runner.comwrote in message
      news:%23oI7uDl$ IHA.1180@TK2MSF TNGP04.phx.gbl. ..
      >The following works, almost.
      >>
      >The address of the image appears in the titlebar(topmos t area) as well in
      >a bar under the title bar.
      >>
      >I'd prefer that the address did not show at all.
      >>
      >Possible?
      >>
      ><script type="text/javascript">
      >>
      >function popupWindow(pat h, w, h) {
      >>
      >catWindow = window.open( path,"catWin", "width="+w+ ",
      >height="+h+",r esizable = yes ,scrollbars = yes,status = no,titlebar
      >=no,toolbar = no ")
      >>
      >}
      >>
      ></script>
      >>
      >Is the way I concatenated the parameters correct? Seems unusal to me but
      >it appears to work.
      >>
      >>
      >>
      >I call it thusly:
      >>
      ><a href="javascrip t:popupWindow(' Images/MasterImage.jpg ',300,300)"
      >Picture</a>
      >>
      >I'd like to specify the width and height of the .jpg image rather than
      >300,300.
      >>
      >Do you know how to do that?
      >>
      >>
      >>
      >Thanks for any help at all
      >>
      >>
      >>
      >>
      >>
      >>
      >>
      >>
      >>
      >>
      >

      Comment

      Working...