Hi!
I'm having problem with this situation: I have a page with somes checkbox and a button. When the user press the button
the page make a selfload and execute a java script serching for the elements of the page looking for those elements of type==checkbox (ask this for delete all selected items)... the java script it´s easy but have a problem... the problem is that the form haven´t the elements because (i guess) the script are executed before the elements appear again in the form... I think that the answer to this problem is searching the elements of the form in the parameters recived when the page are loading self...
it´s is possible? how? how can i search for the variables passed at himself by parameters?
(sorry that i don´t publicate the complete source, that's because the page are developed in erlang server pages .esp and it´s a bit confuse if you don´t are familiar with this language...if you are intersting in .esp i can send you somes examples latter.
Thanks for all...me, the flac0!
here is my script:
<script>
if(confirm("delete all selected items?"){
for (var i = 0; i<parent.document.elements.length); i++){
if (parent.document.elements.type == "checkbox"{
if (parent.document.elements.checked){
**function to delete record**
}
}
}
}
</script>
My Development keyboard are on-fire!
I'm having problem with this situation: I have a page with somes checkbox and a button. When the user press the button
the page make a selfload and execute a java script serching for the elements of the page looking for those elements of type==checkbox (ask this for delete all selected items)... the java script it´s easy but have a problem... the problem is that the form haven´t the elements because (i guess) the script are executed before the elements appear again in the form... I think that the answer to this problem is searching the elements of the form in the parameters recived when the page are loading self...
it´s is possible? how? how can i search for the variables passed at himself by parameters?
(sorry that i don´t publicate the complete source, that's because the page are developed in erlang server pages .esp and it´s a bit confuse if you don´t are familiar with this language...if you are intersting in .esp i can send you somes examples latter.
Thanks for all...me, the flac0!
here is my script:
<script>
if(confirm("delete all selected items?"){
for (var i = 0; i<parent.document.elements.length); i++){
if (parent.document.elements.type == "checkbox"{
if (parent.document.elements.checked){
**function to delete record**
}
}
}
}
</script>
My Development keyboard are on-fire!