473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

Jun 21 '06 #1
3 1083
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)
Jun 21 '06 #2
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>


Jun 21 '06 #3
"solomon_13000" <so***********@yahoo.com> wrote in message
news:11*********************@r2g2000cwb.googlegrou ps.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:
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>

Jun 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Egor Shipovalov | last post by:
I'm implementing paging through search results using cursors. Is there a better way to know total number of rows under a cursor than running a separate COUNT(*) query? I think PostgreSQL is bound...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
0
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase...
16
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
9
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one directly below the other. When I do this a thin blank space appears between them. After several days of frustration I realized...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
2
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if...
1
by: sunraj | last post by:
With the Following Fields can Anybody Help me, How do I send email from ASP using SMTP Authentication <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta...
3
by: happyse27 | last post by:
Hi All, I am creating the perl script using html form(with embedded javascript inside). When using this html form with javascript alone, it works where the form validation will pop up...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.