This is a discussion on "Javascript warning message" within the JavaScript Forum section. This forum, and the thread "Javascript warning message are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Javascript warning message
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Javascript warning message
Greetings,
I'm launching videos from a streaming server into an inline frame, and they play just fine. However, I am getting an irksome error message. I've put the page here temporarily: http://finchnest.org/give/videos.html The error I get in Mozilla (not IE or Safari) are: Deprecated method document.getSelection() called. Please use window.getSelection() instead. The only place document.get appears is in the swfobject.js file. This is the source code for the script: http://blog.deconcept.com/swfobject/swfobject_source.js I have no clue what the warning means. I'm on a tight deadline, any help would be greatly appreciated! |
|
|
|
||||
|
Re: Javascript warning message
i think the answer is pretty obvious: replace document.getSelection with window.getSelection. Try it and see if it works. (Make sure it also works with IE though)
Just a tip: Whenever you encounter a javascript error google it. You'll often get a forum post just like this one on how to fix it.
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; project-2: kapp; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Last edited by CloudedVision; May 18th, 2008 at 00:28. Reason: Added tip |
|
||||
|
Re: Javascript warning message
it should be as simple as cloudedvision says, but i do also know that it is only a firefox bug for 'older' code ( pre - 1.5.0.11 )
it will not affect any other browser ( i know nothing about javascript, but i did come across people asking about this error on forums a couple of times )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; May 18th, 2008 at 00:58. |
|
|||
|
Re: Javascript warning message
Alas, would that it were so simple. I now get a more severe error message when I do that, in addition to the previous 'warning'.
Error: this.params has no properties Source File: http://finchnest.org/give/videos/swfobject.js Line: 59 The code is not document.getSelection, it is document.getElement, and other document. code. It doesn't have getSelection anywhere. The video pages that are called into the inline frame work fine stand-alone. I'm at a complete loss, please help! |
|
||||
|
Re: Javascript warning message
Line 59 (and surrounding code) is this:
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; project-2: kapp; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
|||
|
Re: Javascript warning message
Thanks for trying to help, that error appeared only when I tried changing the code to window.get everywhere that document.get appeared. Unfortunately, I'm a designer, not a programmer. The code is straight from the JW FLV Media Player,
http://www.jeroenwijering.com/?item=JW_FLV_Media_Player and I have posted on their forum (and several others) to no avail. The player works just fine, the video appears correctly and plays when clicking one of the thumbnails, it's just that buggy message that is spoiling my day. If you try one of the thumbnail page by itself it works fine with no message, i.e.: http://finchnest.org/give/videos/JQpretest.html There's something about the relationship to the iframe is what I have concluded. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ADO Security Warning?? | bwalker | ASP.NET Forum | 2 | Nov 14th, 2005 18:42 |
| javascript alert message! | Monie | JavaScript Forum | 7 | Sep 29th, 2004 17:14 |