Thread: wierd error
View Single Post
  #2 (permalink)  
Old August 8th, 2005, 10:50 AM
vinod_yadav1919 vinod_yadav1919 is offline
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

Hii Crmpicco!!

zxcobj=document.getElementById(zxcid); //It returns an object

document.form.zxcobj.value=zxcobj; //You Can't assign an object to value type

You can use

Again there is no form element in the form with name "zxcobj"
you need to eval function so that u can get right object then assign it's text/value to the required text/value

I think the below line will always give u an error

since there is no form element with "text" as name

use eval function to get required object ,then assign object value /text property to the value/text

Hope this will help you

Cheers :)

Reply With Quote