This is a discussion on "ondblClick Error" within the JavaScript Forum section. This forum, and the thread "ondblClick Error are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
ondblClick Error
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
ondblClick Error
What it is, is i'm just messing around with Javascript at the moment, getting familiar with it, i add a <span> tag which has both a 'onClick' and 'ondblClick' within it. When you double click on the text, you should be sent to the direct image in another window/tab. However, although this works in FF, it just creates an error in IE7, any suggestions?
http://joeblogs.50webs.com/Templates/ Thanks! |
|
|
|
||||
|
Re: ondblClick Error
var newWindow = open ("/images/sd1.PNG","New Window");
should be... var newWindow = window.open ("/images/sd1.PNG","New Window");
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: ondblClick Error
Tries*
Still seems to produce the same problem. |
|
||||
|
Re: ondblClick Error
The second parameter is the window ID. I don't think IE allows spaces in it.
try... var newWindow = window.open ("/images/sd1.PNG","NewWindow"); Good reference: http://www.javascript-coder.com/wind...dow-open.phtml
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: ondblClick Error
I believe it's because IE does not accept spaces in the new window's name...
|
|
|||
|
Re: ondblClick Error
People are just far too quick & helpful on this site
|
|
|||
|
Re: ondblClick Error
Ahhh, knew it was something stupid like that!
Hence my reason in 'not' using IE anymore! Thanks for the help guys! |
|
||||
|
Re: ondblClick Error
LOL, You just beat me to it in the CMS thread.
Let's just call it a draw
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Tags |
| error, ondblclick |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 ondblclick handlers to zoom-in/zoom-out images | benreynolds4 | JavaScript Forum | 4 | May 23rd, 2008 19:39 |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| Keep getting error message Microsoft VBScript runtime error '800a01a8' | cpando1974 | Classic ASP | 2 | Aug 7th, 2007 12:00 |
| Error 500 - Internal server error | JasonStanley | PHP Forum | 3 | Apr 23rd, 2007 17:56 |