当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Mozilla doesn't refresh the audio tag file. Mozilla's faulty audio

  • 5 件の返信
  • 1 人がこの問題に困っています
  • 3 回表示
  • 最後の返信者: kapil.chattani

more options
<div class="formRow">
                <div class="field">
                    <img style="margin-left:91px; margin-top:-6px;" class="image" src="http:www.xyz.com/captchaServlet"> 
         //the above line calls a servlet for the image       

                </div>
                </div></br>
                 <div class="formRow">
                      <div class="field">
                      <audio style="margin-left:91px;" controls="controls">
      <source  src="http:www.xyz.com/getSound" type="audio/wav">
//the above line calls servlet for audio file
    Your browser does not support this audio format.
    </audio>
                      </div>
             </div>

// in the above code whenever I refresh the page a new image is loaded by calling the servlet but a new audio is not loaded, the call is not made to the sound servlet.
<pre><nowiki><div class="formRow"> <div class="field"> <img style="margin-left:91px; margin-top:-6px;" class="image" src="http:www.xyz.com/captchaServlet"> //the above line calls a servlet for the image </div> </div></br> <div class="formRow"> <div class="field"> <audio style="margin-left:91px;" controls="controls"> <source src="http:www.xyz.com/getSound" type="audio/wav"> //the above line calls servlet for audio file Your browser does not support this audio format. </audio> </div> </div> // in the above code whenever I refresh the page a new image is loaded by calling the servlet but a new audio is not loaded, the call is not made to the sound servlet. </nowiki></pre>

この投稿は cor-el により に変更されました

すべての返信 (5)

more options

It is usually best to add a random part to such an URL like http:www.xyz.com/captchaServlet?xxxxxx (e.g. the current time in epoch format) to make sure that Firefox doesn't use the previous image as stored in the cache, but requests a new image from the server.

more options

I have tried that already. But it still doesnt work. I dont know what to do. My whole project is on hold because of this bug!!

more options

And its not the image its the audio tag that doesn't get refreshed. new image gets called everytime

more options

Then try to d the same with the audio source src attribute.

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

more options

I have done it to audio src attribute only. Image attribute does not need randomly generated URL.