PDA

View Full Version : Questions... :)


^BuGs^
06-08-2003, 02:15 PM
2 things....

I have gone in a daze I can not figure this one out. I have my <select> box by defalut disabled, but when I create an array, it needs to be activated. I am just forgeting how to re-enable it so I can select through the array. What is the code?

<select name=phpfunction_list disabled>


The other things I am using a "Web Page Dialog" for one of my scripts and I was wondering if I can global save javscript vars to be saved once I close the window, and re-open it up. I'll look around to see if this is explaned anywhere. :)

gish
06-08-2003, 02:27 PM
#1:
something like this...call a function..unless i am missing something...maybe you could put the arrray in a <hidden> box...this would work also..


function selectdisable_enable(bin_true) {
if bin_true{
<select name=phpfunction_list>
}
else{
<select name=phpfunction_list disabled>
}
}


#2
Use cookies

^BuGs^
06-10-2003, 10:36 PM
For future reference....


document.daForm.daObject.disabled=true;


or


document.daForm.daObject.disabled=false;