View Single Post
  #5 (permalink)  
Old 11-03-2007, 10:37 PM
fahlyn's Avatar   
fahlyn fahlyn is offline
Learning Programmer
 
Join Date: Nov 2007
Age: 25
Posts: 35
Rep Power: 4
fahlyn is on a distinguished road
Send a message via ICQ to fahlyn Send a message via AIM to fahlyn Send a message via MSN to fahlyn Send a message via Yahoo to fahlyn
Default

oubless is correct. Most browsers do not allow you to access different domains using XHR for security purposes. Even if you could, I'm fairly certain that the folks at Google wouldn't be very happy about what you're trying to do. If you are interested in having a Google search on your website check this link out.

Also, you should consider using prototype.js which I personally highly recommend or another JavaScript library. Prototype and many other libraries provide a much more programmer friendly interface for crating AJAX requests...its much easier and cleaner than using XHR yourself.

Happy Coding.
-Fahlyn
__________________
Visit My Google Group Here: Web Development Innovation
Reply With Quote

Sponsored Links