You may want to post this in the AJAX groups also!
On 10/17/2008, bookme <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am using jquery for ajax in my application.. and was getting very
> good results using it.
>
> But when I was working on a registration page then this jquery is not
> providing me seamless effect.
>
> There is two select box - drop down
> 1 State
> 2 City
> when ever a user select a state correspondingly city comes in city
> drop down. jquery - ajax is working fine but it's taking time to
> displaying results.
>
> So I have to use simple ajax approach
>
> 1 Create a HTTP object : httpObject
>
> 2 open http connection
>
> httpObject.open("GET", url, true);
> httpObject.send(null);
> httpObject.onreadystatechange = setOutput;
>
> 3 getting response on httpObject.readyState == 4
>
> till now working fine but in next line creating problem
>
> top = httpObject.responseXML.getElementsByTagName("cities")[0];
>
> JavaScript Error : httpObject.responseXML has no properties ??
>
> I tested it using httpObject.responseText it's working fine.
> Also my controller is generating xml ..xml is showing in view source
> but i think it's not correct because View Genearted Source not showing
> xml instead of it showing HTML
>
> View Source is
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <cities>
> <cityname><id>0</id><name>100</name></cityname>
> </cities>
>
> Is I am going on write track?
>
> How should I generate xml for this ajax request ..I have alraedy added
> Xml, RequestHandler everything but can not solve problem ?
>
>
> Thanks !!
>
> >
>
--
Xavier A. Mathews
Student/Developer/Web-Master
GG Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---