![]() |
2010-06-03
, 23:20
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#2
|
![]() |
2010-06-04
, 00:18
|
Posts: 23 |
Thanked: 15 times |
Joined on Mar 2010
@ Moscow
|
#3
|
![]() |
2010-06-04
, 00:22
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#4
|
The Following User Says Thank You to Laughing Man For This Useful Post: | ||
![]() |
2010-06-04
, 00:39
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#5
|
![]() |
2010-06-04
, 08:02
|
Posts: 23 |
Thanked: 15 times |
Joined on Mar 2010
@ Moscow
|
#6
|
![]() |
2010-06-05
, 14:37
|
Posts: 23 |
Thanked: 15 times |
Joined on Mar 2010
@ Moscow
|
#7
|
javascript: var uname = 'myUname'; var apikey = 'blahblahblah'; var snipnick = 'c2dmwannabe'; var snipPasscode = '123'; snipnick = encodeURIComponent(snipnick ); var httpReq; if (typeof XMLHttpRequest != "undefined") { httpReq = new XMLHttpRequest(); } else{ try { httpReq = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpReq = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { throw new Error("This browser does not support XMLHttpRequest."); } } } var posttext; posttext = ''; posttext += 'sniplink=' + encodeURIComponent(document.URL) + '&'; posttext += 'snipnick='+ snipnick +'&'; posttext += 'snipuser='+ uname +'&'; posttext += 'snipapi='+ apikey +'&'; posttext += 'sniptitle=C2DMwannabe&'; posttext += 'snipowner=&'; posttext += 'snipformat=simple&'; posttext += 'snipaction=UPDATE&'; posttext += 'snipcurrentnick='+ snipnick +'&'; posttext += 'snipresetcount=&'; posttext += 'snippk='+ snipPasscode; httpReq.open("POST", "http://snipurl.com/site/getsnip", false); httpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); httpReq.send( posttext ); httpReq = null;
![]() |
2010-06-05
, 16:21
|
Posts: 11 |
Thanked: 1 time |
Joined on Oct 2009
|
#8
|
![]() |
2010-06-05
, 16:42
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#9
|
![]() |
2010-06-08
, 09:20
|
Posts: 23 |
Thanked: 15 times |
Joined on Mar 2010
@ Moscow
|
#10
|
The bookmark link is not updating the snipurl for me. Do I need to enable the api access in my settings or anything?
It would be a major usecase for me if I could send page links between n900 and my PC. n900->PC is actually as important as PC->n900 for me.
I understand there is nothing like C2DM API in Maemo, but I guess something like this is quite easy to implement:
1) Click a button on your PC browser ("send to device") - gets current page's url and stores it somewhere on the web
2) Click a button on n900/launch an app/type something in console to retrieve the stored link and open it
3) Web browser on N900 opens the page you sent from PC
So the hardest thing I see here is to find something that can store a web link and can be easily accessed.
You can always email yourself this link or send it to some fake contact on facebook, but these solutions are not very usable. The better option I see is to find something like tinyurl that allows you to change redirect address of your personal link from a browser's toolbar and just have a bookmark on n900, however, don't know if such service actually exists.
Any suggestions?
EDIT: here's the solution I implemented myself
Last edited by little_beat; 2010-06-05 at 14:40. Reason: implemented!