Jquery-Like Interface for PHP

jQuery-like interface for PHP?

Doing some more hunting, I think I might've found precisely what I was looking for:

phpQuery - jQuery port to PHP

Thanks everyone for your answers, I will definitely keep them in mind for other uses.

PHP Framework with full jQuery integration?

http://www.symfony-project.org/plugins/sfJqueryReloadedPlugin

http://bakery.cakephp.org/articles/view/jquery-helper

http://framework.zend.com/manual/en/zendx.jquery.html

http://qcu.be/

php - interface for and ajax calls

I would choose option 1. Just like in popular frameworks like Yii. The typical workflow is like this one:

if (isAjaxRequest()) {
// Ouput JSON and finish script
die(json_encode($output));
}
else {
// This is not AJAX request, proceed
}

And isAjaxRequest is:

// Taken from Yii framework method
function isAjaxRequest() {
return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']==='XMLHttpRequest';
}

You don't need to set certain variable to indicate that the request is via AJAX because browser sends HTTP_X_REQUESTED_WITH header and you just need to check if it's been set.

What are some good JavaScript/AJAX interface patterns for websites?

I have found pjax to be the most promising solution so far. From https://github.com/defunkt/jquery-pjax:

pjax loads HTML from your server into the current page without a full
reload. It's ajax with real permalinks, page titles, and a working
back button that fully degrades.

pjax enhances the browsing experience - nothing more.

You can find a demo on http://pjax.heroku.com/

Get List of jQuery UI themes - from an URL (same-origin-policy)

I found this service from yahoo(YQL) and this Cross-domain requests with jQuery plugin that uses YQL to fetch cross domain content.

http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/

DEMO: http://jsfiddle.net/SXHrB/4/

The below code simply fetched me the whole page which I parsed to get the required content.

$.ajax({
url: 'http://jquery-ui.googlecode.com/svn/tags/1.8.23/themes/',
type: 'GET',
success: function(data) {
alert(data.responseText.substring(data.responseText.indexOf('<ul>'), data.responseText.lastIndexOf('</ul>') + 4));
}
});

JQuery VS Flex - Choosing a Platform for SAAS

UI : U need rapid turn around, and html somehow make it possible. meaning with html tech u can easily change your ui. however having the whole ui running on flex, slight changes require an sdk/flex compilation. we have some similar project like yours, but we combined both world, some widgets are using flex, the ui still in html, and jquery to do the magic stuff.

on the back end side this slides can give u some ideas:



Related Topics



Leave a reply



Submit