Forum Moderators: open

Message Too Old, No Replies

xmlhttprequest <response> tag not supported

         

smagdy

8:36 pm on Aug 4, 2005 (gmt 0)

10+ Year Member



Hi, I am using simple "xmlhttprequest" so its working perfect in IE6 but no reponse in FF

so other than that... it says <response> <method> <result> tages are not support.. and it list all kind of browsers in Dreamweaver.

so is there alternative to these tags?

Thanks

<?php echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';?>
<response> -->not supported
<method> -->not supported
checkEmails</method>
<result> -->not supported
<?php
echo nameInUse($_GET['q'],$_GET['what'])?>
</result>
</response>

drhowarddrfine

10:15 pm on Aug 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure (as I'm walking out the door) but you are aware that FF and IE call the original request differently? IE uses an ActiveX thingy while FF initializes slightly different.

smagdy

6:10 am on Aug 5, 2005 (gmt 0)

10+ Year Member



Yes I know and its done the right way and it even has comment that this part for IE and the other is for FF as its copy n pasted from the net.. n workin perfect with IE... so what could it be.

and what about the unsupported tags

dcrombie

1:41 pm on Aug 5, 2005 (gmt 0)



I'm not sure what the problem is - but it's not the tagnames. What does the generated XML look like (ie. once the PHP is executed)?

Edit: are you echo'ing "Content-Type: text/xml"?

smagdy

4:07 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



ok i played around and i found that there is almost no error in the XML stuff.. but its somethin in the javascript here..

user write email and then submit:

onClick="checkEmails(getalert.value,'',<? echo "$results->id";?>)"

then the xml work and display "thanks bla bla"

works fine in IE

but in firefox it doesnt respond in anyway from the onClick

and when i add quotation like this for getalert.value:

onClick="checkEmails('getalert.value','',<? echo "$results->id";?>)"

it just send the "getalert.value" as the input instead of the real value...

so whats the right syntax for javascript to send the real value to IE & FF

Thanks alot

[edited by: tedster at 4:59 pm (utc) on Aug. 5, 2005]
[edit reason] remove graphic smiles [/edit]