Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1570702.W5tESRjSNo@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 16 Feb 2014 03:09:37 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 32 NNTP-Posting-Date: 16 Feb 2014 03:09:38 CET NNTP-Posting-Host: 19e95143.newsspool1.arcor-online.net X-Trace: DXC=a\mBFgRd5Q\aoembcbF;DQic==]BZ:af^4Fo<]lROoRQnkgeX?EC@@P9]aE[9kcEZ]DZm8W4\YJN\YUVHKH;GI^WnQi[[ZMHf2PY\0kk^g1[aT X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:23105 justaguy wrote: > I have an iframe with id of "frameID" and I'd like to insert something > into this iframe at its current cursor position (the iframe has some > content already). So, it looks like this: > > The js function code looks like this. > > function insertAtCursorPos(stuff) { > var f = document.getElementById('frameID'); ^^^^^^^ ID mismatch > var fc = (f.contentDocument || f.contentWindow.document); > if (fc) { > fc.body.innerHTML = Ed.body.innerHTML + ' ' + stuff; What is “Ed”? > } > > I guess […] Please don't. Use a debugger instead, finally. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.