![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 4
![]() |
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? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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.
|
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 4
![]() |
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| javascript and sql? | Writlaus | JavaScript and Client-Side Browser Scripting | 10 | Mar 18th, 2006 4:32 AM |
| call of a beginner | web_master | HTML / XHTML / CSS | 34 | Dec 6th, 2005 1:08 AM |