mgs019 Posted March 18, 2007 Share Posted March 18, 2007 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. Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 18, 2007 Share Posted March 18, 2007 http://blog.sc.tri-bit.com/archives/162 Quote Link to comment Share on other sites More sharing options...
mgs019 Posted March 28, 2007 Author Share Posted March 28, 2007 Hi, Still baffled! Any ideas guys? Thanks, Martin ??? Quote Link to comment Share on other sites More sharing options...
BlackenedSky Posted March 28, 2007 Share Posted March 28, 2007 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 Quote Link to comment Share on other sites More sharing options...
mgs019 Posted March 28, 2007 Author Share Posted March 28, 2007 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 Quote Link to comment Share on other sites More sharing options...
BlackenedSky Posted March 29, 2007 Share Posted March 29, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.