qooxdoo / PHP framework project

View: New views
8 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

Re: qooxdoo / PHP framework project

by Lumir Stol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all!

This is maybe completely off-topic, I just want to share some ideas from
my PHP kitchen.

I'm using qooxdoo together with CakePHP and xajax already - I'm quite
well familiar with those projects, so incorporating of qooxdoo was
matter of few hours for me.

My actual implementation is almost prefect for my needs, basically it
allows from server side:

- invoke any JavaScript code in client browser, so almost all Qx objects
are created from PHP with using of CakePHP cached views (I'm reusing
existed Qx objects, so for example no QxWindow object is created more
then once)

- call createDispatchEvent() or createDispatchDataEvent() on any live Qx
object - it's hashCode and event name is sended to server and from PHP
is sended this javascript:
    "new CqxResponse(".$hashCode.",
'".$eventName."').processEvent('".$result."');"
where variable $result is optional - if it is null, then
createDispatchEvent() is invoked by CqxResponse_object.processEvent()
method. Data in result are JSON-like formatted, so I can pass to event
listeners any data I want to.

- call set() on any live QxObject - it's hashCode is sended to server
and from PHP is sended this javascript:
    "new CqxResponse(".$hashCode.").processSet('".$result."'));"
where $result if required and it is JSON-like formatted JS object.

If target object with hashCode doesn't exist in time response is
processed, it simply does nothing (except for debug message).

This my solution off course allows more then those simple actions, for
example:

- my CqxRequest object can create decendent of Qxtarget with (optional)
limited time for existency of this object and (optional) limited time in
during response has to arrive (by QxTimer), set it's some object
property, create listener for server response and send hashCode and
event name of new listener to server, so my PHP code could aim response
actions on it - I'm using it for (shall we say) pseudo-synchronous mode
for server-side validators, so I can simply define 'onChangeX' listener
on this decendent of QxTarget and I don't have to handle every response
in object which has some data with server-side validation.

For example: if I have listener for 'input' event on QxTextField which
is validated on server-side, there is
a) created new CqxRequest with decendent of QxTarget - if it doesn't
exist yet, off course
b) checked value of QxTarget property

It is off course more complicated then I am describing here, it allows
lock-up my CqxForm (parent for fieldsets or inputs, which could manage
visibility/enable of submit objects etc), prepare data of inputs for
sending through xajax and more and more.

I hope this post is clear enough, I'm speak English like Tarzan. BTW:
this 'Cqx' in CqxRequest and CqxResponse means CakeQooxdooXajax :)

For those who are talking about XML/XUL in this topic: I'm sorry. I hope
those ideas could be usable for anyone - I'm playing with qooxdoo just
for few days, but Qooxdoo + CakePHP + Xajax looks like very promisingly
marriage to me.

Have a nice day!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: qooxdoo / PHP framework project

by panyasan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sebastian Werner schrieb:
> For PHP:
> http://phpontrax.com/
> http://cakephp.org/
> http://www.symfony-project.com/
Cakephp looks good to me, it is php4 and php5 compatible. And since
Lumir has some experience already, why not give it a try?

Christoph - any thoughts?

Christian


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: qooxdoo / PHP framework project

by ChristophDorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


If this is what works best for qooxdoo then thats what we will use.
Thanks Sebastian for that input. That is what I was looking for in terms of how the loading should best be accomplished.

Christoph


>> 4. Convert the XML at server side to JSON. Using a new qooxdoo class
>> to transform this JSON code to JavaScript objects. (In my opinion the
>> best choice. The code which needs to be send to the client in
>> relatively small and also it's possible for the client to render this
>> stuff really quickly.)

>Thas is a great idea!!! I am in favour of that, too! Would it be a big
>hassle to write this class? Sebastian, would you consider donating some
>of your precious time to at least write a codebase that we can further
>work with, if we take care of the server-side implementations? You (or
>the other developers) are just the closest to the design of qooxdoo to
>make this really efficient and fast.

Christian


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: qooxdoo / PHP framework project

by ChristophDorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have not looked at these frameworks in real detail yet. This comes back to what I mentioned before. I think it is best if we define an XML definition, then write a json converter (now that we know json is the way to go) and a loader in qooxdoo for the json code.

The second phase or at the same time we can look at several frameworks and design a library that can be plugged into any of them. There will likely be custom components for each framework to form a good interface. Depending on the framework we can focus on just offering XML to layout qooxdoo applications leaving the event coding to the developer or we can extend the frameworks event and communication system to the client and qooxdoo. Frameworks that already have an AJAX component should be easy to extend in this regard.

Christoph

Re: qooxdoo / PHP framework project

by ChristophDorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for your input Lumír.

What you have explained is not off topic but another component of what a framework would need to accomplish.

Do you have a sample application or demo you can share that we can have a look at?
It could serve as a starting point for defining what features we will need on the client and server sides.

Christoph

Re: qooxdoo / PHP framework project

by Lumir Stol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ChristophDorn wrote:
> Do you have a sample application or demo you can share that we can have a
> look at?
>  
OK, I will surely make some demo in during this weekend - I will strip
down my code, so it will not contain mentioned validation features, as
they aren't working by 'clean' qooxdoo way - qooxdoo assumes function as
setValidator() parameter, not an object - and I'm definitely not JS
programmer ;-)


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: qooxdoo / PHP framework project

by Lumir Stol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ChristophDorn wrote:
> Do you have a sample application or demo you can share that we can have a
> look at?
>  
I decide rewrite this code so it will not use xajax as transport layer,
as CakePHP has built-in support for ajax through prototype library.

Simple first & hot demo of 0.1_alpha release of LGPL project CQX is
here: http://cqx.100rk.org/cqx

Related topic on CakePHP Google Group is here:
http://groups.google.com/group/cake-php/browse_thread/thread/ba219c64cd794764/3410cfa5fba55955#3410cfa5fba55955



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: qooxdoo / PHP framework project

by Lumir Stol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

...and sources are here: http://cakeforge.org/projects/cqx

Any help/suggestion how to make it more 'qooxdoo-ish' ;-) is more then
welcome.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
< Prev | 1 - 2 - 3 | Next >