Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Javascript Error

New User

Feb 11, 2005, 1:57 PM

Views: 50587
Javascript Error


I've been playing around with this for some time now and just can't seem to get it to work. I'm not sure if it's because I am using fValidate to validade some of the fields in my form. I just keep getting the error 'Object doesn't support this property or method'.

Any suggestions greatly appreciated.

Here is my page code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Begin Header Content -->
<title>Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="styles/style.css" />

<script type="text/javascript" src="javascripts/fValidate.config.js"></script>
<script type="text/javascript" src="javascripts/fValidate.core.js"></script>
<script type="text/javascript" src="javascripts/fValidate.lang-enUS.js"></script>
<script type="text/javascript" src="javascripts/fValidate.validators.js"></script>

<script language="Javascript1.2">
<!-- // load htmlarea
_editor_url = ""; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
{ document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// -->

<div id="content">
<div id="header">Control Panel
<p>Welcome to the Administrative Control Panel</p></div>
<div id="inserttop"></div>
<!-- End Header Content -->

<!-- Begin Nav -->
<div id="nav">
<p><div class="navtitle">Modify Page Content</div>
<a href="index.php?Action=AddPage">Add a Page</a><br />
<a href="index.php?Action=EditPage">Edit a Page</a><br />
<a href="index.php?Action=DeletePage">Delete a Page</a><br />

<p><div class="navtitle">Upload Image/PDF Files</div>
<a href="index.php?Action=UploadFile">Upload File</a><br />
<a href="index.php?Action=DeleteFile">Delete File</a><br />
<p><div class="navtitle">Modify Menu Items</div>
<a href="index.php">Manage Menu</a><br />

<a href="add-page.php">View Menu</a><br />
<a href="edit_page.php">View Sitemap</a><br />
<p><div class="navtitle">Admin</div>
<a href="index.php">Add a User</a><br />
<a href="add-page.php">Edit a User</a><br />

<a href="edit_page.php">Delete a User</a><br />
<p><div class="navtitle">Installed Modules</div>
<a href="index.php">Calendar</a><br />
<a href="add-page.php">News</a><br />
<a href="edit_page.php">Banners</a><br />

<a href="del_page.php">Member DB</a><br />
<p><div class="navtitle">Misc Tasks</div>
<a href="index.php">Meta Tags</a><br />
<a href="add-page.php">Footer Links</a><br />
<a href="edit_page.php">Contact Ifo</a><br />

<a href="del_page.php">Web Statistics</a><br />
<br />
<a href="index.php">Home</a><br />
<a href="SignOut.php">Log Out</a><br /><br />
<!-- End Nav -->

<!-- Start of Main Body Content -->
<div id="contentinner">

<div class="formtextheader">Add a Page</div>
<form method="post" action="" onsubmit="return validateForm( this , false , true , true , true , 7 );">
<div class="formtextbody">Page Name:<br />
<input type="text" size="35" maxlength="75" name="name" alt="blank" emsg="Page Name" /></div><br />

<div class="formtextbody">Page Heading:<br />
<input type="text" size="35" maxlength="75" name="heading" alt="blank" emsg="Page Heading" /></div><br />

<div class="formtextbody">Page Body:<br />
<textarea wrap="physical" rows="10" cols="40" name="body"></textarea><br />
<input type="submit" name="submit" value="Add Page" class="formbuttons" />
<input type="reset" name="reset" value="Reset" class="formbuttons" /></div>

<script language="JavaScript1.2" defer>

<!-- Display Error if fvalidate finds errors in input fields -->
<ul id="errors">
<li class="heading">Please Correct The Following Fields!</li>


</div><!-- End DIV contentinner -->

<div id="insertbottom">
<!-- Begin Footer Content -->
<div id="footer">blah</div>


New User

Feb 15, 2005, 1:01 PM

Views: 50479
Re: [1skydive] Javascript Error

Start by telling it where its files are:

<script language="Javascript1.2">
<!-- // load htmlarea
_editor_url = Blush"yourdomain.com/htmlarea/"; Blush // URL to htmlarea files

you need to tell it the URL of your htmlarea files. Then see if it still doesn't work.