Hi,

I got some problems using jqModal and ajax. I found some posts about caching
issues with jqModal, but those solutions didn't help.

==========================================================
page1.php
----------------------------------------

...
<ul>
        <li id="item_1">Item 1</li>
        <li id="item_2">Item 2</li>
        <li id="item_3">Item 3</li>
        <li id="item_4">Item 4</li>             
</ul>

...

$(document).ready( function() {

        $("li").dblclick( function () {
                theId =  this.id;                               
                theId = theId.substring(theId.indexOf("_")+1);
                                
                $a = 'page2.php?id=' + theId;
                alert($a);
                $("#dialog").jqm({      
                        ajax: $a                                        
                }).jqmShow();
        });
});


page2.php
----------------------------------------

You have requested id '<?=$_REQUEST['id']?>'

==========================================================

If i load page1.php and doubleclick on an item, the first time it displays
the correct id. But the next couple of times (until page refresh) it still
shows the same id as the first time. Tough the alert in page1 gives the
correct url, the page2.php request['id'] doesn't change.

Hope anyone can clarify what i have done wrong or have forgotten.

Thanks,
Kenny
-- 
View this message in context: 
http://www.nabble.com/Caching-issues-jqModal---tp16310251s27240p16310251.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to