PHP Classes

phpAjax is Awesome, but I have questions...

Recommend this page to a friend!

      PHP Ajax  >  All threads  >  phpAjax is Awesome, but I have...  >  (Un) Subscribe thread alerts  
Subject:phpAjax is Awesome, but I have...
Summary:Some chars are not passing correctly to the main function.
Messages:3
Author:Marcus Eby
Date:2008-02-07 09:52:30
Update:2008-02-07 17:46:40
 

  1. phpAjax is Awesome, but I have...   Reply   Report abuse  
Picture of Marcus Eby Marcus Eby - 2008-02-07 09:52:34
I use phpajax for developing a lot of little projects, but it wasn't until I started starting a larger APP that I found some problems.

First of all, I'm using version 1.0

I have several text boxes on the page, called input1 and input2 and when the main function is triggered, (the info is passed through ajax, when it gets into the function, all '/n' breaks turn into 'n' (notice the missing slash)
and all '&' crash the function. (cause it to return early)

These two characters seem to break everything.

Also, in the loading function, is it only aprint, and ashow/ahide that works? Or can I use the js('javascript here') function too? I've tried it, but it does nothing.

Does the new version correct these problems?

Thanks. Great job by the way.

Marcus

  2. Re: phpAjax is Awesome, but I have...   Reply   Report abuse  
Picture of Cesar D. Rodas Cesar D. Rodas - 2008-02-07 17:11:52 - In reply to message 1 from Marcus Eby
Hello,

Thank you very much for report that bug, it was a javascript problem with the encoding, I've fix it and upgrade the version.

And about the loading, I am afraid only ahide,ashow works in the method loading. I am working on the version 2.0, that will be a complete rewrite, completly modular (everything a class), and all the methods (main,loading) will support everything.

I think you should upgrade because the last version is simplest to use and add support to the keyboard, you can trigger an action with a set of keys (example: ctrl-a).

Once again thank you for the report this bug.

Best regards,

  3. Re: phpAjax is Awesome, but I have...   Reply   Report abuse  
Picture of Marcus Eby Marcus Eby - 2008-02-07 17:46:40 - In reply to message 2 from Cesar D. Rodas
Thanks Cesar.

Awesome response, quick, and to the point.

And your english is getting really good.

I'll upgrade now.

Thanks again.

Marcus