noamway Posted June 30, 2006 Share Posted June 30, 2006 Why this code:-------------------------------------function autofitIframe(id){//copyright 2004 Eddie Traversa http://www.dhtmlnirvana.com/if (!window.opera && !document.mimeType && document.all && document.getElementById){parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";}else if(document.getElementById) {parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"}}------------------------------------Doesn't work to some of my users?Does he not support some browsers? Link to comment Share on other sites More sharing options...
Chocolate570 Posted June 30, 2006 Share Posted June 30, 2006 Could you ask your users what browsers they are using? I can see getElementById, which works in almost every browser. At least any of the ones that are pasts version .01 beta. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 30, 2006 Share Posted June 30, 2006 and get them to tell you there error message they are getting. Link to comment Share on other sites More sharing options...
Chocolate570 Posted June 30, 2006 Share Posted June 30, 2006 I doubt they'll be getting an error message. Probably whats happening is the script just isnt being activated in certain browsers due to the tricky if statement at the top. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now