parse javascript data into riak

francisco treacy francisco.treacy at gmail.com
Mon Jul 5 16:38:23 EDT 2010


I assume you're using the browser-version of riak-js.

If you're able to get that Javascript snippet with jQuery once the DOM
has loaded, it would just be a matter of extracting / obtaining data
from the pageTracker object and use riak-js to store that in Riak.

Francisco


2010/7/5 Norman Khine <norman at khine.net>:
> hello,
> i am trying to figure out a way to extract this data
> http://paste.lisp.org/display/112163 and put it into raik using the
> riak-js library.
>
> so on the same page can i have another <javascript> to pull the values
> out and then load them into riak? or would i have to first parse the
> block and then load the values?
> what will be the most efficient way to do this?
>
> thanks
> norman
>
> --
> ˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
> ǝq s,ʇǝן ʇǝʎ
> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
> chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list