For a pure javascript/ajax template, go here http://ajaxphp.packtpub.com/ and download the sample chapter http://ajaxphp.packtpub.com/1825_01_Final.pdf
This should give you a basic working xmlhttprequest that should be easy to modify to do what you need. On Oct 17, 11:57 am, 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 !! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---