vs2k5 equiv.

G

Guest

hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue(){
elm=document.Form1.elements;
for(i=0;i<elm.length;i++)
if(elm.type=="text" && elm.name.match("scrollvalue")!=null){
a=elm;
a.value=(a.value=="")?0:a.value
}
}

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


thanks,
rodchar
 
T

Tarren

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
 
M

Marina Levit [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top