Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#4532 closed enhancement (worksforme)

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

Reported by: Olson.dev Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.7.1
Keywords: ui tabs ajax post Cc: Olson.dev@…
Blocked by: Blocking:

Description

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 10 years ago by Jörn Zaefferer

Resolution: worksforme
Status: newclosed

You can set the post method via ajaxOptions: http://docs.jquery.com/UI/Tabs#options

comment:2 Changed 10 years ago by Olson.dev

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 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.