From: John P. R. <ro...@cs...> - 2004-03-05 13:48:16
|
In message <200...@op...>, Richard Jones writes: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Friday 05 Mar 2004 09:23, John P. Rouillard wrote: >> Does anybody have any tips/tricks for debugging this? Its driving my >> supervisor batty. > >That the pop-up works on one system, and not another, kinda tells me that >there's no structural problems. That it breaks across multiple browsers tells >me it's not just a caching issue. > >Even given that, I guess just check that the form element names are >the same - the one in the Javascript pop-up window and the one in the >form that it's trying to relate to. The pop-up holds the name in the ><javascript> block defining the "field=" value. Check also that the >form in the main page is called "itemSynopsis". A bit more info, we got a javascript debugger to run under XP. The initial failure is in resetList, the variable original_field is undefined. If I look at the code, I see that original_field is the result of: window.opener.document.itemSynopsis[field].value. I brought up immediate mode in the debugger and tried typing in window.opener.document.itemSynopsis[field].value.. I got an "Access is denied" error. If I typed in `field', I got back the value "nosy" including the quotes. The function updateList apparently fails in the same way. Ideas? >It is very strange that you get no errors in any of those >browsers. Try the old alert() debugging for a bit to see how far it >gets when you hit the action buttons. Ok. I'll google for alert and javascript and see what comes up. I may have some time to work on this later. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. |