Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Problem with htmlarea

Problem with htmlarea

Lem
11-23-2004, 10:20 PM
This is my error that I am getting.

Error: description is not defined


This is my code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Add a Home to your Listings</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript">
_editor_url = "htmlarea/";
_editor_lang = "en";
</script>

<script type="text/javascript" src=http://www.codingforums.com/archive/index.php/"htmlarea/htmlarea.js"></script>

<script type="text/javascript" defer="1">
HTMLArea.replace(description);
</script>

<link rel="stylesheet" type="text/css" href=http://www.codingforums.com/archive/index.php/"style.css">

</head>

Code down in the body

<tr>
<td bgcolor="#EEEEEE"><strong>Description</strong></td>
<td>
<div align="left">
<textarea name="description" cols="55" rows="8"></textarea>
&nbsp;</div></td></tr>

If anyone could offer some assistance that would be great. Thanks.

codegoboom
11-24-2004, 12:25 AM
Without seeing the code for the replace method, it is not possible to know, but I'd guess that you need to send it a string, so try quoting the textarea name, like HTMLArea.replace("description");

Don't they have a support forum where you got this script?

subnet_rx
11-24-2004, 06:37 PM
I've tried this script, and yeah, they do, but it's very slow, and mostly filled with people with problems, instead of the answers. I have been looking for another script like it, but not having much luck

codegoboom
11-25-2004, 01:26 AM
I figured it out. Lem is trying to use a script designed to work in "I.E. 5.5 or greater" in some other browser. Well duh. :D


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

Copy link text to clipboard
Random URL script help needed
Help with keystroke
possible to pass a form field name to a function, like this.value?
web forms proxy servers
List/menu link values
Need HELP on combo boxes

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics