TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-13-2008, 05:48 AM   #1 (permalink)
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default jQuery and firefox checkboxes??

Hey all,

First i would like to say that I have been playing with jQuery and I am throughout impressed. Lotsa fun stuff with it.

For those that have used it, I am having some trouble with firefox and its annoying ability to remember the 'state' of what was selected, checked, inputed, entered etc on the form prior to a page refresh.

I have some events that fire off based on a checkbox selection (opens a few divs). However, if the user hits refresh in firefox, it remembers it being checked, and thus on the next page load will have it checked, but alas no open divs.

I tried binding the function to the load and ready event handlers but no go on that one. I guess the question is, how do I execute my event handlers on page load as well? I am out of ideas on this one. I thought load would take care of it, but no cigar on that one.

Thoughts, ideas, or suggestions?
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote
Old 08-27-2008, 05:54 PM   #2 (permalink)
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

Code:
$(function(){
    $('input:checked').each(function(){
        // trigger the event for the relevant div, generic example:
        $('div').trigger('click');
    });
});
__________________
Pro. Geek
http://www.mikeholloway.co.uk
flyingbuddha is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


All times are GMT. The time now is 07:03 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design