Re: [cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-24 Thread RA Jones
David Scott wrote: RA, Please summarize your function so we can all benefit. David, With pleasure. The validation function is part of a much larger clinical information system, and validates the UK National Health Service number, which is a 10-digit unique patient identifier with a check-su

Re: [cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread RA Jones
Michael Peters wrote: Does it make a request against your server (check the access logs). If it doesnt, then it's still a JS problem. Yes, thanks it does - but the output is too embarrassing to reproduce here! Suffice to say it helped to nail my error, all to do with the original script call

Re: [cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread Michael Peters
RA Jones wrote: > Yes, I use FF exclusively. Unfortunately I've just switched to the FF2 > RC3 and the LiveHTTPHeaders plugin is not compatible. The javascript > console seems to be called Error Console now, and with your example code > it reports no errors in any category. But there is still no

Re: [cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread RA Jones
Michael Peters wrote: Not to add too much to your plate, but you'll also need to use a browser that has decent debugging tools. I prefer firefox, but some people pay for visual studio and use IE. With Firefox, my Ajax debugging goes something like this: If it's not doing anything, then open up t

Re: [cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread Michael Peters
RA Jones wrote: > OK, I tried the following in the section of my template: > > > > > > HTML form contains: > NHS N

[cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread RA Jones
Bruce McKenzie wrote: with the tiny (~15k) jQuery library loaded, all the javascript you would have to write would be something like this (assuming you use rm=runmode in CGIApp) function validateNHSOwithAjax(myInput){ $('#someHTMLContainer').load( 'myWebApp.cgi', { rm : 'validate_

[cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread Robert Hicks
Rhesa Rozendaal wrote: Robert Hicks wrote: So now I use 2 frameworks that support plugins; CA and JQuery. :) Hey, HTML::Template::Pluggable supports plugins too, you know ;) Rhesa Okay but I don't use HTML::Template. I use TT. : ) Oh, so I guess that is 3 things now. Robert

Re: [cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread Rhesa Rozendaal
Robert Hicks wrote: So now I use 2 frameworks that support plugins; CA and JQuery. :) Hey, HTML::Template::Pluggable supports plugins too, you know ;) Rhesa - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.n

[cgiapp] Re: CGI::App & CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread Robert Hicks
Michael Peters wrote: Well, the solution is simple, but maybe not what you want to hear. Don't use CGI::Ajax. I've never used it and have never missed it. Just put the necessary Javascript into your templates. I just started using JQuery on Friday. It is really nice. I think CA spoils you in