By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,510 Members | 1,821 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,510 IT Pros & Developers. It's quick & easy.

using jquery-ui try to call the content from another html file by using ajaxjquery in

P: 3
using jquery-ui try to call the content from another html file by using ajaxjquery.. its wont work in local path.?

Expand|Select|Wrap|Line Numbers
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery UI Tabs - Content via Ajax</title>
  6. <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  7. <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  8. <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  9. <script type="text/javascript">
  10. $(function() {$( "#tabs" ).tabs({beforeLoad: function( event, ui ) {
  11. ui.jqXHR.error(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." );});}});});
  12. </script>
  13. </head>
  14. <body>
  15. <div id="tabs">
  16. <ul>
  17. <li><a href="#tabs-1">Preloaded</a></li>
  18. <li><a href="index.html">Tab 1</a></li>
  19. <li><a href="index2.html">Tab 2</a></li>
  20. <li><a href="index4.html">Tab 3 (slow)</a></li>
  21. <li><a href="index2.html">Tab 4 (broken)</a></li>
  22. </ul>
  23. <div id="tabs-1">
  24. <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. C Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
  25. </div>
  26. </div>
  27. </body>
  28. </html>
  29.  
Jan 21 '14 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
what’s the question?
Jan 21 '14 #2

P: 3
using jquery-ui try to call the content from another html file by using ajaxjquery.. its wont work in local path.?
Jan 21 '14 #3

P: 3
side navigator integrate with dynamic tabs in jquery ui - content via ajax

onclick external html file should load into that tab.??
Attached Images
File Type: jpg 1.jpg (8.5 KB, 109 views)
Jan 21 '14 #4

Dormilich
Expert Mod 5K+
P: 8,639
sounds like a matter of SOP.

although I doubt jQueryUI is much a help in this regard.
Jan 21 '14 #5

Post your reply

Sign in to post your reply or Sign up for a free account.