473,796 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX Problem - Firefox and IE6 issue

I have just put 4 different ajax bits on this page:
http://jimpix.co.uk/default-ajax.asp

The ajax spits out chunks of images / news content, and users can view
the chunks via next / prev links.

When I first view the page in Firefox, there is a short delay while
the content first loads in the ajax sections.

When I first view the page in IE6, none of the ajax content appears to
start with. It only appears if I click a 'next' link.

Initially the body tag contained this, to fire off the 4 relevant
functions:
<body id="root" onload="sendReq uest(MyCurrentV ar + ',' +
MyCurrentCat); sendPhotoReques t(MyPhotoVar);
sendNewsRequest (MyNewsVar); sendWPRequest(M yWPVar)">

I then got rid of that, and used this instead:

window.onload = function()
{
sendRequest(MyC urrentVar + ',' + MyCurrentCat)
sendPhotoReques t(MyPhotoVar)
sendNewsRequest (MyNewsVar)
sendWPRequest(M yWPVar)
}

But I get the same result regardless.

Any advice much appreciated.

Thanks

Mar 12 '08 #1
1 1851
VK
On Mar 12, 9:06 pm, violinandvi...@ fastmail.fm wrote:
I have just put 4 different ajax bits on this page:http://jimpix.co.uk/default-ajax.asp

The ajax spits out chunks of images / news content, and users can view
the chunks via next / prev links.

When I first view the page in Firefox, there is a short delay while
the content first loads in the ajax sections.

When I first view the page in IE6, none of the ajax content appears to
start with. It only appears if I click a 'next' link.

Initially the body tag contained this, to fire off the 4 relevant
functions:
<body id="root" onload="sendReq uest(MyCurrentV ar + ',' +
MyCurrentCat); sendPhotoReques t(MyPhotoVar);
sendNewsRequest (MyNewsVar); sendWPRequest(M yWPVar)">

I then got rid of that, and used this instead:

window.onload = function()
{
sendRequest(MyC urrentVar + ',' + MyCurrentCat)
sendPhotoReques t(MyPhotoVar)
sendNewsRequest (MyNewsVar)
sendWPRequest(M yWPVar)

}

But I get the same result regardless.

Any advice much appreciated.
Are these send*Request sync or async? Do not forget that the page is
not displayed until the first execution break in onload handler. If
onload one starts a long operation, it may take a lot of time before
the initial blank screen will be repainted by the actual content. I am
not saying that it is your problem but it is a very often problem for
many current script-intensive sites. In my solution I am always using
onload over overlay to release the context so to let the page to be
initially drawn:

<script type="text/javascript">

function init() {
// do your stuff
}

function releaseContextA ndInit() {
window.setTimeo ut('init()',10) ;
}

window.onload = releaseContextA ndInit;
</script>

P.S. That excludes situations when one indeed doesn't want to display
the page until all its content is fully prepared.
Mar 12 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7475
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole new page that should replace an existing one. I.e when we issue an Ajax request we don't know what will be returned and analyze the response to act accordingly. Now, the way to replace the current document with a new one used to be easy and...
4
7712
by: ext237 | last post by:
Simple ajax call seems to have some issues in Firefox. The "onComplete:" is called BEFORE the response is returned by the call. Is there a coding issue or a work around? var ajax = new Ajax.Request( url, {method: 'post', parameters: params, onComplete: evalInfo }); function evalInfo( request ) { // do stuff with request
17
11884
by: Arjen | last post by:
Hi, I want to reload 2 divs at one click. Ive tried: <a href = "javascript:void(0);" onclick="show('ajaxrequest.php?action=removefield','div1');show('ajaxrequest.php?action=reloaddiv2','div2')">verwijderen</a> While both seperate actions work they dont when I put them together. Anyone know how to fix this ? My ajax.js with funcition show
2
4553
by: germ | last post by:
doing a simple page webmethod call an a page via PageMethods works fine in ie7 & opera9 the same call on firefox ( and I assume netscape ) generates the following error : Error: " nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://hgha.gerzio.ca/ScriptResource.axd?d=3Ot8FdrYMQ58gwjNF6tbd8V5YtBKDtb8a6qI5cjRJWaZBQhYu2jjDRnc7N0IverhgY8x7LACpAIvqLPvNyERF0ui1Tz1p-s2eu0h41S_qMA1&t=633179517344763787 ::...
0
3171
by: jrnail23 | last post by:
I have a user control which contains an UpdatePanel, which contains a MultiView inside, with a GridView in one of the views. In my GridView, I have a ButtonField which is supposed to trigger a server-side operation, using the RowCommand functionality. In IE, this all works great, but in Firefox (v2.0.0.6), clicking the above mentioned ButtonField fires off two similar AJAX requests, which is causing errors in my server-side code. ...
2
1434
by: awi | last post by:
Hi Everyone, I'm facing a unique problem when testing with FireFox (at least, I think its unique). Here is the situation: I have a page setup that looks like this: <form id="abcForm"> <div id="abcDiv"> HTML TABLE HERE WITH FORM FIELDS AND SUCH. </div>
3
2137
by: dmorand | last post by:
I have a page where I'm using ajax to retrieve some employee info when a user clicks a "Retrieve Employee Info" button. The issue I'm having is that when the user updates the employee info, saves the data, then hits the retrieve employee info button again the data being retrieved is the original data, not the updated data. This only occurs in any IE browser, firefox works fine. In firefox everytime I hit the retrieve employee info button,...
6
1987
by: raknin | last post by:
Hi I am running ajax call to my appache local server on my development server, which is also my testing server, I run the site from the server (the server running php,mysql), what I get back is a list from the server and than I use innerHTML to plant it into the page. select id="'modelName'" style="width:130"> <option value="none" selected>none</option> </select>
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9524
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.