Jqm is not a function
Posted
by kris
on Stack Overflow
See other posts from Stack Overflow
or by kris
Published on 2010-06-02T19:28:39Z
Indexed on
2010/06/02
19:44 UTC
Read the original article
Hit count: 350
Hi all,
I'm having some trouble with Jquery and JqModal, and I hope you are able to help, since I've been struggling for hours..
Having a single button element with an onclick action running my method "test" (shown below):
$('#picture_form').jqm({ajax: '/test.php'});
$('#picture_form').jqmShow();
This will load the ajax content of test.php into my div element picture_form, shown using JqModal as its supposed to! Though when I close this window, and re-clicks the button I'm getting the error:
$("#picture_form").jqm is not a function.
As a solution I've tried to use the JqModal trigger function, and this leaves me able to open and close the JqModal windows as many times as I want to. Sadly I can only call the 'trigger' using test environment, in my production code I have to open the JqModal window using a function..
Does anyone have a clue why this 'bug' appears when calling the opening when using a function?
Thanks in advance
© Stack Overflow or respective owner