RE: [PHP] Re: php <-> js (was Javascript Navigation)
[snip] ...interesting conversation... [/snip] Stateless applications, ain't they fun? I did a little experiment before Ajax cam into vogue with a small PHP script that essentially ran a while loop with some sleep cycles built in. This was placed in an iframe and another page was placed in another iframe with javascript to update the second iframe if data had changed in the first iframe based on a query running while PHP cycled the loop. OB functions were used and it worked. Clear? So that experiment lead to a meta-refresh of the page in the first iframe which then ran some PHP code that output some JavaScript to update the second iframe. It worked better, but had its moments. The point was to make the user experience better, a manager could see that certain things were happening without having to refresh a page manually. Also, a smaller more efficient query could be run and if the data had not changed the system would not have to endure the overhead of the larger query. The end result? A stateless application with simulated statemuch like what Ajax does today. Really, it was as Ajax as could be, just not using the httpRequest doohickey, or whatever it is. There is a wide gulf between stateless applications and applications with state. Even Java uses a hacked stateless connection (by having something run client-side sending info a to listener on the server...what does that sound like?). Isn't the intent for client server apps to be stateless? Applications with state typically share memory resources. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php <-> js (was Javascript Navigation)
hi normally, tedd wrote: At 9:03 AM +0200 4/28/06, Barry wrote: tedd schrieb: At 5:09 PM +0200 4/27/06, Barry wrote: tedd schrieb: Hi gang: Gang? Gang, group, clan, community, organization, hive, pod, assembly, biocenosis -- what do you want to be called? By my name normally. can I shorten that to 'norm'? or did you mean 'usually' in which case given that I'm odd/unusual/abnormal can I call you something else? And if you adress everyone i prefer "everyone" preferences are like standards - there alot of them. Two things: 1. My post wasn't by name, but to the list. 2. And, in doing so, I prefer "gang". After all, this is an informal group and everyone is permitted their preferences, right? tedd - you wanna say 'gang' you do that :-) you had me a 'hi' ;-) [ok that was a crap Jerry Maguire reference I know.] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php <-> js (was Javascript Navigation)
On Fri, 2006-04-28 at 13:58, Chrome wrote: > > > >> Java > > > ... Sucks. > > Because? > > You know why! > > > Um I don't... Would you mind explaining for the hard of thinking please? > (that's me by the way :) ) I'm too busy :P Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php <-> js (was Javascript Navigation)
> >> Java > > ... Sucks. > Because? You know why! Um I don't... Would you mind explaining for the hard of thinking please? (that's me by the way :) ) Cheers Dan -- http://chrome.me.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php <-> js (was Javascript Navigation)
On Fri, 2006-04-28 at 02:59, Barry wrote: > Robert Cummings schrieb: > > On Thu, 2006-04-27 at 11:09, Barry wrote: > >> tedd schrieb: > >>> Hi gang: > >> Gang? > > > > You know... Scooby, Shaggy, and Mary-Jane. > ah, ic. Are you sure? > > > >>> 1. A way to send information from js to php and have php act upon it. > >> Java > > ... Sucks. > Because? You know why! > >>> 2. A way to send information from php to js and have js act upon it. > >> Java > > ... Sucks :) > Because? See last comment. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php <-> js (was Javascript Navigation)
At 9:03 AM +0200 4/28/06, Barry wrote: tedd schrieb: At 5:09 PM +0200 4/27/06, Barry wrote: tedd schrieb: Hi gang: Gang? Gang, group, clan, community, organization, hive, pod, assembly, biocenosis -- what do you want to be called? By my name normally. And if you adress everyone i prefer "everyone" Two things: 1. My post wasn't by name, but to the list. 2. And, in doing so, I prefer "gang". After all, this is an informal group and everyone is permitted their preferences, right? Show me. function jstojava() { // sending stuff to the applet } Javaapplet containing Java that gives infos to PHP through an openened PHP socket. PHP giving stuff back Java executes a JS with the vars given by php Interesting -- and yet another thing for me to learn. Thanks -- I'll consider. tedd PS: I've learned something new every day of my life, and I'm getting damn tired of it. -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php <-> js (was Javascript Navigation)
tedd schrieb: At 5:09 PM +0200 4/27/06, Barry wrote: tedd schrieb: Hi gang: Gang? Gang, group, clan, community, organization, hive, pod, assembly, biocenosis -- what do you want to be called? By my name normally. And if you adress everyone i prefer "everyone" Show me. function jstojava() { // sending stuff to the applet } Javaapplet containing Java that gives infos to PHP through an openened PHP socket. PHP giving stuff back Java executes a JS with the vars given by php -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php <-> js (was Javascript Navigation)
Robert Cummings schrieb: On Thu, 2006-04-27 at 11:09, Barry wrote: tedd schrieb: Hi gang: Gang? You know... Scooby, Shaggy, and Mary-Jane. ah, ic. 1. A way to send information from js to php and have php act upon it. Java ... Sucks. Because? 2. A way to send information from php to js and have js act upon it. Java ... Sucks :) Because? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php <-> js (was Javascript Navigation)
On Thu, 2006-04-27 at 11:09, Barry wrote: > tedd schrieb: > > Hi gang: > Gang? You know... Scooby, Shaggy, and Mary-Jane. > > 1. A way to send information from js to php and have php act upon it. > > Java ... Sucks. > > 2. A way to send information from php to js and have js act upon it. > > Java ... Sucks :) 1 and 2 are completely covered by Ajax technologies. JS can push information to your PHP scripts (user input, status information, whatever). PHP in turn can return as much information -- including whether PHP's task was successful. Additionally, JavaScript can do polling already, it's just a big loop. But it also does event-driven based on user input/timers so it's not lacking anything. JavaScript can already be desk-top-like, the only difference is that the browsers all have their own quirks, and due to the stateless nature of the Web the state must be maintained both in JavaScript and in PHP. This is just business as usual. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php