SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Ajax.Updater for updating divs with other pages

    Hi!

    I've got a problem. I wanted to create a site that produces a simple js for other users, which they can insert into their sites. This js should use Ajax.Updater to connect to my site and get some particular information from my site.

    Unfortunately code

    Code:
    new Ajax.Updater('my_div', 'http://my_site_address/some/address', {asynchronous:true, evalScripts:true});
    won't work on any other server except mine . Is there anything I could do to get it working ? Maybe I just have to configure my server in any way ?

    Any help would be appreciated!

  2. #2
    SitePoint Enthusiast lucius910's Avatar
    Join Date
    Jul 2004
    Location
    Providence, RI
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aside from setting up web services with SOAP or XMLRPC, nope. XMLHttpRequest can't make a call to another domain (you'll see it in your javascript console if using firefox). See http://developer.apple.com/internet/...mlhttpreq.html

    XMLRPC is quick and easy to setup in PHP if thats what you're running. It would let you do what I think you re going for.

    See http://www.sitepoint.com/article/own...e-php-xml-rpc/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •