Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 22nd, 2006, 4:05 AM   #1
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
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?
Writlaus is offline   Reply With Quote
Old Jul 22nd, 2006, 4:42 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Dec 19th, 2006, 2:07 AM   #3
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
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.
Writlaus is offline   Reply With Quote
Old Dec 19th, 2006, 2:23 AM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Dec 20th, 2006, 2:44 AM   #5
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
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.
Writlaus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript and sql? Writlaus JavaScript and Client-Side Browser Scripting 10 Mar 18th, 2006 3:32 AM
call of a beginner web_master HTML / XHTML / CSS 34 Dec 6th, 2005 12:08 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:01 PM.

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