473,670 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs2k5 equiv.

hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue( ){
elm=document.Fo rm1.elements;
for(i=0;i<elm.l ength;i++)
if(elm[i].type=="text" && elm[i].name.match("sc rollvalue")!=nu ll){
a=elm[i];
a.value=(a.valu e=="")?0:a.valu e
}
}

is it different in vs2k5? because i'm getting "form1 is null or not an object"
thanks,
rodchar
Sep 13 '06 #1
3 1388
form1 is referring the id of the from on the actual aspx page (HTML)

Look on the page and see what the id is for the default form and adjust your
code accordingly
"rodchar" <ro*****@discus sions.microsoft .comwrote in message
news:8C******** *************** ***********@mic rosoft.com...
hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue( ){
elm=document.Fo rm1.elements;
for(i=0;i<elm.l ength;i++)
if(elm[i].type=="text" && elm[i].name.match("sc rollvalue")!=nu ll){
a=elm[i];
a.value=(a.valu e=="")?0:a.valu e
}
}

is it different in vs2k5? because i'm getting "form1 is null or not an
object"
thanks,
rodchar

Sep 13 '06 #2
This has nothing to do with Visual Studio. This looks like client side
javascript? In which case, you don't have a form called Form1 on your page.

"rodchar" <ro*****@discus sions.microsoft .comwrote in message
news:8C******** *************** ***********@mic rosoft.com...
hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue( ){
elm=document.Fo rm1.elements;
for(i=0;i<elm.l ength;i++)
if(elm[i].type=="text" && elm[i].name.match("sc rollvalue")!=nu ll){
a=elm[i];
a.value=(a.valu e=="")?0:a.valu e
}
}

is it different in vs2k5? because i'm getting "form1 is null or not an
object"
thanks,
rodchar

Sep 13 '06 #3
doh! thanks for the help.

"rodchar" wrote:
hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue( ){
elm=document.Fo rm1.elements;
for(i=0;i<elm.l ength;i++)
if(elm[i].type=="text" && elm[i].name.match("sc rollvalue")!=nu ll){
a=elm[i];
a.value=(a.valu e=="")?0:a.valu e
}
}

is it different in vs2k5? because i'm getting "form1 is null or not an object"
thanks,
rodchar
Sep 13 '06 #4

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

Similar topics

8
5171
by: Nige | last post by:
I've got an old web site that comes up before its replacement in Google listings. I've read the document on Google about sending a "301" code from the server: http://www.google.co.uk/webmasters/3.html#A2 Can anyone advise how to format a META Http-Equiv for a "301" code, including how to tell Google the new URL? I can't send it from the server, so I figure Http-Equiv is the next best. I still have access to the old site BTW.
10
6323
by: Newry | last post by:
Hi, If you have both this HTTP header: Content-Type: text/html; charset=ISO-8859-1 and this HTML element in the <head>: <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
1
1283
by: Bob | last post by:
When debugging .Net in disassembly view with vs2k5 is there any way to view memory values using segments? I tried using quickwatch and also dropping the segment/pointer in to the memory window but it does not get the value. For example if the disasembler shows the below pointer being accessed how do I view its value? ds:
2
1242
by: rodchar | last post by:
hey all, i'm installing iis on my dev machine which has vs2k5 on it. will this be a problem? thanks, rodchar
0
1214
by: Quantum | last post by:
Hi there, I've got a VS2K5 project in the folder: c:\BigProject\Windows\ However, I've got all the source in this folder: c:\BigProject\Independent\
4
1471
by: SteveW | last post by:
Now that vista and the 3.0 framework are gold, I'm a bit confused, so any clarification would be very helpful. The 3.0 framework is gold and is downloadable etc. What is not 'gold' and 'supported' is the WCF/WPF addons to vs2k5. But here's where I get confused. If I have vs2k5 source code. which contains 3.0 'code', on a pc which does not have the WCF/WPF addons. It compiles, runs, has intellisense etc. etc. etc.
3
1583
by: =?Utf-8?B?QWRpbCBBa3JhbQ==?= | last post by:
I posted this question in vsnet.ide newsgroup about more than a week back but didn't get any single response yet therefore, reposting again same to several newsgroups. When I run my C# WinForms project either by pressing F5 or clicking Start button on toolbar, it sometimes doesn't execute the currently changed code and runs previously compiled code and this strange thing happens occasionally no matter its started in Debug or Release...
8
1363
by: Ross Culver | last post by:
I'm about to get a new computer for VS2K5 development. Is it ok to get Vista yet or should I stick with XP? Thanks, Ross
1
3388
by: perhapscwk | last post by:
Hi, I use below in IE, it works but it not work in firefox, please help. <meta http-equiv="Site-Enter" content="revealTrans(Duration=2,Transition=23)"/> <meta http-equiv="Page-Enter" content="revealTrans(Duration=2,Transition=23)"/> <meta http-equiv="Site-Exit" content="revealTrans(Duration=2,Transition=23)"/> <meta http-equiv="Page-Exit" content="revealTrans(Duration=2,Transition=23)"/>
0
8466
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8384
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8591
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6212
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.