Thread: AJAX FTW!!!
View Single Post
Old 08-28-08, 09:56 AM   #12
t3hl33td4rg0n
Dethklok Returns!
 
t3hl33td4rg0n's Avatar
 
Join Date: Dec 2004
Location: Kent, OH
Posts: 2,142
Send a message via AIM to t3hl33td4rg0n Send a message via MSN to t3hl33td4rg0n Send a message via Yahoo to t3hl33td4rg0n
Default Re: AJAX FTW!!!

Heh, I was just thinking about this a bit earlier. Right now my AJAX handler only spits out some html (element.innerHTML), no DOM... Generated by PHP and thats about it.

I was playing around with the Google Maps API and realized a huge limitation in this method. Maybe you can help me with this....

The ultimate goal here is when a customers information is put in, a google map is created with an automatic route to that address from dispatch will be created. As of now, all it does is center on the map based on the zips lat/long coordinates, which is a plain text property coming from the fxhr.responseText...

Let me see how this could work.....

User input >> XMLHttpRequest (fxhr) >> PHP Script (Make JSON output in plain text and send to fxhr.responseText) >> js script, parse JSON into DOM >> output to targeted elements via JS.

Please tell me if I'm going in the right direction.
__________________


Intel QX9650 @ 3.83GHzXFX 780ieVGA GTX 560Ti8GB GSkill DDR800Creative Sound Blaster X-Fi Titanium PCI-ESeagate 1.5TB . 4x Samsung 2TB

Quote:
Originally Posted by MowTin View Post
....it's so clear how government makes things worse not better...
t3hl33td4rg0n is offline   Reply With Quote