R
ravi
Hi,
I am a newbie to javascript.
Iam working on a page that has two radio buttons and a tree. I do not
have my tree nodes to be selectable.
Iam working on Firefox.
I have the firebug debugger attached.
Actually this is about a problem iam trying to debug. And found what
the problem is and iam looking for a hack/ workaround to fix the bug.
With one radio button selected and I working on the tree, the values
for actions of tree collapse or tree expand get sent to the server from
my javascript correctly. Before the page is submitted from javascript
to the server, I can see these collapse/ expand values reflected for my
form input elements in the HTML DOM correctly.
When I change the radio button selection, I don't see the collpase/
expand values sent to the server for the form input element. I can
verify the correct values using an alert function in my javascript, but
they are not getting written to the form input in the DOM and so not
seen/(sent to the) on server side too.
(Iam thinking once this 2nd radio button gets processed on the server,
some bad page is returned and thus making the problem show up. But I
don't see the problem with this button when I make my tree nodes
selectable. So iam looking for a hack in the javascript.)
The follwoing Code in my javascript writes the values to the form
input.
actionNameEnc is the name for the form input.
actionValue is the value that takes the values of tree collpase or
expand.
so the actionValue should be assgined to the actionNameEnc and returned
to the server.
<form ......>
<input type="hidden" value="actionNameEnc" name="actionNameEnc"
id="actionNameEnc"/>
<...javascript code....>
form[actionNameEnc].value = actionValue ;
alert(form[actionNameEnc].value); // this shows the correct
runtime value but is not seen in DOM
Can someone please suggest me some hack or workaround to make the value
that i see getting reflected in my javascript correctly to be seen also
in the DOM(value for the html form input) and thus could be sent back
to the server correctly.
Thanks in Advance to all..
Ravi.
I am a newbie to javascript.
Iam working on a page that has two radio buttons and a tree. I do not
have my tree nodes to be selectable.
Iam working on Firefox.
I have the firebug debugger attached.
Actually this is about a problem iam trying to debug. And found what
the problem is and iam looking for a hack/ workaround to fix the bug.
With one radio button selected and I working on the tree, the values
for actions of tree collapse or tree expand get sent to the server from
my javascript correctly. Before the page is submitted from javascript
to the server, I can see these collapse/ expand values reflected for my
form input elements in the HTML DOM correctly.
When I change the radio button selection, I don't see the collpase/
expand values sent to the server for the form input element. I can
verify the correct values using an alert function in my javascript, but
they are not getting written to the form input in the DOM and so not
seen/(sent to the) on server side too.
(Iam thinking once this 2nd radio button gets processed on the server,
some bad page is returned and thus making the problem show up. But I
don't see the problem with this button when I make my tree nodes
selectable. So iam looking for a hack in the javascript.)
The follwoing Code in my javascript writes the values to the form
input.
actionNameEnc is the name for the form input.
actionValue is the value that takes the values of tree collpase or
expand.
so the actionValue should be assgined to the actionNameEnc and returned
to the server.
<form ......>
<input type="hidden" value="actionNameEnc" name="actionNameEnc"
id="actionNameEnc"/>
<...javascript code....>
form[actionNameEnc].value = actionValue ;
alert(form[actionNameEnc].value); // this shows the correct
runtime value but is not seen in DOM
Can someone please suggest me some hack or workaround to make the value
that i see getting reflected in my javascript correctly to be seen also
in the DOM(value for the html form input) and thus could be sent back
to the server correctly.
Thanks in Advance to all..
Ravi.