Results 1 to 2 of 2

Thread: Whats wrong with this jquery?

  1. #1

    Question Whats wrong with this jquery?

    I need to use the jquery cookie plug in to store a cookie so when they next visit the dialog doesnt appear.

    It isnt working though and just keeps coming up!

    HELP!

    HTML Code:
    <script type="text/javascript">
            
            
    
            $(function() {
                    $("#dialog").dialog({
                            bgiframe: true,
                            modal: true,
                            resizable: false,
                            autoOpen: true,
                            width:200,
                            buttons: {
                                    Ok: function() {
                                            $(this).dialog('close');
                                            $.cookie('doneWin', 'closed' { expires: 2 });
                                    }
                            }
                    });
            });
            
            
            </script>
        
    <script type="text/javascript">
    var doneWin = $.cookie('doneWin');
            
             if (doneWin == 'closed') {
           $("#dialog").dialog('close');
               
     };
    });
    </script>
    Regards,
    Stefan
    Last edited by stefpretty; 01 Nov 2009 at 10:12 AM. Reason: minor edit in code

  2. #2
    Pleasse anyone? running on a deadline!

Similar Threads

  1. jQuery functions not working in IE
    By ojdude in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 29 Aug 2009, 10:48 AM
  2. JQuery Slider + jQuery Popup = Problems
    By zibizibi in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 08 Aug 2009, 08:56 AM
  3. If...Else syntax might be wrong?
    By mindfullsilence in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 14 May 2009, 03:05 AM
  4. Firefox Firebug and Jquery
    By linderox in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 09 Mar 2009, 06:12 AM
  5. jQuery $(document).ready too slow in IE?
    By gplatt2000 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 17 Jun 2008, 07:49 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •