Hi Whatever
OK. The javascript code I showed is a bookmarklet...it sits under a button in my favorites toolbar and when clicked that code is executed. The code itself simply reads in the basic information about the page I am on.... name, url, domain and picks up if I have selected any text from the page ( as a quote)....... and the code then opens a new window and in that window opens a TW that sits on my server...passing to the TW the information......
The TW on my server is a very basic, and by default opens to a simple HTML form...... which gets filled with the above page information, lets me add other bits of information (mainly tagging and extra comments) and then when I hit the "done" button in the form, it saves the information, making a new tiddler ..... with UploadTiddlerPlugin (BidiXTW) set to automatally update the TW to my server.......
So..... to bookmark a page I like...I simly hit the toolbar button, that opens a window and then I hit "done".... the page information is in the on-line TW. Its a crude replacement for TiddlySnips...except it works with ease to store the bookmarks on-line.
AND, my intention now is to give this bookmarklet to my students....so that they can bookmark their research and the references get stored in a on-line (available to all) TW. Obviously that TW could soon get rather large and very slow every time you want to make a bookmark........soooo, in order to study the references being generated, my students DONT access this TW..... they access another one....... which on opening reads the references from the bookmarklet TW.....so the References TW gets big with references (they anticipate that this may delay a little to open)....and the bookmarklet TW keeps getting cleaned up (at the moment a manual process) and kept small and light.
Actually the whole set up is very simple and uses no fancy coding, EXCEPT for a little gem of inspiration from Eric...... the HTML form that opens in the new page ends with the code -
......
store.saveTiddler(title,title,text,who,when,etiquetas,fields);
autoSaveChanges();
'></form></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.pub.value=config.options.txtDominio;
form.citado.value=config.options.txtCitado;
</script>
that last bit of script is the magic!!!! - it takes the information passed by the bookmarklet and puts it into the HTML form above !! For me that's the Magic that makes this idea work!!!!
Thanks Eric!!!!
Thanks All
Skye