Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollbar Events

Status
Not open for further replies.

jammer1221

Programmer
Jul 30, 2003
352
US
Hey All,

I have an iframe that holds a few "widgets". These widgets are draggable and if the user drags them outside the dimensions of the iframe, the iframe, of course, creates scroll bars. Is there anyway to detect when the iframe creates the scroll bars without constantly querying the size of the document?

While writing this I realized that I could check the size of the document on the end of the drag. I will give that a shot but am still interested in any ideas that you all might have.

Thanks,
Matt
 
just a guess, by try adding this css to the main page that holds the iframe:
Code:
<style type="text/css">

iframe {
   overflow:auto;
}

</style>

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
gah.... typed the wrong value:
Code:
<style type="text/css">

iframe {
   overflow:[s]auto[/s] hidden;
}

</style>

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top