[Developers] navigate from a freebase topic to an alternatevisualization

Jack Alves jack at metaweb.com
Fri Mar 23 16:37:02 UTC 2007


Thanks. Email broke up the url. It was a little painful to reassemble but it
works. I created a page with the link so it is easier to copy and paste as a
bookmark,

http://dev.mqlx.com/~jack/CineSpinnerLink.html

It looks like it is generating a good url for filmSpin. 

>From John Ford with a key in the url,

http://www.freebase.com/view?id=/wikipedia/en_id/280738

it generates

http://kidbombay.com/clients/freebase/filmSpin/index.html#/id=/wikipedia/en_
id/280738




>From Clockwork Orange with a guid in the url

http://www.freebase.com/view?id=%239202a8c04000641f8000000000593392

it generates,

http://kidbombay.com/clients/freebase/filmSpin/index.html#/id=%239202a8c0400
0641f8000000000593392


Ketan when do you think you will have the id url feature done in CineSpin?
This should be very cool.


-----Original Message-----
From: developers-bounces at freebase.com
[mailto:developers-bounces at freebase.com] On Behalf Of Dae Park
Sent: Thursday, March 22, 2007 6:03 PM
To: jack at metaweb.com
Cc: developers at freebase.com
Subject: Re: [Developers] navigate from a freebase topic to an
alternatevisualization

Try this:

<a href='javascript:(function(){q=window.location.search;if
(q&&q.length>0){q=q.substring(1);vars=q.split("&");for
(i=0,len=vars.length;i<len;i++){index=vars[i].indexOf("=");if(index! 
=-1){name=vars[i].substring(0,index);value=vars[i].substring(index 
+1);if(name=="id"&&value){window.location="http://kidbombay.com/
clients/freebase/filmSpin/index.html#/id="+value;}}}}})();'>go</a>




_______________________________________________
Developers mailing list
Developers at freebase.com
http://lists.freebase.com/mailman/listinfo/developers




More information about the Developers mailing list