Jump to content

noisy browsers!


mgs019

Recommended Posts

Hi,

 

I have a small javascript function which updates the url for an iframe as a slider is moved. In firefox it is beautiful.

 

HOWEVER, in MSIE7 every time the url is submitted it clicks very irritatingly.

 

Is there any way to suppress this annoying noise?

 

Thanks,

 

Martin.

Link to comment
Share on other sites

  • 2 weeks later...

You can't - it's a windows event sound. To bypass it you could use javascript to update the hash on a url, and have another function firing every second which reads and checks it. if it has changed, it loads new content based on that.

 

However that would need xmlHttpRequest objects, so you may as well scrap the iFrame and update an element on the page using element.innerHTML.

 

However if you start updating the hash to load content, you won't get new history events added automatically like you do in an iframe. But that is if you want history events? are you aware that pressing the back button at the moment will fire history events in the iframe as well?

 

If you want history events to be added still, then take a look at RSH (Really Simple History) library.

 

updating hash: google location.hash

xmlHttpRequest: google ajax or xmlhttprequest, or take a look on w3cschools

 

Hope this helps. Also, take a look at that url AndyB posted. Click the links in the blog, use google. From clicking the MSDN link i got

"Quiet Navigation- (FEATURE_DISABLE_NAVIGATION_SOUNDS)- This control disables the sound that is produced when clicking on links."

 

Good luck

Link to comment
Share on other sites

Hi,

 

Thanks. The problem is that teh iframe contains a fairly lengthy php/sql thing to calculate a price. It is at blood-diamond.co.uk in the choose a diamond page where you see guide price.

 

Is it possible to use a javascript update with that. At the moment there is a simple script which reads form values and updates the url of the iframe when the script is triggered by value changes.

 

Am a bit of a beginner to javascript. What did you mean by updating the hash? I don't care about history. (in fact I would prefer no history).

 

Thanks,

 

Martin

Link to comment
Share on other sites

the hash iswhat you see when you use page anchors, but it can also be used to store data in the URI.

 

to set the hash use:

location.hash = "myhash"; //will give www.whatever.com/index.html#myhash

 

to read the hash from www.whatever.com/index.html#myhash

var hash = location.hash; //will give #myhash (you need to drop the # yourself)

 

dynamic loading of pages: http://www.w3schools.com/xml/xml_http.asp for a beginners tutorial

with that you can load anything from pages, to images without refreshing the page

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.