|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
bizarre parent form refresh behaviour
I've just migrated a useful javascript tool from an older, legacy site to a new site, and this has worked well, with one frustrating exception..
Old site: http://www.bi.umist.ac.uk/users/mjfr...rs/Makebuf.asp when the 'recipe' button is clicked, the popuo window is fine, but the underlying form on the parent window does not refresh New site: http://www.liv.ac.uk/buffers/buffercalc.html the moment the child window pops up, the parent form refrehses to default values, which I don't want. Any insight would be greatly appreciated p.s. I know it's amateur code, but it has worked for nearly 10years! Thanks in advance Rob |
|
#2
|
||||
|
||||
|
Add this to the onclick handler:
Code:
onclick="calcBuffer(this.form); return false;"
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
|
#3
|
|||
|
|||
|
Thanks Fang, that just works a treat. I think I understand why,it's saying don't return control to the parent, yes?
You've made my day! Rob |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|