Team:UNITN-Trento/Templates/Notebook
From 2013.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
//Get url | //Get url | ||
href = $(this).attr('href'); | href = $(this).attr('href'); | ||
- | |||
//Get id | //Get id | ||
var id = href.split("/"); | var id = href.split("/"); | ||
id = id[id.length - 1]; | id = id[id.length - 1]; | ||
- | |||
//Save highest id (last post) | //Save highest id (last post) | ||
Line 31: | Line 29: | ||
//Make AJAX request | //Make AJAX request | ||
- | + | href += "?action=raw&ctype=text/javascript" | |
$.get( href , function(data) { | $.get( href , function(data) { | ||
alert(data); | alert(data); |
Revision as of 07:32, 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"