![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello I want to change attribute action in form. Problem is that in that form is also input with name action. Unfortunately renaming of that input is worst case because many servlets depend on it. This works in konqueror but not in IE and Mozilla: newurl= document.forms[i].getAttribute('action'); newurl= newurl.replace('all/', prefix); document.forms[i].action= newurl; Do you have any idea how to modify attribute action in this case ? Jan |
#3
| |||
| |||
|
|
What does your form look like? Is it basically like the following? form action="nextpage.htm" method="post" input type="text" name="action" /form And is your problem that you want to change "nextpage.htm" to something else? |
#4
| |||
| |||
|
|
I want to change attribute action in form. Problem is that in that form is also input with name action. |
|
Do you have any idea how to modify attribute action in this case ? |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
var act = myForm.getAttributeNode('action'); act.value = newURL; Approved in DOM 1, tested OK under my IE 6.0 |
![]() |
| Thread Tools | |
| Display Modes | |
| |