Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - body onload="initialiseWebWizRTE();" JS Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedbody onload="initialiseWebWizRTE();" JS Error

 Post Reply Post Reply
Author
andreaso View Drop Down
Newbie
Newbie


Joined: 26 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreaso Quote  Post ReplyReply Direct Link To This Post Topic: body onload="initialiseWebWizRTE();" JS Error
    Posted: 27 April 2006 at 9:05am
Dear friends,
 
I get a javascript error on this line:
 
body onload="initialiseWebWizRTE();" --> Line 1 : Object Expected
 
  -->   I press the 'not to debug' button ...      and it works !!  very well !!
 
But this error is very undesirable    client side
 
Please, does anyone know how to solve the problem ?
 
Thank you very much in advance for your help
 
Andrea Sovrano
MI Italy
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2006 at 9:41am
If you use Firefox's javascript console, built into firefox, it will tell you exactly the problem rather than IE's shockingly bad javascript debugger that gives totally confusing error messages.
Back to Top
andreaso View Drop Down
Newbie
Newbie


Joined: 26 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreaso Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2006 at 10:34am
dear boRg, the error results in (jas console):
 
'initialiseWebWizRTE is not defined'
 
but it hides the error whereas IE prompts me for debugging
however it detects the error too.
 
I'm using a RTE version adapted to manage not only message insertion but also modification of the text captured from db. The strange thing is that it does work ... maybe the function must not be called from onload, maybe it cannot find some objects ... I also tried to call the function below but the error always occurs ....
 
Any idea ?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2006 at 10:41am
You could try moving the call to the RTE_javascript.asp file from the include to the head of the page the RTE is within.

Hopefully this will stop the error as the initialiseWebWizRTE function is within this file and maybe something to do with your setup means that this file with the function isn't loaded before the onLoad event is called.
Back to Top
andreaso View Drop Down
Newbie
Newbie


Joined: 26 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreaso Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2006 at 11:04am
dear boRg,
I think to have solved the problem: I removed the call to that function at all! I presume that this RTE version does not need it any more because it doesn't use the textarea as RTE normally does but iframes where to put the content in. ....
Thank you very much for your help
Bye
Andrea
Back to Top
superlative View Drop Down
Groupie
Groupie

Not Comparative, I m Superlative :)

Joined: 26 November 2004
Location: Turkey
Status: Offline
Points: 125
Post Options Post Options   Thanks (0) Thanks(0)   Quote superlative Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2006 at 9:33am
Object expected Look this topic. May be help you
Back to Top
 Post Reply Post Reply

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.