Link to home
Start Free TrialLog in
Avatar of zareeo
zareeo

asked on

unable to write in edit box in a explorer

i am unable to write in a edit box(text area) inside a web page on my Pc.... welll this is not the case with all the site. this problem occur only some site and inside all browers ( i have chaecked it with IE and netscape)

I can write in the simple text area ....... but i think i got a problem when i have to write in a text area that is added as some VB object in form of a complete editor .........

this problem started just few days back

CAN any one help me
Avatar of Asta Cu
Asta Cu
Flag of United States of America image

You've cleared your cache (temp internet files, offline content and history files)?

Cleared your autocomplete?

WindowsUpdate current for OS and IE, and Netscape updated?

It helps to know more about versions running, if problem persists.
More "possibilities" here in terms of links to get you to the right spot for your problem with "EDIT of text boxes", if I understand you correctly:
http://search.microsoft.com/search/results.aspx?qu=edit+text+boxes&View=msdn&st=b&c=4&s=2
If you still have a problem after exploring the excellent links posted by Asta, post the code for the page with a problem, and I will see if there is anything in there that can cause such a problem.

Cd&
Avatar of zareeo
zareeo

ASKER

actually i have not coded the page my self rather there is no problem in the page code becasuse it work properly on the same version of IE on another Pc

and it use to work fine on my tooo few days back .... but now when i try to write in the text box it doesnot show me the curser rather it select the text box and do nothing ... the text box is actually some kind of control which provide the functionality of Rich edit

I think the problem is with my pc or what .... i deleted the internet files but no benifit  

What browser and version, and when was the last time it had any updates done to it.

Cd&
Avatar of zareeo

ASKER

it is IE 6.0.2800

actually what i fiqure it out is that the problem is actually with the html editor in the web page

the editor is displayed but i cannot write anything in the area provided and no cursor is shown

if i enable the debugging of the script i got an error

a runtime error has occured do u want to debug
Error: ' this.doc is null or not an object

Okay I need to see the code, at this point I am not sure how that edit control is implemented and there are a lot of ways to do it.  I have a feeling this is going to be fixable by changing yur settings, but I don't know what to change without knowing how the edit control is written.

Cd&
COBOLdinosaur is the one to help you here, and he knows what you need to provide him (either the code or a link to is).   I'd only ask a couple of points...

You say you have this version installed of IE 6.0.2800 -->  No Service Packs installed?  That would be updated with WindowsUpdate.   Also you say you're having problems with your HTML Editor ... From IE - tools - internet options -  Programs - what is your default HTML editor?
Avatar of zareeo

ASKER

okay .... full version 6.0.2800.1106.xpsp2.030422-1633
Update version SP1

currently my html editor is Microsoft Visual studio.Net 2002
and i have checked other editors like word notepad ect tooo


One more point is that the html editor works when i open on some other site or when i tried the                  htmlArea v2.03A free WYSIWYG editor

The same editor is used in the web page where i am getting problem may be it is the problem with my settings or in fact with the code


/************SO HERE IS THE FULL SOURCE CODE *************************/

<html dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style type="text/css">@import url(http://www.junaid.name/lib/editor/htmlarea.css);</style>



<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" /><title>OOP Spring04: Editing assignment</title>
<meta name="keywords" content="moodle, OOP Spring04: Editing assignment " />
<link rel="stylesheet" type="text/css" href="http://www.junaid.name/theme/standard/styles.php" />
<link rel="shortcut icon" href="http://www.junaid.name/theme/standard/favicon.ico" />


                  <!-- ZoneLabs Privacy Insertion -->
                  <script language='javascript' src='http://127.0.0.1:3004/js.cgi?pcaw&r=28145'></script>

<script language="JavaScript" type="text/javascript"
        src="http://www.junaid.name/lib/overlib.js"></script>

<script language="JavaScript">
<!-- //hide

function popUpProperties(inobj) {
  op = window.open();
  op.document.open('text/plain');
  for (objprop in inobj) {
    op.document.write(objprop + ' => ' + inobj[objprop] + '\n');
  }
  op.document.close();
}

function fillmessagebox(text) {
  document.form.message.value = text;
}

function openpopup(url,name,options,fullscreen) {
  fullurl = "http://www.junaid.name" + url;
  windowobj = window.open(fullurl,name,options);
  if (fullscreen) {
     windowobj.moveTo(0,0);
     windowobj.resizeTo(screen.availWidth,screen.availHeight);
  }
  windowobj.focus();
  return false;
}

function copyrichtext(textname) {
/// Legacy stub for old editor - to be removed soon
  return true;
}

function checkall() {
  void(d=document);
  void(el=d.getElementsByTagName('INPUT'));
  for(i=0;i<el.length;i++)
    void(el[i].checked=1)
}

function inserttext(text) {
  text = ' ' + text + ' ';
  if ( opener.document.forms['theform'].message.createTextRange && opener.document.forms['theform'].message.caretPos) {
    var caretPos = opener.document.forms['theform'].message.caretPos;
    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  } else {
    opener.document.forms['theform'].message.value  += text;
  }
  opener.document.forms['theform'].message.focus();
}

function lockoptions(form, master, subitems) {
  // subitems is an array of names of sub items
  // requires that each item in subitems has a
  // companion hidden item in the form with the
  // same name but prefixed by "h"
  if (eval("document."+form+"."+master+".checked")) {
    for (i=0; i<subitems.length; i++) {
      unlockoption(form, subitems[i]);
    }
  } else {
    for (i=0; i<subitems.length; i++) {
      lockoption(form, subitems[i]);
    }
  }
  return(true);
}
function lockoption(form,item) {
  eval("document."+form+"."+item+".disabled=true");/* IE thing */
  eval("document."+form+".h"+item+".value=1");
}
function unlockoption(form,item) {
  eval("document."+form+"."+item+".disabled=false");/* IE thing */
  eval("document."+form+".h"+item+".value=0");
}

function setfocus() { document.form.name.focus() }

// done hiding -->
</script>

</head>

<body onload=setfocus() bgcolor="#FFEECE">

  <table width="100%" cellpadding="0" cellspacing="0" border="0" class="header">
    <tr>
      <td valign="top" class="headermain">Object Oriented Programming Spring 2004</td>
      <td align="right" valign="top" class="headermenu"><font size="2"><a target="_top" href="http://www.junaid.name/login/logout.php">Logout</a></font></td>
    </tr>
  </table>




  <table border="0" cellpadding="3" cellspacing="0" width="100%">
    <tr>
      <td bgcolor="#FFD991" class="navbar">
        <font size="2"><b><a target="_top" href="http://www.junaid.name/">Home</a> -> <A HREF="http://www.junaid.name/course/view.php?id=3">OOP Spring04</A> ->
                      <A HREF="http://www.junaid.name/mod/assignment/index.php?id=3">Assignments</A> ->
                      Editing assignment</b></font>
      </td>
      <td bgcolor="#FFD991" class="navbar" align="right" width="20" valign="top">&nbsp;</td>
    </tr>
  </table>
  <img src="http://www.junaid.name/pix/spacer.gif" alt="" height="5" width="1" /><br />


<!-- END OF HEADER -->
<p align="center"><font size="3"><img align=absmiddle height=16 width=16 src="http://www.junaid.name/mod/assignment/icon.gif">&nbsp;<b>Updating assignment in topic 2<a target="popup" title="Updating assignment in topic 2" href="http://www.junaid.name/help.php?module=assignment&file=mods.html" onClick="return openpopup('/help.php?module=assignment&amp;file=mods.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><img align="absmiddle" border="0" height="17" width="22"  alt="Updating assignment in topic 2" style="cursor:help;" src="http://www.junaid.name/pix/help.gif" /></a>
</b></font></p><table align="center"  class="generalbox" border="0" cellpadding="5" cellspacing="0"><tr><td bgcolor="#FFD991" class="generalboxcontent">
<form name="form" method="post"  action="mod.php">
<table cellpadding=5>
<tr valign=top>
    <td align=right><p><b>Assignment name:</b></p></td>
    <td>
        <input type="text" name="name" size=60 value="Assignment 4">
    </td>
</tr>
<tr valign=top>
    <td align=right><p><b>Description:</b></p>
    <font size="1">
     <a target="popup" title="Write carefully" href="http://www.junaid.name/help.php?module=moodle&file=writing.html" onClick="return openpopup('/help.php?module=moodle&amp;file=writing.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><span style="cursor:help;">Write carefully<img align="absmiddle" border="0"  height="17" width="22" alt="" src="http://www.junaid.name/pix/help.gif" /></span></a>
<br /><a target="popup" title="Ask good questions" href="http://www.junaid.name/help.php?module=moodle&file=questions.html" onClick="return openpopup('/help.php?module=moodle&amp;file=questions.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><span style="cursor:help;">Ask good questions<img align="absmiddle" border="0"  height="17" width="22" alt="" src="http://www.junaid.name/pix/help.gif" /></span></a>
<br /><a target="popup" title="About HTML editor" href="http://www.junaid.name/help.php?module=moodle&file=richtext.html" onClick="return openpopup('/help.php?module=moodle&amp;file=richtext.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><span style="cursor:help;">About HTML editor<img align="absmiddle" border="0"  height="17" width="22" alt="" src="http://www.junaid.name/pix/help.gif" /></span></a>
      <br />
    </font>
    </td>
    <td>
    <script type="text/javascript" src="http://www.junaid.name/lib/editor/htmlarea.php?id=3"></script>
<script type="text/javascript" src="http://www.junaid.name/lib/editor/dialog.js"></script>
<script type="text/javascript" src="http://www.junaid.name/lib/editor/lang/en.php"></script>
<script type="text/javascript" src="http://www.junaid.name/lib/editor/popupwin.js"></script>
<textarea id="description" name="description" rows="20" cols="65" wrap="virtual">&lt;p&gt;Add templates and exception handling to the last assignment. Parenthesis operator must also be overloaded. The following exceptional conditions must be appropriately detected and handled. Memory allocation failure, array index out of bounds, order of arrays dont match.&lt;/p&gt;</textarea>
<p align=right><a target="popup" title="Formatting" href="http://www.junaid.name/help.php?module=moodle&file=textformat.html" onClick="return openpopup('/help.php?module=moodle&amp;file=textformat.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><img align="absmiddle" border="0" height="17" width="22"  alt="Formatting" style="cursor:help;" src="http://www.junaid.name/pix/help.gif" /></a>
Formatting:&nbsp;<select name="format" >
   <option value="0">Moodle auto-format</option>
   <option value="1" selected="true">HTML format</option>
   <option value="2">Plain text format</option>
   <option value="3">Wiki format</option>
</select>
</p>    </td>
</tr>
<tr valign=top>
    <td align=right><p><b>Assignment type:</b></p></td>
    <td>
    <select name="type" >
   <option value="0">Offline activity</option>
   <option value="1" selected="true">Upload a single file</option>
</select>
<a target="popup" title="Assignment type" href="http://www.junaid.name/help.php?module=assignment&file=assignmenttype.html" onClick="return openpopup('/help.php?module=assignment&amp;file=assignmenttype.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><img align="absmiddle" border="0" height="17" width="22"  alt="Assignment type" style="cursor:help;" src="http://www.junaid.name/pix/help.gif" /></a>
    </td>
</tr>
<tr>
    <td align=right><p><b>Allow resubmitting:</b></p></td>
    <td>
    <select name="resubmit" >
   <option value="0" selected="true">No</option>
   <option value="1">Yes</option>
</select>
<a target="popup" title="Allow resubmitting" href="http://www.junaid.name/help.php?module=assignment&file=resubmit.html" onClick="return openpopup('/help.php?module=assignment&amp;file=resubmit.html', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><img align="absmiddle" border="0" height="17" width="22"  alt="Allow resubmitting" style="cursor:help;" src="http://www.junaid.name/pix/help.gif" /></a>
    </td>
</tr>
<tr valign=top>
    <td align=right><p><b>Grade:</b></p></td>
    <td>
        <select name="grade" >
   <option value="-3">Scale: Satisfactory</option>
   <option value="-1">Scale: Separate and Connected ways of knowing</option>
   <option value="-2">Scale: Separate and Connected ways of knowing</option>
   <option value="0">No grade</option>
   <option value="100">100</option>
   <option value="99">99</option>
   <option value="98">98</option>
   <option value="97">97</option>
   <option value="96">96</option>
   <option value="95">95</option>
   <option value="94">94</option>
   <option value="93">93</option>
   <option value="92">92</option>
   <option value="91">91</option>
   <option value="90">90</option>
   <option value="89">89</option>
   <option value="88">88</option>
   <option value="87">87</option>
   <option value="86">86</option>
   <option value="85">85</option>
   <option value="84">84</option>
   <option value="83">83</option>
   <option value="82">82</option>
   <option value="81">81</option>
   <option value="80">80</option>
   <option value="79">79</option>
   <option value="78">78</option>
   <option value="77">77</option>
   <option value="76">76</option>
   <option value="75">75</option>
   <option value="74">74</option>
   <option value="73">73</option>
   <option value="72">72</option>
   <option value="71">71</option>
   <option value="70">70</option>
   <option value="69">69</option>
   <option value="68">68</option>
   <option value="67">67</option>
   <option value="66">66</option>
   <option value="65">65</option>
   <option value="64">64</option>
   <option value="63">63</option>
   <option value="62">62</option>
   <option value="61">61</option>
   <option value="60">60</option>
   <option value="59">59</option>
   <option value="58">58</option>
   <option value="57">57</option>
   <option value="56">56</option>
   <option value="55">55</option>
   <option value="54">54</option>
   <option value="53">53</option>
   <option value="52">52</option>
   <option value="51">51</option>
   <option value="50">50</option>
   <option value="49">49</option>
   <option value="48">48</option>
   <option value="47">47</option>
   <option value="46">46</option>
   <option value="45">45</option>
   <option value="44">44</option>
   <option value="43">43</option>
   <option value="42">42</option>
   <option value="41">41</option>
   <option value="40">40</option>
   <option value="39">39</option>
   <option value="38">38</option>
   <option value="37">37</option>
   <option value="36">36</option>
   <option value="35">35</option>
   <option value="34">34</option>
   <option value="33">33</option>
   <option value="32">32</option>
   <option value="31">31</option>
   <option value="30">30</option>
   <option value="29">29</option>
   <option value="28">28</option>
   <option value="27">27</option>
   <option value="26">26</option>
   <option value="25">25</option>
   <option value="24">24</option>
   <option value="23">23</option>
   <option value="22">22</option>
   <option value="21">21</option>
   <option value="20">20</option>
   <option value="19">19</option>
   <option value="18">18</option>
   <option value="17">17</option>
   <option value="16">16</option>
   <option value="15">15</option>
   <option value="14">14</option>
   <option value="13">13</option>
   <option value="12">12</option>
   <option value="11">11</option>
   <option value="10" selected="true">10</option>
   <option value="9">9</option>
   <option value="8">8</option>
   <option value="7">7</option>
   <option value="6">6</option>
   <option value="5">5</option>
   <option value="4">4</option>
   <option value="3">3</option>
   <option value="2">2</option>
   <option value="1">1</option>
</select>
<a target="ratingscales" title="Scales" href="http://www.junaid.name/course/scales.php?id=3&list=true" onClick="return openpopup('/course/scales.php?id=3&amp;list=true', 'ratingscales', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);"><img align="absmiddle" border="0" height="17" width="22" alt="Scales" src="http://www.junaid.name/pix/help.gif" /></a>
    </td>
</tr>
<tr valign=top>
    <td align=right><p><b>Maximum size:</b></p></td>
      <td><select name="maxbytes" >
   <option value="2097152" selected="true">2Mb</option>
   <option value="1048576">1Mb</option>
   <option value="512000">500Kb</option>
   <option value="102400">100Kb</option>
   <option value="51200">50Kb</option>
   <option value="10240">10Kb</option>
</select>
      </td>
</tr>
<tr valign=top>
    <td align=right><p><b>Due date:</b></td>
    <td><select name="dueday" >
   <option value="1">1</option>
   <option value="2">2</option>
   <option value="3" selected="true">3</option>
   <option value="4">4</option>
   <option value="5">5</option>
   <option value="6">6</option>
   <option value="7">7</option>
   <option value="8">8</option>
   <option value="9">9</option>
   <option value="10">10</option>
   <option value="11">11</option>
   <option value="12">12</option>
   <option value="13">13</option>
   <option value="14">14</option>
   <option value="15">15</option>
   <option value="16">16</option>
   <option value="17">17</option>
   <option value="18">18</option>
   <option value="19">19</option>
   <option value="20">20</option>
   <option value="21">21</option>
   <option value="22">22</option>
   <option value="23">23</option>
   <option value="24">24</option>
   <option value="25">25</option>
   <option value="26">26</option>
   <option value="27">27</option>
   <option value="28">28</option>
   <option value="29">29</option>
   <option value="30">30</option>
   <option value="31">31</option>
</select>
<select name="duemonth" >
   <option value="1">January</option>
   <option value="2">February</option>
   <option value="3">March</option>
   <option value="4" selected="true">April</option>
   <option value="5">May</option>
   <option value="6">June</option>
   <option value="7">July</option>
   <option value="8">August</option>
   <option value="9">September</option>
   <option value="10">October</option>
   <option value="11">November</option>
   <option value="12">December</option>
</select>
<select name="dueyear" >
   <option value="2000">2000</option>
   <option value="2001">2001</option>
   <option value="2002">2002</option>
   <option value="2003">2003</option>
   <option value="2004" selected="true">2004</option>
   <option value="2005">2005</option>
   <option value="2006">2006</option>
   <option value="2007">2007</option>
   <option value="2008">2008</option>
   <option value="2009">2009</option>
   <option value="2010">2010</option>
</select>
&nbsp;-&nbsp;<select name="duehour" >
   <option value="0">00</option>
   <option value="1">01</option>
   <option value="2">02</option>
   <option value="3">03</option>
   <option value="4">04</option>
   <option value="5">05</option>
   <option value="6">06</option>
   <option value="7">07</option>
   <option value="8">08</option>
   <option value="9">09</option>
   <option value="10">10</option>
   <option value="11">11</option>
   <option value="12">12</option>
   <option value="13">13</option>
   <option value="14">14</option>
   <option value="15">15</option>
   <option value="16">16</option>
   <option value="17">17</option>
   <option value="18">18</option>
   <option value="19">19</option>
   <option value="20">20</option>
   <option value="21">21</option>
   <option value="22" selected="true">22</option>
   <option value="23">23</option>
</select>
<select name="dueminute" >
   <option value="0" selected="true">00</option>
   <option value="5">05</option>
   <option value="10">10</option>
   <option value="15">15</option>
   <option value="20">20</option>
   <option value="25">25</option>
   <option value="30">30</option>
   <option value="35">35</option>
   <option value="40">40</option>
   <option value="45">45</option>
   <option value="50">50</option>
   <option value="55">55</option>
</select>
</td>
</tr>
</table>
<br />
<center>
<input type="hidden" name=course     value="3">
<input type="hidden" name=coursemodule  value="149">
<input type="hidden" name=section       value="15">
<input type="hidden" name=module     value="1">
<input type="hidden" name=modulename value="assignment">
<input type="hidden" name=instance   value="11">
<input type="hidden" name=mode       value="update">
<input type="submit" value="Save changes">
<input type="submit" name=cancel value="Cancel">
</center>
</form>

<script language="javascript" type="text/javascript" defer="1">
HTMLArea.replace('description')</script>
</td></tr></table>
<!-- START OF FOOTER -->
<center>
<hr size="1" noshade="noshade" />
<p class="logininfo">You are logged in as <a target="_top" href="http://www.junaid.name/user/view.php?id=105&course=3">Zareen Alamgir</a>  (<a target="_top" href="http://www.junaid.name/login/logout.php">Logout</a>)</p>
<p class="homelink"><a target="_top" href="http://www.junaid.name/course/view.php?id=3">OOP Spring04</a></p>
</center>
</body>
</html>

<!-- ZoneLabs Popup Blocking Insertion -->
<script language='javascript'>postamble();</script>
I not surprised that it does not work.  It is exploiting all kinds of holes.  To get it to work:

1.  If you have a popup blocker; disable it.
2.  Go into the advanced security options and enable everything.  I do not recommend you go on the Internet with the same setting you need to run this editor, because you will get hammered by malware.

You can expect this piece to fail on more computers as built security is made tighter with each release.  I'm surprised it would run at all on Mozilla based computers.

It may still have a problem on some computers if everything including the page that opens this one are not all in the same server domain, and there is no way around that. Everything referenced from the client has to be in the same domain.

There is still a possbility that there are bugs in the VB code, but I'm not a VB programmer, so I won't be able to help if that turns out to be the case.

Cd&
Avatar of zareeo

ASKER

well may be its the problem with the security settings

this editor use to work on my PC few days back -------- but now it donot

the only change i have done is that i have uninstalled the Norton internet security and installed the Mcfee and i think it is not letting the actiove x control on this page to work

WHat do u maen by advanced security ???? in IE or in Mcfee
Avatar of zareeo

ASKER

Can u tell me a way to disable the html editor and work on simple text area
because when i boot into my window2000 --- i only see the txtarea no editor and i can write on it
I believe COBOLdinosaur was talking about the settings with IE - tools - internet options - security - "default" level.  Perhaps also try from IE - tools - Reset Web Settings then close IE and reopen to test.

WindowsUpdate to be sure you've got what you need in terms of updates for Windows 2000 as well as IE.  

Perhaps, if Visual Basic is installed, you need service packs for that; found some known issues on text box problems; more here.
http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp4/vbfixes.aspx
If anyone sees me offering zareeo help in the future please remind me of this thread so I will no not to waste my time trying to get their trash code to work.

Cd&
BUMMER!  To say the least.  "C" grades bite, but points at any level if not deserved chew even harder.

":0(

Feel free to take these points away from me.

Thanks,
Asta
I would just as soon it gets deleted.  Does anyone object to that?

Cd&
ASKER CERTIFIED SOLUTION
Avatar of zareeo
zareeo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sounds good to me, I'd prefer not to have these points and definitely prefer not to carry "C" grades.  Bottom line for me is if I didn't help and add value, don't want any points.  I also very much appreciate the feedback zareeo and look forward to helping you in the future, if I can.  My goal is, like COBOLdinosaur, to provide "A" level assistance and guidance in all that we do.

I'm sorry I could not help resolve this item for you.

Best wishes,
Asta