ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

Error loading images - what could be the reason?

  • 2 პასუხი
  • 7 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 12 ნახვა
  • ბოლოს გამოეხმაურა jcadong5

How can we make firefox log all messages to a log file?

We have a fairly complex javascript application that loads multiple images sequentially from a server and sprites those through a viewport so as to play like a video. In this app, we use javascript to set the "src" attribute on a single tag which causes the browser to fetch the image. Once the job of showing that image is done, we again set the src attribute to a different image and so on. The actual spriting of the image is done on the "load" event for that image tag. This img tag is appended to a dom element with appendChild javascript method at the time it is first created. The problem is that firefox sometimes fails to load images without any exception or evident errors. There are no exceptions on the server side. When we get these errors, we again set the src attribute on the img tag and expect firefox to continue fetching the image. But often times the error persists. Question is: how do we i make firefox log out error messages so that we can get down to the root cause of the problem and fix it?

How can we make firefox log all messages to a log file? We have a fairly complex javascript application that loads multiple images sequentially from a server and sprites those through a viewport so as to play like a video. In this app, we use javascript to set the "src" attribute on a single <img/> tag which causes the browser to fetch the image. Once the job of showing that image is done, we again set the src attribute to a different image and so on. The actual spriting of the image is done on the "load" event for that image tag. This img tag is appended to a dom element with appendChild javascript method at the time it is first created. The problem is that firefox sometimes fails to load images without any exception or evident errors. There are no exceptions on the server side. When we get these errors, we again set the src attribute on the img tag and expect firefox to continue fetching the image. But often times the error persists. Question is: how do we i make firefox log out error messages so that we can get down to the root cause of the problem and fix it?

ჩასწორების თარიღი: , ავტორი: navteq

ყველა პასუხი (2)

A similar thing is happening to me, after I upgraded from firefox 3.x to firefox 4. This doesnt happen in IE.

What is happening is: 1. if i put path to an img, like '.src='/abc/aaa.jpg', it is okay 2. if i put a path to a server request like '/abc/myJavaStrutsActionToGetImage.do', it doesnt work. No image is displayed.

I found a workaround.

First, load them all into 'invisible' 'divs'.

Then, 1 by 1, make the current image visible, and the rest invisible.

===============================
      
      
      
===============================

Use javascript Timeout, to do, every time interval:

for (var i = 1; i <= 3; i++) {

  document.getElementById('myImageBox'+i).style.visibility = 'hidden'; 

}

 	  	  document.getElementById('myImageBox'+currentImageShown).style.visibility = 'visible';
     
===============================

currentImageShown is your current frame for that timeout time interval

===============================

Please look at attached image because the codes i posted are not getting displayed here.

ჩასწორების თარიღი: , ავტორი: jcadong5