Results 1 to 3 of 3

Thread: content tab

  1. #1
    Join Date
    Sep 2010
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default content tab

    1) Script Title: content tab

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem:

    In the divs "country1" and "country2" of tab content, I included a select control. Depending on selection, some information is loaded.
    Everything works fine onload of page.
    My problem is that if i go to country2 tab and select some value and then I come back to country1, in div country1 the default information does not load.

    To see the script in action, please visit
    http://www.iisconsult.ro/indecsi.asp

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'd try adding the highlighted as shown:

    Code:
     . . .
    <Script>
    function HandleExtChange() {
           location.href="indecsi.asp?index=" + document.extern.extindexes.value;
    }
    </script>
    
    <script type="text/javascript">
    jQuery(function($){
    	$('a[rel=country1]').click(function(){
    		setTimeout(HandleChange, 100);
    	});
    	$('a[rel=country2]').click(function(){
    		setTimeout(HandleExtChange, 100);
    	});
    });
    </script>
    
    
    
    
    
    <ul id="countrytabs" class="sh . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    radujit (09-26-2010)

  4. #3
    Join Date
    Sep 2010
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default That works great!!

    Thank you! Your solution is great! Works wonders!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •