At 21:17 -0800 18/2/09, T.J. Crowder wrote:
>You must have checked this, but...  Are you _absolutely_ sure that
>bookFormHandler() is being called at all?  It sounds like it's just
>not hooked up.

Hi

Yes, I am/was absolutely sure. In my somewhat crude debugging process 
I'd put a couple of alerts in the function to show me the url and the 
query string, and they both popped up as expected.

>Have you walked through the code with Firebug?

That I hadn't done, and in fact I haven't got into using Firebug 
anything like as much as I should, so thanks for the suggestion 
because... it's fixed!

I set the 'Break on all errors' option and it immediately exposed the 
gremlin. As so often it was a really stupid little thing: I'd changed 
a relatively unimportant variable (so unimportant that it was one of 
the things I removed from the code I posted yesterday!) from local to 
global, but forgotten to remove the 'var' from where it was 
originally declared. Doh! There was, as I was pretty certain, nothing 
at all wrong with the basic structure of what I was doing, but 
because a reference to that variable, immediately before the 
Ajax.Request call, came up undefined, the rest of the function was 
broken.

Thanks again - I can press on now.

-- 
Cheers... Chris
Highway 57 Web Development -- http://highway57.co.uk/

Only two things are infinite, the universe and stupidity -
and I'm not sure about the former.
    -- Albert Einstein

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to