www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] JQuery Kicking Off A Function

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    260

    resolved [RESOLVED] JQuery Kicking Off A Function

    I'm new to JQuery, but I feel I can grasp it pretty quick with the help of a few boosters. I'm using this script that creates a dialog box on my site for my form field. Now I want to load some value into the form after the form loads in the dialog box. I feel that I have the correct code to do so, but I'm having issues kicking off the function.

    Code:
    jQuery(function ($) {
    var contact = {
        message: null,
        init: function () {
                 //code that loads the form field in the dialog box
                onOpen: contact.foo,
                onClose: contact.fooagain
        },
    
        foo:function() {
            contact.readyFields; //this is where I'm calling my function
        },
    
        readyFields:function() {
           
            //code that loads additional form default values 
    
        }
    
    contact.init;
    
    });
    With the part highlighted in bold, Firefox reads that "readyFields" is indeed a function but for some reason it doesn't initiate. Any suggestions?

  2. #2
    Join Date
    Sep 2008
    Posts
    260
    Nevermind. Solved it. It was suppose to be content.readyFields()

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles