#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: | [email protected]… |
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 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 13 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.
You can set the post method via ajaxOptions: http://docs.jquery.com/UI/Tabs#options