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