IIS ASP - using img.width in asp

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > June 2006 > using img.width in asp





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author using img.width in asp
solomon_13000

2006-06-21, 1:21 pm

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="JavaScript">

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.

2006-06-21, 1:21 pm

solomon_13000 wrote on 21 jun 2006 in
microsoft.public.inetserver.asp.general:

> 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="JavaScript">
>
> 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>


There is nothing wrong with the totally unnecessary ASP.

> .. to use the width value on asp.


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)
solomon_13000

2006-06-21, 1:21 pm

The img.width value in asp.


solomon_13000 wrote:
> 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="JavaScript">
>
> 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>


McKirahan

2006-06-21, 7:21 pm

"solomon_13000" <solomon_13000@yahoo.com> wrote in message
news:1150910834.326422.45050@r2g2000cwb.googlegroups.com...
> The img.width value in asp.


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>

> solomon_13000 wrote:
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com