Almost week passed since first 0.9.4 beta2 release and today we have a Release Candidate 1 and I hope the last one ;) Couple of important improvements have appeared since last version, but most important is fixing nasty bug which causes infinitive
... [More]
loop for elements with detached one of the parents. Thanks to Nicolas for feedback. Also the siblings() fix was a serious issue.
There were some works on WebBrowser, which now supports clicking submits and can be called by just one line (without plugin load and host authorization). As you can see at the end of this post, many new (old) selectors have been implemented. This issue was too long on the wait list. The callback system at latest starting to be usable, thanks to to ParamStructures, which simply allows to control parameters order and values. Events now appears in anyones phpQuery by auto triggered 'change' event for form elements. More auto-events will came in time. Feel free to make suggestions. Issue Tracker already have some interesting ideas, take a look there sometime.
Thats all for now, just get the newest version, better via subversion to get easy code updates. Before next release I will to find time try to write DOMDocument wrapper which should open easy doors for certain issues, like XML and charset stuff.
Changelog
missing CSS3 selectors:header:last-child:first-child:only-child:nth-child(index/even/odd/equation):input:text:password:radio:checkbox:submit:image:reset:button:file:hidden:emptynew callback handlingsupport paramStructure to controll passed paramsapplied to ::each(), ::map(), .each(), .map()fixed siblings(), which doesnt return ANY of previous siblingsWebBrowsermeta refresh supportedfixed double callbackclick on submit now submits formadded browserPost()added browser()support for callback's paramStructure added shortcuts in main phpQuery namespaceautomatic ajax host authorizationadded basic XML compatibilityfixed passing DOMNode as query $context in pq();added phpQuery::ajaxAllowHost($host)added auto 'change' event triggering for form elementsfixed Issue 38 with infinitive loop (thx Nicolas!)
Download phpQuery 0.9.4 RC1. [Less]
|
Almost week passed since first 0.9.4 beta2 release and today we have a Release Candidate 1 and I hope the last one ;) Couple of important improvements have appeared since last version, but most important is fixing nasty bug which causes infinitive
... [More]
loop for elements with detached one of the parents. Thanks to Nicolas for feedback. Also the siblings() fix was a serious issue.
There were some works on WebBrowser, which now supports clicking submits and can be called by just one line (without plugin load and host authorization). As you can see at the end of this post, many new (old) selectors have been implemented. This issue was too long on the wait list. The callback system at latest starting to be usable, thanks to to ParamStructures, which simply allows to control parameters order and values. Events now appears in anyones phpQuery by auto triggered 'change' event for form elements. More auto-events will came in time. Feel free to make suggestions. Issue Tracker already have some interesting ideas, take a look there sometime.
Thats all for now, just get the newest version, better via subversion to get easy code updates. Before next release I will to find time try to write DOMDocument wrapper which should open easy doors for certain issues, like XML and charset stuff.
Changelog
missing CSS3 selectors:header:last-child:first-child:only-child:nth-child(index/even/odd/equation):input:text:password:radio:checkbox:submit:image:reset:button:file:hidden:emptynew callback handlingsupport paramStructure to controll passed paramsapplied to ::each(), ::map(), .each(), .map()fixed siblings(), which doesnt return ANY of previous siblingsWebBrowsermeta refresh supportedfixed double callbackclick on submit now submits formadded browserPost()added browser()support for callback's paramStructure added shortcuts in main phpQuery namespaceautomatic ajax host authorizationadded basic XML compatibilityfixed passing DOMNode as query $context in pq();added phpQuery::ajaxAllowHost($host)added auto 'change' event triggering for form elementsfixed Issue 38 with infinitive loop (thx Nicolas!)
Download phpQuery 0.9.4 RC1.
[Less]
|
Almost week passed since first 0.9.4 beta2 release and today we have a Release Candidate 1 and I hope the last one ;) Couple of important improvements have appeared since last version, but most important is fixing nasty bug which causes infinitive
... [More]
loop for elements with detached one of the parents. Thanks to Nicolas for feedback. Also the siblings() fix was a serious issue.
There were some works on WebBrowser, which now supports clicking submits and can be called by just one line (without plugin load and host authorization). As you can see at the end of this post, many new (old) selectors have been implemented. This issue was too long on the wait list. The callback system at latest starting to be usable, thanks to to ParamStructures, which simply allows to control parameters order and values. Events now appears in anyones phpQuery by auto triggered 'change' event for form elements. More auto-events will came in time. Feel free to make suggestions. Issue Tracker already have some interesting ideas, take a look there sometime.
Thats all for now, just get the newest version, better via subversion to get easy code updates. Before next release I will to find time try to write DOMDocument wrapper which should open easy doors for certain issues, like XML and charset stuff.
Changelog
missing CSS3 selectors
:header
:last-child
:first-child
:only-child
:nth-child(index/even/odd/equation)
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden
:empty
new callback handling
support paramStructure to controll passed params
applied to ::each(), ::map(), .each(), .map()
fixed siblings(), which doesnt return ANY of previous siblings
WebBrowser
meta refresh supported
fixed double callback
click on submit now submits form
added browserPost()
added browser()
support for callback's paramStructure
added shortcuts in main phpQuery namespace
automatic ajax host authorization
added basic XML compatibility
fixed passing DOMNode as query $context in pq();
added phpQuery::ajaxAllowHost($host)
added auto 'change' event triggering for form elements
fixed Issue 38 with infinitive loop (thx Nicolas!)
Download phpQuery 0.9.4 RC1.
[Less]
|
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]
|
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]
|
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]
|
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]
|
|
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.
|
|
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.
|
|
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.
|