Team:UNITN-Trento/Templates/Notebook
From 2013.igem.org
(Difference between revisions)
Line 17: | Line 17: | ||
//Get url | //Get url | ||
- | href = $(this).attr('href'); | + | var href = $(this).attr('href'); |
//Get id | //Get id | ||
- | id = href.split("/"); | + | var id = href.split("/"); |
id = id[id.length - 1]; | id = id[id.length - 1]; | ||
alert(id); | alert(id); | ||
Line 30: | Line 30: | ||
//Add 'add post' button | //Add 'add post' button | ||
- | addpost_url = href.split("/"); | + | var addpost_url = href.split("/"); |
alert(addpost_url); | alert(addpost_url); | ||
addpost_url.pop(); | addpost_url.pop(); | ||
alert(addpost_url); | alert(addpost_url); | ||
- | addpost = addpost_url.join("/"); | + | addpost = addpost_url[0].join("/"); |
alert(addpost_url); | alert(addpost_url); | ||
addpost_url += "?action=raw&ctype=text/javascript"; | addpost_url += "?action=raw&ctype=text/javascript"; |
Revision as of 07:11, 19 August 2013
[http://2013.igem.org/wiki/index.php?title=Team:UNITN-Trento/Templates/Notebook&action=edit Edit this page] | Main Page
Retrieved from "http://2013.igem.org/Team:UNITN-Trento/Templates/Notebook"