Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Something like AJAX (http://www.programmingforums.org/showthread.php?t=10800)

Writlaus Jul 22nd, 2006 4:05 AM

Something like AJAX
 
I know that AJAX can request one page from another page using javascript, but that only allows you to get pages from the same domain.

Is there something that is like AJAX, but lets you request pages from different domains?

Arevos Jul 22nd, 2006 4:42 AM

Javascript is limited to the domain it was called from for security purposes.

However, it's perfectly possible to send XML through AJAX to the current domain, and have a server-side proxy to relay that information to a third party (assuming said party will accept information from a different domain).

You also might be able to do something with frames, depending on what you want to do.

Writlaus Dec 19th, 2006 2:07 AM

Well basically, what I'm going to want to do is just have one domain get a random row from a MySQL table from another domain. I know it's not nearly that simple--I want to know what steps I'd have to take to make that connection.

Arevos Dec 19th, 2006 2:23 AM

Do you have access to PHP or another server-side language on the server that is making the AJAX request? In which case, you could create a proxy to relay the AJAX request to the second server.

Writlaus Dec 20th, 2006 2:44 AM

I was trying to get a google gadget to work, and I basically made it way more complicated than it needed to be. I have what I needed now. Heh. Sorry about that, and thanks for the help anyway.


All times are GMT -5. The time now is 8:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC