Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
jQuery Bind Function to Offset() Change
Old 12-02-2010, 12:42 PM jQuery Bind Function to Offset() Change
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Would anyone have any ideas how to bind (or trigger) a function when a specific element's position (or offset) is changed?

For example, looking for a way to auto-adjust the height of one element when another element's height or position changes.

Thank you
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-06-2010, 02:25 PM Re: jQuery Bind Function to Offset() Change
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There isn't a reliable way of catching the end of a resize event as the onresize event triggers multiple times during the resize process, and of course there is no onEndResize event.

Here's an oldish discussion from Tek-Tips http://www.tek-tips.com/viewthread.cfm?qid=1013777

CliveC's solution worked at the time.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-06-2010, 06:56 PM Re: jQuery Bind Function to Offset() Change
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
I ended up using a setInterval() method that will run every 500ms until 30s is reached. The goal was to wait for Facebook and PowerReviews loading. I didn't know how to extend these scripts.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to jQuery Bind Function to Offset() Change
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11789 seconds with 12 queries