Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#4532 closed enhancement (worksforme)

Tabs should have the ability to load via AJAX via POST requests

Reported by: Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.7.1
Keywords: ui tabs ajax post Cc: [email protected]
Blocked by: Blocking:


I have a need to be able to send larger quantities of data at our server than IIS permits by default in the query string so I would like to be able to specify something like:

var URL = 'SomeWhere.cfc?Method=RenderPreview';
var Data = {};
Data.Message = tinyMCE.get('Message_'+IANATag).getContent();
Data.BlahBlah = $('#BlahBlah').val();
Data.TacoWaffle = $('#TacoWaffle').val();
$('#EmailTemplateEditor').tabs('add',URL,Data,'Preview ('+IANATag+')');

...Where the fourth argument is the optional label - optional fifth is index.

Change History (3)

comment:1 Changed 14 years ago by Jörn Zaefferer

Resolution: worksforme
Status: newclosed

You can set the post method via ajaxOptions:

comment:2 Changed 14 years ago by

Cool. I'm not around the computer with my code right now so I can't play around with it -- but, I don't see how I send data with the UI Tab's add method? Could someone please enlighten me with the syntax? Or do I need to change the ajaxOptions's 'data' key before every add? If so, how can I add multiple AJAX tabs with different datasets and have them lazy-load when a user clicks on them? Sounds like something I'd have to manage - which is fine... but, yeah.

comment:3 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.