Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 19th, 2004, 11:43 AM
lavinie2001 lavinie2001 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Galway, Ireland
Posts: 6 lavinie2001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 sec
Reputation Power: 0
document.getElementById() problems in IE

Hi there,

I am trying to inject some text into an iframe (edit) using the javascript.

I have been using:

document.getElementById('edit').contentWindow.docu ment.body.innerHTML = mytext;

which works ok with Mozzila but not for IE.
so I've tried

document.getElementById('edit').value() = mytext

but it still doesn't work.

Could anyone help me with this?

Thanks

Reply With Quote
  #2  
Old July 19th, 2004, 06:46 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: document.getElementById() problems in IE

if you are amking a cross-browser content-editable WYSIWYG editor, i suggest you use htmlArea..

it is open source, so you can use it, or learn from it..

(or at least, you can see how to read/write from/to editor in both IE and mozilla. it's a bit different, but i don't know without looking)

Reply With Quote
  #3  
Old July 20th, 2004, 07:24 AM
lavinie2001 lavinie2001 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Galway, Ireland
Posts: 6 lavinie2001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 sec
Reputation Power: 0
RE: document.getElementById() problems in IE

Thanks

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > document.getElementById() prtoblems in IE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT