Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - JavaScript - Exception Occured
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

JavaScript - Exception Occured

 Post Reply Post Reply Page  123>
Author
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Topic: JavaScript - Exception Occured
    Posted: 26 October 2004 at 4:20pm

Error '80020009'

Exception Occured

Does anyone know how to solve this problem?

Here is the sorce code:-

function createLink() {
 if (isHTMLMode) {
  alert("Please uncheck 'Edit HTML'");
  return;
 }
 cmdExec("CreateLink");
}

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 4:51pm
What line is the error on?
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 9:44pm
maybe return; needs to be return false;
Back to Top
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2004 at 5:14am

It still doesnt work the exact line of the error is

if (isHTMLMode) {

Also does anyone know how to stop IE from cashing a page.

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2004 at 5:47am

Are you sure that isHTMLMode is a boolean?

Back to Top
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2004 at 5:51am
Yes. The code has been used before in my script and I have just copied it because it is part of my Rich Text Editor

Edited by VBScript
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2004 at 5:54am

Before that line type

alert(isHTMLMode);

and reply with that the alert box says

Back to Top
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2004 at 6:07am

function createLink() {
alert(isHTMLMode);   <--- Line 157
 if (isHTMLMode) {
  alert("Please uncheck 'Edit HTML'");
  return false;
 }
 cmdExec("CreateLink");
}

I still get the same error

Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.