-
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?
-
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.
-
.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 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