-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetJson problem or missing file #1
Comments
u need set zendframework path in php.ini set_include_path(get_include_path() . PATH_SEPARATOR . 'D:/Users/Documents/The Project/ZendFramework-1.x/library/'); change the path for your zend path zend version need is 1.x |
It does not solve the problem I have still following issue Fatal error: Uncaught exception 'Zend_Json_Exception' with message 'Illegal I have another problem, sorry if I take advantage of your time : all variables put in " data " field of phpQuery::ajax are not in request $data['function'] = 'addProduct'; $doc=phpQuery::ajax(array(
and in landing page I use echo $_REQUEST['function'] // echoes nothing! Servizio Clienti ModaCalcio.com Modacalcio.com gruppo E-reall sport, via Ariosto 3, http://www.modacalcio.com
|
my test issue replace r.php <?php
/**
* @author bluelovers
* @copyright 2012
*/
require_once (dirname(__file__) . '/../bootstrap.php');
$url = 'http://' . $_SERVER["HTTP_HOST"] . str_replace('r.php', 's.php', $_SERVER["PHP_SELF"]);
phpQuery::ajaxAllowHost($_SERVER["HTTP_HOST"]);
$data['function'] = 'addProduct';
$doc = phpQuery::ajax(array(
'type' => 'GET',
'url' => $url,
'data' => $data,
'success' => 'getJsCallback'));
function getJsCallback($doc)
{
echo $doc;
} s.php <?php
/**
* @author bluelovers
* @copyright 2012
*/
echo $_REQUEST['function']; |
Ok I found where is the problem the script now works correctly effectively I wrote bad the callback function But the problem with request remains. I am trying to make an ajax call to a file inside a joomla website of mine. If I do a normal jquery getjson call it goes all ok and the request is Unfortunately I need it in php as to add a Json call to the current Thanks for your effort Jquery call
Servizio Clienti ModaCalcio.com Modacalcio.com gruppo E-reall sport, via Ariosto 3, http://www.modacalcio.com
|
if u use datatype:"json" the Ajax server response url need return json data |
If i put json I get the send exception illegal token. I am wondering why Il giorno giovedì 19 aprile 2012, bluelovers <
|
the new jqueryserver demo fix it error illegal token because use json parse html data u can see the commit log for changes now use use phpquery parse html and return json |
Hello it's me again :DD I am having some problem in integrating your library into a fully I ha ve to parse an external htm page, and usig the library as a standaline When i pur ito my doctrine 2 project it not. The error is inside he pq May you be iterested i solvig this issue? I can Try help you!
|
Hello I am trying use this:
phpQuery::ajax(array(
'type' => 'GET',
'url' => $url,
'data' => array('prova'=>'ciao'),
'success' => getJsCallback($doc),
'dataType' => 'json',
));
But it satys :
Warning: require_once(Zend/Json.php): failed to open stream: No such file or directory in /home/giuseppe/homeProj/phpQuery/phpQuery/phpQuery/Zend/Json/Decoder.php
So I added manually from ZendFramework
Zend/Json.php
Zend/Json/Expr.php
And it gives me :
Fatal error: Uncaught exception 'Zend_Json_Exception' with message 'Illegal Token'
Could you check please?
Thankls
The text was updated successfully, but these errors were encountered: