This is a discussion on "javascript: onChange='document.archived.submit();' problem" within the JavaScript Forum section. This forum, and the thread "javascript: onChange='document.archived.submit();' problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
javascript: onChange='document.archived.submit();' problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
javascript: onChange='document.archived.submit();' problem
Ive spent hours trying to fix this annoying problem.
I have some code the shows a dropdown list. When you select an item, the page reloads via javascript so as to save the selection. This code works perfectly on one page, but when I copy it into another page it stops working. This is the code:
Any ideas what might be wrong? |
|
|
|
|||
|
Re: javascript: onChange='document.archived.submit();' problem
Is your form name='archived' on every page?
|
|
|||
|
Re: javascript: onChange='document.archived.submit();' problem
on the other pages it is archived0 or something. theres some counter being appended to the form. i took it out as it seemed pointless and it wasnt working anyway with that.
|
|
|||
|
Re: javascript: onChange='document.archived.submit();' problem
Because of the way your JavaScript is written, it will only work if the form has the same name on every page.
Otherwise you will get a meesage something like: 'Object missing'. |
![]() |
| Tags |
| javascript, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] popup and document.write problem in IE | deluxmilkman | JavaScript Forum | 3 | Oct 3rd, 2007 11:26 |
| Opening a document using javascript | gentlefoot | Starting Out | 5 | Sep 16th, 2007 21:10 |
| document.getElementById and document.getElementByName is not working in FF | dhineraj | JavaScript Forum | 3 | Jul 26th, 2007 20:23 |
| How do I stop this javascript document referrer page from coming up? | trakarkitekt | JavaScript Forum | 4 | Apr 4th, 2007 02:12 |
| new problem. document.getElementById().width returning unassigned. why? | sanchopansa | JavaScript Forum | 2 | Jul 22nd, 2006 20:23 |