Nevermind, I got it!!  100% self contained cross browser
non-proprietery rich edit control!  This line of code did the trick:


document.getElementById('hidden text area').form.addEventListener(
  "submit", 
  function(evt) 
  { 
    onRicheditBlur('rich edit control name'); 
  }, 
  true
);


[EMAIL PROTECTED] (Bryan Murphy) wrote in message news:<[EMAIL PROTECTED]>...
> Hey guys,
> 
> I've written a little php function that uses the IE DHTML control for
> Internet Explorer, and I'm attempting to extend it so that it uses a
> contentEditable iframe with Mozilla 1.3 and greater.
> 
> I've got the iframe working great, but the problem is I'm having
> trouble extracting the value from the iframe.  Typically, what I do
> with Internet Explorer is I add an onBlur event handler to the WYSIWYG
> object that copies the value into a hidden text area.  This allows me
> to build a 100% self contained control that doesn't require anything
> other than a SINGLE reference within your php document (example for
> the curious):
> 
>   <? richedit('name', 'attr="value" style="width:100%;"'); ?>
> 
> Now, my problem is, with Mozilla it appears that the iframe doesn't
> support the onblur event.  I've also tried setting onblur for the
> iframe contentWindow property using blur, onblur, and onBlur to no
> avail.  Example:
> 
>   document.getElementById('iframeid').contentWindow.blur =
> "onBlur();";
> 
> Needless to say I'm a bit stuck.  I would MUCH prefer to not have any
> javascript code for this control clutter up the rest of my page.  To
> do that, I need some way to extract the value of the rich edit control
> and copy it into a hidden form field.  I don't want to do it when the
> form is submitted because this would require inserting javascript
> outside of the richedit() function reference in my php code.
> 
> Any ideas?
> 
> Bryan

Reply via email to