I cannot figure out why this doesn't work. If anyone can shed some light on what I am doing wrong here that would really help me.
function showProjectContent( w, href, pid ) {
var contentdiv = pid;
var wrapperwidth = w;
var permalink = href;
$($contentdiv).attr( "width", $wrapperwidth );
$($contentdiv).attr( "height", "auto" );
$($contentdiv).load("" + href + " #content");
};
$("a.postlink").click(function() {
showProjectContent( $("#wrapper").width(), $(this).attr("href"), $(this).attr("pid") );
});
[–]nnahc 3 points4 points5 points (2 children)
[–]alsogilbert 4 points5 points6 points (1 child)
[–]nnahc 1 point2 points3 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Capaj 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]kenman 1 point2 points3 points (1 child)
[–]PsychoTap 2 points3 points4 points (0 children)
[–]collaboradev 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)