Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 16, 2012 07:29 PM by breath2k
Jun 15, 2012 04:44 PM|LINK
things I am trying to resize?
The error says: "Microsoft JScript runtime error: Object required"
Jun 16, 2012 12:44 PM|LINK
I recommend you download jQuery and then you can simply apply the following:
// Use if your object is not an asp control
$("#yourobjectid").height(200); // put value you need
$("#yourobjectid").width(200); // put value you need
// use if your object is an asp control
$(document.getElementById('<%=aspControlName.ClientID%>').height(200); // put value you need
$(document.getElementById('<%=aspControlName.ClientID%>').width(200); // put value you need
Jun 16, 2012 06:42 PM|LINK
work with the elements on the page? The object references are coming up null, with that being said and the fact that I am referencing them using the same method as you showed above, your way would result in the same issue.
Jun 16, 2012 07:23 PM|LINK
Quick note: are the objects server controls i.e. <asp:Textbox etc? If so you need to refer to them like:
Jun 16, 2012 07:29 PM|LINK
var aspcontrol = "<%=txtControlName.ClientID%>";
And then use the above var instead of the control name in the seperate js file:
// i.e. change: