jquery in iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mme807
    New Member
    • Jun 2010
    • 8

    jquery in iframe

    hi all.
    i load a jquery file in i frame and now i need to call a jquery function from outside .my code is
    Code:
     window.frames['wdcalendar'].quikd();
    the quikd() is my function tath use in jquery . but dont work .
    please help me !!
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    what exactly do you mean with 'dont work'? is the method not called at all or doesn't it work in the context of your iframe? does any error occur in the error-console or firefox's firebug-extension?

    Comment

    • mme807
      New Member
      • Jun 2010
      • 8

      #3
      hi gits
      this method (quikd) work in ifram correct but when i call it from outside iframe dont work and my error is " window.frames['wdcalendar'].quikd() isnt a function "

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        then either the window reference is not correct or the function is not defined in that window's context - some code to see would help in locating the error.

        Comment

        Working...