[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Manuel Lemos
Hello,

on 04/01/2006 12:00 PM Andrei Verovski (aka MacGuru) said the following:
 Anyone can suggest me which PHP AJAX framework you are using, for what 
 reason(s), what are pros and cons of your particular choice.
 
 I found many, and now facing difficult choice.
 
 BTW, how do you pass session id between calls to PHP from JavaScript (cookies 
 or explicit foo.php?PHPSESSSIONID=blahblahblah)?
 
 Thanks in advance for any suggestion(s).

Regardless of the framework you choose, note that AJAX solutions based
on XMLHttpRequest objects are problematic for reasons listed in this
blog post below. Despite it is an older technology, for most purposes
people want to use AJAX, IFrame based solutions are more capable and
reliable.

* Browser compatibility

* Browser security constraints

* Single JavaScript base code

* Response speed

* File form upload


http://www.phpclasses.org/blog/post/51-PHPClasses-20-Beta-AJAX-XMLHttpRequest-x-IFrame.html


As for AJAX solutions, I use this forms generation class also mentioned
in the post, which has a plug-in form submiting and processing forms in
the background using IFrame based AJAX requests.

http://www.phpclasses.org/formsgeneration


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Ruben Rubio Rey

The best and simplest for me is prototype.js

Is much more than ajax ! 100% cross browser! ang GPL!

http://www.sergiopereira.com/articles/prototype.js.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Andrei Verovski (aka MacGuru)
Hi,

Many thanks for everyone who have replied. Its seems Manuel's suggestion 
regarding iFrame sounds really good. BTW, I am using Savant as template 
engine, and integrate it with Manuel Forms Generation and Validation would be 
a good idea (there is a Smarty plugin for this class, but I am using Savant). 

Basically, I have a problem porting my own FileMaker database with many 
multi-page forms (plus large tables and big drop-down lists, displaying 
thousands of items). Things made quickly with native GUI tools often very 
difficult to port to Web-based GUI.


On Monday 03 April 2006 16:13, you wrote:
 Hello,

 on 04/01/2006 12:00 PM Andrei Verovski (aka MacGuru) said the following:
  Anyone can suggest me which PHP AJAX framework you are using, for what
  reason(s), what are pros and cons of your particular choice.
 
  I found many, and now facing difficult choice.
 
  BTW, how do you pass session id between calls to PHP from JavaScript
  (cookies or explicit foo.php?PHPSESSSIONID=blahblahblah)?
 
  Thanks in advance for any suggestion(s).

 Regardless of the framework you choose, note that AJAX solutions based
 on XMLHttpRequest objects are problematic for reasons listed in this
 blog post below. Despite it is an older technology, for most purposes
 people want to use AJAX, IFrame based solutions are more capable and
 reliable.

 * Browser compatibility

 * Browser security constraints

 * Single JavaScript base code

 * Response speed

 * File form upload


 http://www.phpclasses.org/blog/post/51-PHPClasses-20-Beta-AJAX-XMLHttpReque
st-x-IFrame.html


 As for AJAX solutions, I use this forms generation class also mentioned
 in the post, which has a plug-in form submiting and processing forms in
 the background using IFrame based AJAX requests.

 http://www.phpclasses.org/formsgeneration

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Manuel Lemos
Hello,

on 04/03/2006 06:25 PM Andrei Verovski (aka MacGuru) said the following:
 Many thanks for everyone who have replied. Its seems Manuel's suggestion
 regarding iFrame sounds really good. BTW, I am using Savant as template
 engine, and integrate it with Manuel Forms Generation and Validation
would be
 a good idea (there is a Smarty plugin for this class, but I am using
Savant).

I think it would not be hard to implement a plug-in for Savant, if there
is enough interest for do it. I developed the Smarty plug-in but I do
not use it myself because I do not use Smarty. It is very popular though.


 Basically, I have a problem porting my own FileMaker database with many
 multi-page forms (plus large tables and big drop-down lists, displaying
 thousands of items). Things made quickly with native GUI tools often very
 difficult to port to Web-based GUI.

If you have select inputs with long lists of options picked from a
database, you can always split the list according to database query
condition criteria and use multiple linked selects with another plug-in
of the same forms class that can switch the options of a select input
when the value of another linked input changes. It can pick the new
options list from a database (anyone you use) without reloading the page.

Here is an example:

http://www.phpclasses.org/browse/view/html/file/9879/name/test_linked_select_page.html

http://www.phpclasses.org/formsgeneration

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Miles Thompson

At 06:25 PM 4/3/2006, Andrei Verovski (aka MacGuru) wrote:


Hi,

Many thanks for everyone who have replied. Its seems Manuel's suggestion
regarding iFrame sounds really good. BTW, I am using Savant as template
engine, and integrate it with Manuel Forms Generation and Validation would be
a good idea (there is a Smarty plugin for this class, but I am using Savant).

Basically, I have a problem porting my own FileMaker database with many
multi-page forms (plus large tables and big drop-down lists, displaying
thousands of items). Things made quickly with native GUI tools often very
difficult to port to Web-based GUI.

snip

Andrei,

Had to do the same thing a couple of years ago, one of the fields involved 
European phone numbers. No matter what native export method I tried, the 
phone numbers ended up getting converted to exponential notation.


IIRC when dumping the data FileMaker saw that field as numbers and treated 
it accordingly. So I dumped it, sucked it into FoxPro, opened up the .dbf 
header and changed the field to character, and saved it. Then it could be 
imported into Access ( which was what the customer wanted.)


Hope this is helpful - Miles 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 3/31/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Rasmus Lerdorf

Ruben Rubio Rey wrote:

The best and simplest for me is prototype.js

Is much more than ajax ! 100% cross browser! ang GPL!

http://www.sergiopereira.com/articles/prototype.js.html


Note that quite a few people who know a lot about Javascript really 
don't like the fact that prototype.js extends the basic Array type. 
This means that if you have any Javascript that isn't prototype.js 
aware, chances are pretty good that it will break because, for example, 
you can't iterate over the elements of an Array anymore.  It also 
doesn't namespace any of its symbols which again means it doesn't play 
nice with others.  And my last real gripe is that it is a single 
monolithic library.  It's all or nothing.


I am of course rather biased, but I strongly prefer the Yahoo! User 
Interface Library.  You can read about it here:


  http://developer.yahoo.com/yui/

It is a set of tiny standalone components that won't in any way 
interfere with any other Javascript code you might have and you can pick 
and choose just the things you need.


-Rasmus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-01 Thread Greg Beaver
Andrei Verovski (aka MacGuru) wrote:
 Hi,
 
 Anyone can suggest me which PHP AJAX framework you are using, for what 
 reason(s), what are pros and cons of your particular choice.
 
 I found many, and now facing difficult choice.
 
 BTW, how do you pass session id between calls to PHP from JavaScript (cookies 
 or explicit foo.php?PHPSESSSIONID=blahblahblah)?
 
 Thanks in advance for any suggestion(s).

http://pear.php.net/HTML_AJAX

The setup is simple, usage is very easy to debug and it is actively
maintained by one of the more respected PHP coders, Josh Eichorn.

Cookies are fully supported and are preferrable to using a GET variable.

Greg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php