get a function of external file

Posted by user295189 on Stack Overflow See other posts from Stack Overflow or by user295189
Published on 2010-04-15T22:33:23Z Indexed on 2010/04/15 22:43 UTC
Read the original article Hit count: 331

I am using jQuery and my js file thats calling a jquery function resides in totally different directory than jQuery is in. I need to call this function reloadPage like this from js file

reloadPage({param1:'First Parameter', param2:ID});

but it gives me an error

Line: 341
Error: Object doesn't support this property or method

Line 341 is reloadPage({param1:'First Parameter', param2:ID});. What can I do to run this function from outside the directory?

I tried

parent.reloadPage({param1:'First Parameter', param2:ID});

But that didnt work either.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery