I'm calling a resize function from a file loaded into an object tag:

onload=function(){
var sH = (document.body.scrollHeight)
this.parent.resize("#external",sH);
}


The resize function in the parent page:

function resize(objId,h){
     console.log(objId+","+h); // #external,1157
     $(objId).height(h);
     console.log($(objId).height());
}


Even though my variables are being passed, I'm getting an undefined error:

$ is not defined
[Break on this error] $(objId).height(h);


Syntax?


Adam

-- 
View this message in context: 
http://www.nabble.com/Pass-var-to-parent-function-syntax--tf3020753.html#a8389607
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to