Re: [PHP] php and Ajax problem

2007-05-29 Thread Arpad Ray
Richard Kurth wrote: if(response.indexOf('|' != -1)) { Spot the misplaced bracket. if($_GET['takeaction']==delete){ $uid=$_GET['uid']; echo $uid; This is wide open to XSS attacks, you need to be just as careful with scripts intended to be accessed via javascript as you do with

[PHP] php and Ajax problem

2007-05-28 Thread Richard Kurth
I can not figure out way this is not working can somebody help? html head titleUntitled/title script language=JavaScript function createRequestObject() { var req; if(window.XMLHttpRequest){ // Firefox, Safari, Opera... req = new XMLHttpRequest(); } else

Re: [PHP] php and Ajax problem

2007-05-28 Thread Stut
Not even slightly a PHP question, but since it's a bank holiday I seem to temporarily be in a more helpful mood. Richard Kurth wrote: ?php $event['deleteevent']='a href=javascript:sendRequest(delete,32423434234234234324)Delete this event/a'; echo $event['deleteevent']; ? I'm thinking

Re: [PHP] php and Ajax problem

2007-05-28 Thread Tijnema
On 5/28/07, Richard Kurth [EMAIL PROTECTED] wrote: I can not figure out way this is not working can somebody help? html head titleUntitled/title script language=JavaScript function createRequestObject() { var req; if(window.XMLHttpRequest){ // Firefox, Safari, Opera... req =

Re: [PHP] php and Ajax problem

2007-05-28 Thread Jim Lucas
Richard Kurth wrote: I can not figure out way this is not working can somebody help? html head titleUntitled/title script language=JavaScript function createRequestObject() { var req; if(window.XMLHttpRequest){ // Firefox, Safari, Opera... req = new XMLHttpRequest();