|
Prev: [ANNOUNCEMENT] HTML_AJAX-0.5.4 (beta) Released.
Next: [ANNOUNCEMENT] URI_Template-0.2.0 (alpha) Released.
From: Mario Gzuk on 5 Apr 2008 09:45 Hi, first thank you for this great work! I dont know if this is releated to the browser, to javascript or to HTML_AJAX, but I am sure here are the X-perts who know why this happens. If I want to use the HTML_AJAX_Server I bind in the script like this: <script type="text/javascript" src="modules/syslog_ng/live_search_logs.php?stub=livesearch_syslog&client=main,dispatcher,httpclient,request,json,loading,orderedqueue&bli=bla&tablename=blub&dbname=DB"></script> and I do an print_r($_GET) in live_search_logs.php the following array is displayed: Array ( [bli] => bla [amp;tablename] => blub [amp;dbname] => DB [c] => livesearch_syslog [m] => searchsyslog ) Why the first vars ar working and after that ist seems to be that some & gets parsed to & Thank you for any hint on this! greetings mario
From: Joshua Eichorn on 7 Apr 2008 12:47 Mario Gzuk wrote: > Hi, > first thank you for this great work! I dont know if this is releated to > the browser, to javascript or to HTML_AJAX, but I am sure here are the > X-perts who know why this happens. > > If I want to use the HTML_AJAX_Server I bind in the script like this: > > <script type="text/javascript" > src="modules/syslog_ng/live_search_logs.php?stub=livesearch_syslog&client=main,dispatcher,httpclient,request,json,loading,orderedqueue&bli=bla&tablename=blub&dbname=DB"></script> > > and I do an print_r($_GET) in live_search_logs.php the following array > is displayed: > Array > ( > [bli] => bla > [amp;tablename] => blub > [amp;dbname] => DB > [c] => livesearch_syslog > [m] => searchsyslog > ) > > Why the first vars ar working and after that ist seems to be that some & > gets parsed to & > > Thank you for any hint on this! > > greetings mario > > > HTML_AJAX doesn't update _GET so it musts be something with your code or with your php setup. -josh
From: Mario Gzuk on 8 Apr 2008 05:48 Hi Josh! HTML_AJAX update the GET!!! so take a look into function HTML_AJAX_Server($serverUrl = false) The line: $this->ajax->serverUrl = $serverUrl . htmlentities($querystring); replace the GET stuff from & to &s; The [c] => livesearch_syslog and [m] => searchsyslog are not affected, so the url which is returned in the end is: live_search_logs.php?bli=bla&id=1&tablename=blub&dbname=DB&c=livesearch_syslog&m=searchsyslog Correct working is this line: $this->ajax->serverUrl = $serverUrl . $querystring; So what to do? Should I fill out a bug report? greetings mario Am Montag, den 07.04.2008, 09:47 -0700 schrieb Joshua Eichorn: > Mario Gzuk wrote: > > Hi, > > first thank you for this great work! I dont know if this is releated to > > the browser, to javascript or to HTML_AJAX, but I am sure here are the > > X-perts who know why this happens. > > > > If I want to use the HTML_AJAX_Server I bind in the script like this: > > > > <script type="text/javascript" > > src="modules/syslog_ng/live_search_logs.php?stub=livesearch_syslog&client=main,dispatcher,httpclient,request,json,loading,orderedqueue&bli=bla&tablename=blub&dbname=DB"></script> > > > > and I do an print_r($_GET) in live_search_logs.php the following array > > is displayed: > > Array > > ( > > [bli] => bla > > [amp;tablename] => blub > > [amp;dbname] => DB > > [c] => livesearch_syslog > > [m] => searchsyslog > > ) > > > > Why the first vars ar working and after that ist seems to be that some & > > gets parsed to & > > > > Thank you for any hint on this! > > > > greetings mario > > > > > > > HTML_AJAX doesn't update _GET so it musts be something with your code or > with your php setup. > -josh
From: Joshua Eichorn on 8 Apr 2008 12:29
File a bug report i'll see what i can do -josh Mario Gzuk wrote: > Hi Josh! > HTML_AJAX update the GET!!! > so take a look into function HTML_AJAX_Server($serverUrl = false) > The line: > $this->ajax->serverUrl = $serverUrl . htmlentities($querystring); > replace the GET stuff from & to &s; > The [c] => livesearch_syslog and [m] => searchsyslog are not affected, > so the url which is returned in the end is: > live_search_logs.php?bli=bla&id=1&tablename=blub&dbname=DB&c=livesearch_syslog&m=searchsyslog > > Correct working is this line: > $this->ajax->serverUrl = $serverUrl . $querystring; > > So what to do? Should I fill out a bug report? > > greetings mario > > > Am Montag, den 07.04.2008, 09:47 -0700 schrieb Joshua Eichorn: > >> Mario Gzuk wrote: >> >>> Hi, >>> first thank you for this great work! I dont know if this is releated to >>> the browser, to javascript or to HTML_AJAX, but I am sure here are the >>> X-perts who know why this happens. >>> >>> If I want to use the HTML_AJAX_Server I bind in the script like this: >>> >>> <script type="text/javascript" >>> src="modules/syslog_ng/live_search_logs.php?stub=livesearch_syslog&client=main,dispatcher,httpclient,request,json,loading,orderedqueue&bli=bla&tablename=blub&dbname=DB"></script> >>> >>> and I do an print_r($_GET) in live_search_logs.php the following array >>> is displayed: >>> Array >>> ( >>> [bli] => bla >>> [amp;tablename] => blub >>> [amp;dbname] => DB >>> [c] => livesearch_syslog >>> [m] => searchsyslog >>> ) >>> >>> Why the first vars ar working and after that ist seems to be that some & >>> gets parsed to & >>> >>> Thank you for any hint on this! >>> >>> greetings mario >>> >>> >>> >>> >> HTML_AJAX doesn't update _GET so it musts be something with your code or >> with your php setup. >> -josh >> > > > |