4
I Use This!
Inactive

News

Analyzed 1 day ago. based on code collected 1 day ago.
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
UPDATE - phpQuery 0.9.4 RC1 has been released I proudly announce a public release of phpQuery 0.9.4 (beta2 right now). There were many many changes since 0.9.1, and here's the highlights. Ajax You can do requests like in jQuery, but cross-domain. ... [More] Everything works on stable Zend HTTP Client. Example: phpQuery::newDocument('') ->load('http://somesite.com/form #result', array( 'postParam1' => 'value1', 'postParam2' => 'value2', )) ->find('#result') ->before('This is a result of requested form'); Events This could seem odd for someone, but server-side DOM events are now implemented and work quite like those in a browser - you can bind to node's event, you can trigger them and they bubble up thru DOM. Example: phpQuery::newDocumentFile('myfile.html') ->find('.my-elements') ->parent() ->bind('awaitedEvent', 'handlerCallback')->end() ->trigger('awaitedEvent'); function handlerCallback($event) { $target = $event->target; $node = $event->currentTarget; } WebBrowser plugin Now here's the most intresting part - combine AJAX and events, bind some defaults behaviors, add .location property, cookies was already there and here we have - WebBrowser mimics on every PHP5 server ! Just look at quering google: phpQuery::$plugins->browserGet('http://google.com/', 'success1'); function success1($browser) { $browser ->WebBrowser('success2') ->find('input[name=q]') ->val('phpQuery') ->parents('form') ->submit() ; } function success2($html) { print $html; } It's still needs some polishing (and testing mainly), eg meta-refreshes are missing (gmail login fails), no submit after click and probably others, but it works and is so nice! jQueryServer It's a subproject existing from some time in repo, but today it pops-up to the light. First - it's a jQuery plugin, kind of RPC thing, so you can request actions on phpQuery straight from browser and fetch only a result. Example: $.server({url: 'http://somesite.com'}) .find('.my-class') .client(function(response){ $('.destination').html(response); }); Full changelog: AJAX (Zend Framework's HTTP Client used as backend) Events (server-side...) WebBrowser plugin (yey!) jQueryServer plugin for jQuery Countable interface implementation redesigned class structure (less namespace collisions) enhanced plugin implementation (API changed) added toReference($var) fixed get(index) fixed importing nodes via pq() fixed multiplie selectors in filter() fixed not() to support phpQuery objects and DOMNodes ArrayAccess interface implementation eg $pqDocument['.my-class']->addClass('my-second-class'); eg $pqDocument['.my-class'] = 'new outherHtml for .my-class'; fixed HTML entities (utf8 only for today) added filterCallback() added phpQuery::toJSON() added phpQuery::parseJSON() added phpQuery::getDocumentID() added phpQuery::getDOMDocument() global events Zend Framework added as svn:externals ported functions from Utilities section phpQuery::each() ::grep() ::makeArray() ::map() ::inArray() ::unique() length avaible as attribute fixed .map() fixed .clone() Just grab it here - phpQuery-0.9.4-beta2.zip or visit phpQuery project homepage for alternative ways. Don't forget to post bugs to Issue Tracker ;) [Less]
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
UPDATE - phpQuery 0.9.4 RC1 has been released I proudly announce a public release of phpQuery 0.9.4 (beta2 right now). There were many many changes since 0.9.1, and here's the highlights. Ajax You can do requests like in jQuery, but cross-domain. ... [More] Everything works on stable Zend HTTP Client. Example: phpQuery::newDocument('') ->load('http://somesite.com/form #result', array( 'postParam1' => 'value1', 'postParam2' => 'value2', )) ->find('#result') ->before('This is a result of requested form'); Events This could seem odd for someone, but server-side DOM events are now implemented and work quite like those in a browser - you can bind to node's event, you can trigger them and they bubble up thru DOM. Example: phpQuery::newDocumentFile('myfile.html') ->find('.my-elements') ->parent() ->bind('awaitedEvent', 'handlerCallback')->end() ->trigger('awaitedEvent'); function handlerCallback($event) { $target = $event->target; $node = $event->currentTarget; } WebBrowser plugin Now here's the most intresting part - combine AJAX and events, bind some defaults behaviors, add .location property, cookies was already there and here we have - WebBrowser mimics on every PHP5 server ! Just look at quering google: phpQuery::$plugins->browserGet('http://google.com/', 'success1'); function success1($browser) { $browser ->WebBrowser('success2') ->find('input[name=q]') ->val('phpQuery') ->parents('form') ->submit() ; } function success2($html) { print $html; } It's still needs some polishing (and testing mainly), eg meta-refreshes are missing (gmail login fails), no submit after click and probably others, but it works and is so nice! jQueryServer It's a subproject existing from some time in repo, but today it pops-up to the light. First - it's a jQuery plugin, kind of RPC thing, so you can request actions on phpQuery straight from browser and fetch only a result. Example: $.server({url: 'http://somesite.com'}) .find('.my-class') .client(function(response){ $('.destination').html(response); }); Full changelog: AJAX (Zend Framework's HTTP Client used as backend) Events (server-side...) WebBrowser plugin (yey!) jQueryServer plugin for jQuery Countable interface implementation redesigned class structure (less namespace collisions) enhanced plugin implementation (API changed) added toReference($var) fixed get(index) fixed importing nodes via pq() fixed multiplie selectors in filter() fixed not() to support phpQuery objects and DOMNodes ArrayAccess interface implementation eg $pqDocument['.my-class']->addClass('my-second-class'); eg $pqDocument['.my-class'] = 'new outherHtml for .my-class'; fixed HTML entities (utf8 only for today) added filterCallback() added phpQuery::toJSON() added phpQuery::parseJSON() added phpQuery::getDocumentID() added phpQuery::getDOMDocument() global events Zend Framework added as svn:externals ported functions from Utilities section phpQuery::each() ::grep() ::makeArray() ::map() ::inArray() ::unique() length avaible as attribute fixed .map() fixed .clone() Just grab it here - phpQuery-0.9.4-beta2.zip or visit phpQuery project homepage for alternative ways. Don't forget to post bugs to Issue Tracker ;) [Less]
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
UPDATE - phpQuery 0.9.4 RC1 has been released I proudly announce a public release of phpQuery 0.9.4 (beta2 right now). There were many many changes since 0.9.1, and here's the highlights. Ajax You can do requests like in jQuery, but ... [More] cross-domain. Everything works on stable Zend HTTP Client. Example: phpQuery::newDocument('<html><body></body></html>') ->load('http://somesite.com/form #result', array( 'postParam1' => 'value1', 'postParam2' => 'value2', )) ->find('#result') ->before('<h1>This is a result of requested form</h1>'); Events This could seem odd for someone, but server-side DOM events are now implemented and work quite like those in a browser - you can bind to node's event, you can trigger them and they bubble up thru DOM. Example: phpQuery::newDocumentFile('myfile.html') ->find('.my-elements') ->parent() ->bind('awaitedEvent', 'handlerCallback')->end() ->trigger('awaitedEvent'); function handlerCallback($event) { $target = $event->target; $node = $event->currentTarget; } WebBrowser plugin Now here's the most intresting part - combine AJAX and events, bind some defaults behaviors, add .location property, cookies was already there and here we have - WebBrowser mimics on every PHP5 server ! Just look at quering google: phpQuery::$plugins->browserGet('http://google.com/', 'success1'); function success1($browser) { $browser ->WebBrowser('success2') ->find('input[name=q]') ->val('phpQuery') ->parents('form') ->submit() ; } function success2($html) { print $html; } It's still needs some polishing (and testing mainly), eg meta-refreshes are missing (gmail login fails), no submit after click and probably others, but it works and is so nice! jQueryServer It's a subproject existing from some time in repo, but today it pops-up to the light. First - it's a jQuery plugin, kind of RPC thing, so you can request actions on phpQuery straight from browser and fetch only a result. Example: $.server({url: 'http://somesite.com'}) .find('.my-class') .client(function(response){ $('.destination').html(response); }); Full changelog: AJAX (Zend Framework's HTTP Client used as backend)Events (server-side...)WebBrowser plugin (yey!)jQueryServer plugin for jQueryCountable interface implementationredesigned class structure (less namespace collisions)enhanced plugin implementation (API changed)added toReference($var)fixed get(index)fixed importing nodes via pq()fixed multiplie selectors in filter() fixed not() to support phpQuery objects and DOMNodesArrayAccess interface implementation eg $pqDocument['.my-class']->addClass('my-second-class');eg $pqDocument['.my-class'] = 'new outherHtml for .my-class';fixed HTML entities (utf8 only for today)added filterCallback()added phpQuery::toJSON()added phpQuery::parseJSON()added phpQuery::getDocumentID()added phpQuery::getDOMDocument()global eventsZend Framework added as svn:externalsported functions from Utilities sectionphpQuery::each()::grep()::makeArray()::map()::inArray()::unique()length avaible as attributefixed .map()fixed .clone() Just grab it here - phpQuery-0.9.4-beta2.zip or visit phpQuery project homepage for alternative ways. Don't forget to post bugs to Issue Tracker ;) [Less]
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
UPDATE - phpQuery 0.9.4 RC1 has been released I proudly announce a public release of phpQuery 0.9.4 (beta2 right now). There were many many changes since 0.9.1, and here's the highlights. Ajax You can do requests like in jQuery, but cross-domain. ... [More] Everything works on stable Zend HTTP Client. Example: phpQuery::newDocument('') ->load('http://somesite.com/form #result', array( 'postParam1' => 'value1', 'postParam2' => 'value2', )) ->find('#result') ->before('This is a result of requested form'); Events This could seem odd for someone, but server-side DOM events are now implemented and work quite like those in a browser - you can bind to node's event, you can trigger them and they bubble up thru DOM. Example: phpQuery::newDocumentFile('myfile.html') ->find('.my-elements') ->parent() ->bind('awaitedEvent', 'handlerCallback')->end() ->trigger('awaitedEvent'); function handlerCallback($event) { $target = $event->target; $node = $event->currentTarget; } WebBrowser plugin Now here's the most intresting part - combine AJAX and events, bind some defaults behaviors, add .location property, cookies was already there and here we have - WebBrowser mimics on every PHP5 server ! Just look at quering google: phpQuery::$plugins->browserGet('http://google.com/', 'success1'); function success1($browser) { $browser ->WebBrowser('success2') ->find('input[name=q]') ->val('phpQuery') ->parents('form') ->submit() ; } function success2($html) { print $html; } It's still needs some polishing (and testing mainly), eg meta-refreshes are missing (gmail login fails), no submit after click and probably others, but it works and is so nice! jQueryServer It's a subproject existing from some time in repo, but today it pops-up to the light. First - it's a jQuery plugin, kind of RPC thing, so you can request actions on phpQuery straight from browser and fetch only a result. Example: $.server({url: 'http://somesite.com'}) .find('.my-class') .client(function(response){ $('.destination').html(response); }); Full changelog: AJAX (Zend Framework's HTTP Client used as backend) Events (server-side...) WebBrowser plugin (yey!) jQueryServer plugin for jQuery Countable interface implementation redesigned class structure (less namespace collisions) enhanced plugin implementation (API changed) added toReference($var) fixed get(index) fixed importing nodes via pq() fixed multiplie selectors in filter() fixed not() to support phpQuery objects and DOMNodes ArrayAccess interface implementation eg $pqDocument['.my-class']->addClass('my-second-class'); eg $pqDocument['.my-class'] = 'new outherHtml for .my-class'; fixed HTML entities (utf8 only for today) added filterCallback() added phpQuery::toJSON() added phpQuery::parseJSON() added phpQuery::getDocumentID() added phpQuery::getDOMDocument() global events Zend Framework added as svn:externals ported functions from Utilities section phpQuery::each() ::grep() ::makeArray() ::map() ::inArray() ::unique() length avaible as attribute fixed .map() fixed .clone() Just grab it here - phpQuery-0.9.4-beta2.zip or visit phpQuery project homepage for alternative ways. Don't forget to post bugs to Issue Tracker ;) [Less]
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
UPDATE - phpQuery 0.9.4 RC1 has been released I proudly announce a public release of phpQuery 0.9.4 (beta2 right now). There were many many changes since 0.9.1, and here's the highlights. Ajax You can do requests like in jQuery, but ... [More] cross-domain. Everything works on stable Zend HTTP Client. Example: phpQuery::newDocument('<html><body></body></html>') ->load('http://somesite.com/form #result', array( 'postParam1' => 'value1', 'postParam2' => 'value2', )) ->find('#result') ->before('<h1>This is a result of requested form</h1>'); Events This could seem odd for someone, but server-side DOM events are now implemented and work quite like those in a browser - you can bind to node's event, you can trigger them and they bubble up thru DOM. Example: phpQuery::newDocumentFile('myfile.html') ->find('.my-elements') ->parent() ->bind('awaitedEvent', 'handlerCallback')->end() ->trigger('awaitedEvent'); function handlerCallback($event) { $target = $event->target; $node = $event->currentTarget; } WebBrowser plugin Now here's the most intresting part - combine AJAX and events, bind some defaults behaviors, add .location property, cookies was already there and here we have - WebBrowser mimics on every PHP5 server ! Just look at quering google: phpQuery::$plugins->browserGet('http://google.com/', 'success1'); function success1($browser) { $browser ->WebBrowser('success2') ->find('input[name=q]') ->val('phpQuery') ->parents('form') ->submit() ; } function success2($html) { print $html; } It's still needs some polishing (and testing mainly), eg meta-refreshes are missing (gmail login fails), no submit after click and probably others, but it works and is so nice! jQueryServer It's a subproject existing from some time in repo, but today it pops-up to the light. First - it's a jQuery plugin, kind of RPC thing, so you can request actions on phpQuery straight from browser and fetch only a result. Example: $.server({url: 'http://somesite.com'}) .find('.my-class') .client(function(response){ $('.destination').html(response); }); Full changelog: AJAX (Zend Framework's HTTP Client used as backend)Events (server-side...)WebBrowser plugin (yey!)jQueryServer plugin for jQueryCountable interface implementationredesigned class structure (less namespace collisions)enhanced plugin implementation (API changed)added toReference($var)fixed get(index)fixed importing nodes via pq()fixed multiplie selectors in filter() fixed not() to support phpQuery objects and DOMNodesArrayAccess interface implementation eg $pqDocument['.my-class']->addClass('my-second-class');eg $pqDocument['.my-class'] = 'new outherHtml for .my-class';fixed HTML entities (utf8 only for today)added filterCallback()added phpQuery::toJSON()added phpQuery::parseJSON()added phpQuery::getDocumentID()added phpQuery::getDOMDocument()global eventsZend Framework added as svn:externalsported functions from Utilities sectionphpQuery::each()::grep()::makeArray()::map()::inArray()::unique()length avaible as attributefixed .map()fixed .clone() Just grab it here - phpQuery-0.9.4-beta2.zip or visit phpQuery project homepage for alternative ways. Don't forget to post bugs to Issue Tracker ;) [Less]
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
Finally, we have a blog for phpQuery project. All major release notes will be posted here. For now it's all in Blogspot's default state, but this should change in some time. So subscribe to RSS channel if you want to be informed about official releases.
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
Finally, we have a blog for phpQuery project. All major release notes will be posted here. For now it's all in Blogspot's default state, but this should change in some time. So subscribe to RSS channel if you want to be informed about official releases.
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
Finally, we have a blog for phpQuery project. All major release notes will be posted here. For now it's all in Blogspot's default state, but this should change in some time. So subscribe to RSS channel if you want to be informed about official releases.
Posted about 18 years ago by [email protected] (Tobiasz Cudnik)
Finally, we have a blog for phpQuery project. All major release notes will be posted here. For now it's all in Blogspot's default state, but this should change in some time. So subscribe to RSS channel if you want to be informed about official releases.