Hi,
I use the following function to load content into my panel
function doSearch(){
$.post('Search.php',
$("#searchForm").serialize(),
function(data){
$("#results").panel({content:data});
}
);
}It works very well.
But if I have the following line in reply from web server ('data') then I see that 'Search.php' is called twice. One via POST and one via GET.
<script>$("#results").panel('options').href='Search.php';</script>I need "$("#results").panel('options').href='Search.php';" just to update 'href' and use it later. But in case if I return it in reply it works as if I call 'refresh'.
Why it is happening? Why refresh for the panel is called?