Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Ajaxed tabs

  1. #21
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Let me try this again. I'm new at this and not a programmer. I'm trying, without success, to use the following script on one of my tabs:

    http://www.interactionarchitect.com/articles/toggle.htm

    I've used it successfully with another ajax script:

    http://www.dynamicdrive.com/dynamici...axincludes.htm

    Where am I going wrong?

  2. #22
    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

    If a script that you are using in an AJAX tab needs to normally run onload, it cannot simply be loaded with loadobjs() and/or the rev attribute. You need to create a polling function and run that poll at the time that the tab is loaded, as described above. To be more specific, I would have to see your page.
    - John
    ________________________

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

  3. #23
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    .js link doesn't work in FF and Google Chrome (((

    This is really amazing script but I faced some problem in FF and Google chrome, which I can't decide. So, please, if there is someone more experienced in it and smarter than me, help me...

    So, I have this site where I wan't to include two different php files. They both have live-search fields, but in different languages: in English and in Georgian. So, here is what I'm doing:

    Code:
    <button id="mybutton" onclick="javascript:ajaxpage('english_autosuggest.php', 'search7'); loadobjs('english.css', 'english.js')">English</button>
    
    <button id="mybutton2" onclick="javascript:ajaxpage('georgian_autosuggest.php', 'search7'); loadobjs('georgian.css','georgian.js', 'georgianlanguage.js');"> Georgian</button> 
    
    <script type="text/javascript">
    ajaxpage('english_autosuggest.php', 'search7'); loadobjs('english.css', 'english.js') 
    </script>
    
    <div id="search7">
    </div>
    Everything this works perfectly in IE6 but when I test the site in FF and Google chrome I experience the trouble with loading the "georgianlanguage.js". This is javascript file which let's me to write in search field in Georgian language.

    and here is the "georgian.php" code:

    Code:
    <div id="search-wrap" >
    
    <input name="checkbox" type="checkbox" id="geokeys" checked="CHECKED" style="display:none"/>
    
    <input name="search-q" id="search-q" type="text" onKeyUp="javascript:autosuggest()" onKeyPress="return makeGeo(this,event);" autocomplete="off" charset="utf-8";/>
    
    <div id="results"></div>
    Everything had worked without trouble in any browsers when I was using iframes for inserting georgian.php and english.php but since I replaced it with div tags, I faced this problem. For the record: I have already changed
    Code:
     loadedobjects=""
    So, please someone give me some advice... or at least tell me where should I search for the solution. ((((

    Thank you very much for your time.
    Koba

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
  •