Toon posts:

[js] WYSIWYG Iframe inhoud ophalen

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo personen,

Ik ben een editor aan het maken volgens het voorbeeld van:

http://www.devarticles.co...SIWYG-HTML-Editor-Part-1/

Maar nu wil ik de inhoud van het iframe opslaan in een variable. Hoe moet ik dat doen?

Alvast bedankt,
Joost + Ruub

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 19-05 21:24

NMe

Quia Ego Sic Dico.

InnerHTML? Of via het document object model?

[ Voor 63% gewijzigd door NMe op 05-09-2004 14:53 ]

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • Michali
  • Registratie: Juli 2002
  • Laatst online: 22-03 18:12
code:
1
iframe_contents = document.getElementById('iframe_id').contentWindow.document.getElementsByTagName('body').item(0).innerHTML;

Zo, die is er uit :P

Noushka's Magnificent Dream | Unity


Verwijderd

Topicstarter
bedankt, ik ga het even proberen :) _/-\o_