I found it by myself, the solution can help others, but if someone has
another approach lets share.
I did a function triggered by the link
<a href="#" onClick="moveTo(<?=row['id']?>)">Edit</a>
function moveTo(cid){
var $tabs = $("#tabs").tabs();
$tabs.tabs('url',2,'snippets/edit.php?id='+cid);
$tabs.tabs('select',2);
}
At the top I place this function to open links in the current tab
instead of leaving the page
$(function(){
$('#tabs').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}
});
})
On 26 ago, 00:31, alberto marlboro <[email protected]> wrote:
> I didnt find nothign about searching all day long.
>
> Im trying to open a tab with parameters, like this
>
> ?id=1
>
> but from a list, so im able to choose what record to edit
>
> I tried :
>
> Cookies
>
> No lucky, i cannot reassign a new cookie for each clicked record,
> because isnt not possible to refresh tabs to set/get new cookie.
>
> Ajax
>
> I send the parameter but when submit the form the remote page opens it
> self, leaving the tab.
>
> Any advice is greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---