Bookme,
You really should go back to jQuery. Thousands of man hours have been
put into making that cross platform (its not an easy task.) This task
can be accomplished by jQuery without much strain. Go look through the
jQuery documentation. This is a case of you asking someone to give you
fish, you will do better in the end if you learn to fish. As for the
XML, that is perfectly valid XML and it should be interpreted properly
by an AJAX request. That said, there is probably a bug in your
Javascript that makes the data invalid or some kind of scope
resolution issue (JS is finicky.) There are a thousand and one
articles on how to do AJAX with jQuery on the internet. I'll even get
you started, the AJAX docs for jQuery can be found here
http://docs.jquery.com/Ajax.
Good Luck.
Sincerely,
~Andrew Allen
On Oct 17, 11:03 am, bookme <[EMAIL PROTECTED]> wrote:
> Thanks Xavieruni!!
>
> Here problem is not in AJAX logic because everything is working fine
> in webroot folder if I don't use concept of controller.
> I think problem is in cake.
> because Cake is not generating XML correctly .. I read some manual for
> cake XML also..but still in problem.
>
> Please help me.
> Thanks
>
> On Oct 17, 9:12 pm, [EMAIL PROTECTED] wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---