[jQuery] jqModal starting programmatically with different urls
Hello all,
I was trying to use the jqModal script to load ajax pages dynamically
with different urls. To do this I created a preview function where the
url is dynamically created:
function showPreview(name) {
$("#preview").empty().html("Loading...");
$("#preview").jqm({ajax: 'view_'+ name + '.html',
trigger:false}).jqmShow();
}
However always the same view is returned. Can I reset the ajax
parameter somehow or do I need to add a different parameter for this
to work?
The example page is at http://www.competities.com/jquery/demo-test/test_jqmodal.html
where you will see that depending on which link you first click,
always the same view is returned. However I would like to return
view_1 for show 1 and view_2 for show 2 link.
Gr
Ronald