How past parameters with ajaxStetings (ajaxOption depreciated)
Hi,
Excuse my bad english.
ajaxOption depreciated, how can I pass parameters to recover in php
Javascript :
- <script type="text/javascript">
- $(function() {
- $("#tabs").tabs(
- {
- beforeLoad: function(event, ui)
- {
- ui.ajaxSettings.type = 'POST';
- ui.ajaxSettings.username = 'foo';
- ui.jqXHR.fail(function()
- {
- ui.panel.html("Couldn't load this tab. We'll try to fix this as soon as possible. " + "If this wouldn't be a demo." );
- }
- );
- }
- });
- });
- </script>
PHP file :
- <?php
- $_POST['username'];
- ?>
Please help me, thanks