fallenpegasus: amazon (Default)
[personal profile] fallenpegasus
Dopplr can generate a "blog badge" of my Dopplr location and future trips, like so:

I want a little bit of JS that can reach into either Dopplr or Fireeagle, and give back just the name of the city I am in, so I can put in my home page something like "today, Mark is in JS_SCRIPT_REFERENCE_HERE", and it will render as something like "today, Mark is in Seattle".

Am I doomed to write it myself, or has someone else done it?

Date: 2008-10-02 12:20 am (UTC)
From: [identity profile] airlinepilot.livejournal.com
What are Dopplr and Fireeagle?

Date: 2008-10-02 12:21 am (UTC)
From: [identity profile] awfief.livejournal.com
they don't have RSS feeds that you can gank the most recent entry from and put as a block on your site?

Date: 2008-10-02 02:45 pm (UTC)
From: [identity profile] tcepsa.livejournal.com
Isn't there something about cross-site scripting restrictions in most major browsers that prevents JS code from one site from making xmlHttpRequest calls to other sites?

(Will look into it and get back to you ^_^)

Date: 2008-10-02 03:03 pm (UTC)
From: [identity profile] tcepsa.livejournal.com
Hmm... the details are still fuzzy, but most of what I'm seeing looks like you aren't allowed to make that cross-site call for HTML data. There have been a few things that talk about being able to retrieve JSON-formatted data from a remote site, though, so if dopplr or fireeagle have a web API that supports that it could work. Otherwise I think your only alternative for getting something like this on your homepage is to write some JS that will request the data from a server in your homepage's domain (this assumes you have rights to put server-side scripts somewhere in the domain hosting your homepage), that server will run some kind of script to pull the page from the dopplr or fireeagle server, and then write it out as the response to the browser request.

(This is theoretical in the sense that I've never actually done it, but it's something that's relevant to another project that I am working on so if you want I can look into it more ^_^)


fallenpegasus: amazon (Default)
Mark Atwood

October 2017

1 234567
1516 1718192021

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 21st, 2017 08:41 am
Powered by Dreamwidth Studios