Jump to content

Recommended Posts

I've been trying for ages to be able to set textarea values in firefox to no avail. It just doesn't register the textarea... Any help?

Here is the relevant codes:

From the javascript file:
[code]function set(toset, img, iid, thelink) {
link = thelink;
do_id = iid;
document.main.src = img + '&x=300&y=300';
Image_Desc.value = toset;
}[/code]

The image setting it (it's an onmousedown... as you can see)
[code]
onMouseDown="
set('{$this->sql_fetch[desc]}', 'image_resize.php?src=uploads/{$this->sql_fetch[File]}', '{$this->sql_fetch[id]}', 'uploads/{$this->sql_fetch[File]}');
setCookie('page_{$this->sql_fetch[Item_ID]}','{$this->sql_fetch[File]}', '6');
setCookie('page_{$this->sql_fetch[Item_ID]}_desc', '{$this->sql_fetch[desc]}', '6');
setCookie('page_{$this->sql_fetch[Item_ID]}_x','300', '6');  setCookie('page_{$this->sql_fetch[Item_ID]}_y','220', '6');
setCookie('page_{$this->sql_fetch[Item_ID]}_link','uploads/{$this->sql_fetch[File]}', '6')" >
[/code]

The textarea:
[code]
<textarea name="Image_Desc" cols="30" readonly align=left style='height: 200px;'><?if (file_exists('Uploads/'.$_COOKIE[$cookie])) { echo stripslashes($_COOKIE['page_'.$_GET[id].'_desc']); } else if(!file_exists('Uploads/'.$_COOKIE[$cookie])) { echo $Pic_Viewer->first_image[desc]; } ?></textarea>





[/code]


It all works in IE but firefox doesn't like it. Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/14253-textareavaluex-not-working-in-firefox/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.