Re: HTML_AJAX and strange &
| From: | Mario Gzuk | Date: | Tue, 08 Apr 2008 09:48:54 +0000 |
| Subject: | Re: HTML_AJAX and strange & | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28761@lists.php.net to get a copy of this message | ||
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