using img.width in asp

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

    using img.width in asp

    I did a combination of asp and jscript. Parsing a value from asp to
    jscript is working fine. However I intend to use the width value on
    asp. How is it done?

    <script language="JavaS cript">

    function testing(pix)
    {
    img = new Image()
    img.src = pix
    alert(img.width )
    }

    </script>

    <%
    Dim m
    m = "http://www..com/db/Upload/photos/nature/06331_30.jpg"
    %>

    <html>
    <head>
    <title>Hello World</title>
    </head>
    <body onLoad="testing ('<%=m%>')">
    <%
    response.write "I intend to use the width value over here"
    %>
    </body>
    </html>

  • Evertjan.

    #2
    Re: using img.width in asp

    solomon_13000 wrote on 21 jun 2006 in
    microsoft.publi c.inetserver.as p.general:
    [color=blue]
    > I did a combination of asp and jscript. Parsing a value from asp to
    > jscript is working fine. However I intend to use the width value on
    > asp. How is it done?
    >
    > <script language="JavaS cript">
    >
    > function testing(pix)
    > {
    > img = new Image()
    > img.src = pix
    > alert(img.width )
    >}
    >
    > </script>
    >
    > <%
    > Dim m
    > m = "http://www..com/db/Upload/photos/nature/06331_30.jpg"
    > %>
    >
    > <html>
    > <head>
    > <title>Hello World</title>
    > </head>
    > <body onLoad="testing ('<%=m%>')">
    > <%
    > response.write "I intend to use the width value over here"
    > %>
    > </body>
    > </html>[/color]

    There is nothing wrong with the totally unnecessary ASP.
    [color=blue]
    > .. to use the width value on asp.[/color]

    Please explain what this part of your sentence means.

    ==============

    Overall there is no serverside ASP involved in your quest, I presume.
    If so, please ask a clientsided NG.


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • solomon_13000

      #3
      Re: using img.width in asp

      The img.width value in asp.


      solomon_13000 wrote:[color=blue]
      > I did a combination of asp and jscript. Parsing a value from asp to
      > jscript is working fine. However I intend to use the width value on
      > asp. How is it done?
      >
      > <script language="JavaS cript">
      >
      > function testing(pix)
      > {
      > img = new Image()
      > img.src = pix
      > alert(img.width )
      > }
      >
      > </script>
      >
      > <%
      > Dim m
      > m = "http://www..com/db/Upload/photos/nature/06331_30.jpg"
      > %>
      >
      > <html>
      > <head>
      > <title>Hello World</title>
      > </head>
      > <body onLoad="testing ('<%=m%>')">
      > <%
      > response.write "I intend to use the width value over here"
      > %>
      > </body>
      > </html>[/color]

      Comment

      • McKirahan

        #4
        Re: using img.width in asp

        "solomon_13 000" <solomon_13000@ yahoo.com> wrote in message
        news:1150910834 .326422.45050@r 2g2000cwb.googl egroups.com...[color=blue]
        > The img.width value in asp.[/color]

        Are you responding to yourself?

        Anyway, ASP code executes before client-side code
        so what you have won't work. However, this may help:

        <html>
        <head>
        <title>Hello World</title>
        <script type="text/javascript">
        function testing(pix) {
        var img = new Image();
        img.src = pix;
        alert(img.width );
        }
        </script>
        </head>
        <body
        onLoad="testing ('http://www..com/db/Upload/photos/nature/06331_30.jpg')" >
        </body>
        </html>
        [color=blue]
        > solomon_13000 wrote:[color=green]
        > > I did a combination of asp and jscript. Parsing a value from asp to
        > > jscript is working fine. However I intend to use the width value on
        > > asp. How is it done?
        > >
        > > <script language="JavaS cript">
        > >
        > > function testing(pix)
        > > {
        > > img = new Image()
        > > img.src = pix
        > > alert(img.width )
        > > }
        > >
        > > </script>
        > >
        > > <%
        > > Dim m
        > > m = "http://www..com/db/Upload/photos/nature/06331_30.jpg"
        > > %>
        > >
        > > <html>
        > > <head>
        > > <title>Hello World</title>
        > > </head>
        > > <body onLoad="testing ('<%=m%>')">
        > > <%
        > > response.write "I intend to use the width value over here"
        > > %>
        > > </body>
        > > </html>[/color]
        >[/color]


        Comment

        Working...