Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6108977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:21:13+00:00 2026-05-23T14:21:13+00:00

I have nav tabs on left side and i am loading content on right

  • 0

I have nav tabs on left side and i am loading content on right side.
I have attched the click event by using live but how can attach these type of functions

$('#form').submit(function() { 
        $(this).ajaxSubmit(options); 
          return false; 
    }); 

$("#dialog-confirm").dialog({
                             resizable: true,
                             autoOpen: false,
                             height:427,
                             width:650,
                             modal: true,
                             buttons: { "Ok": function() { $(this).dialog("close"); },
                                        "Cancel": function() { $(this).dialog("close"); } },
                              });

also do i need to attach ajaxoptions as well

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:21:14+00:00Added an answer on May 23, 2026 at 2:21 pm

    When you load new content, you must re-apply things like “.dialog()” from your own code. Generally, you’d do that in the “success” handler from the ajax mechanism you used to load the content.

    What that means is that it’s a really good idea to organize your page “widget” setup code so that it can be invoked to operate on an arbitrary portion of the page. At page initialization time, you’ll run it against the <body>, but after a dynamic content load you’d run it against the container element that you’ve updated.

    edit — more detail: exactly how you go about doing this is up to you, and it depends on the kinds of things you do in your application. I wrote a jQuery plugin to handle the problem, but that might be overkill for a lot of purposes.

    The general idea is that you’d have an initialization function:

    function initializeFeatures(startingPoint) {
    

    Inside the function, you’d do things like initialize dialogs, and you’d base the code that does the work off the “startingPoint” parameter. In other words, when the code has to “find” page elements to set up, it should always start from there:

        $(startingPoint).find('.dialog-container').dialog({
          resizable: true,
          autoOpen: false,
          // ...
        });
    

    Then, in your “success” handler after you’ve loaded content, you can just call your function again:

        $('#dynamic').load('/your/url', function() {
          initializeFeatures(this);
        });
    

    Again, it completely depends on the exact details of your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my jQuery UI Tabs working right now but need help implementing the
I am using Jquery UI tabs, and have it set to toggle the opacity
i'm trying to have 2 tabs in the same page, but the first works
I have some jQuery tabs set up on the right of the page, however
I have this jquery: $('.tbl-link').click(function(){ $('.tbl-content').animate({ opacity: 'show', //height: '+=300px', marginTop: '330px' }, 1200).css({
I have the tabs code working but on page load all the tabs are
In the page ?p=u I have the following tabs: <div id='tabs' class='ui-tabs'> <ul class='ui-tabs-nav'>
I am using JQuery tabs in my page, and have successfully managed to place
I have a nav bar with children unordered lists nested under the main navbar
I have the following Nav: <li id=categories> <ul> <li class=cat-item cat-item-8 current-cat><a href=#>Link</a> <ul>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.