On Sat, 21 Oct 2006 21:04:22 +0100, RA Jones wrote:

Hi Richard

> Predictably, and disappointingly:
> Content-Type: text/html; charset=ISO-8859-1 Fred

I see this in the docs for CGI::Ajax:
-----><8-----
We have added I<support> for other CGI handler/decoder modules,like
L<CGI::Simple> or L<CGI::Minimal>, but we can't test these since we run
mod_perl2 only here.  CGI::Ajax checks to see if a header() method is available
to the CGI object, and then uses it.If method() isn't available, it creates it's
own minimal header.
-----><8-----
which tells me CGI::Ajax is automatically calling CGI's header method.

If that's the case, you could create your own sub-class of CGI and give it a
header method which returns an empty string.
Note specifically I don't recommend doing this, I'm just pointing out another
approach. Or, as we say, TMTOWTDI.
I feel you should not have to jump thru hoops like that just to achieve a simple
goal.

So, what to do? Well, you've been given various suggestions to try, and yet that
might be a bit confusing - which to try?

I've just read some of the JQuery docs, and I'd say it's a clever package, but
with an unusual syntax. And since you've not comfortable with Javascript yet, I
don't see the point /for a beginner in this field/ to try producing
production-quality code while learning Javascript and JQuery at the same time.
Play with these packages by all means, but is that what you're doing right now?

So, I'd say cut the complexity out altogether. Make the input validation work
via form submit. Yes I know that's a but crude compared to what an expert would
do, but you're not at that stage yet.

Get the code working, simply and cleanly, and then add the sophisticated
mechanism (Ajax perhaps) which makes the user interface nicer and neater to use.

--
Cheers
Ron Savage, [EMAIL PROTECTED] on 22/10/2006
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to