i have created an html editor using html and javascript. i have used iframe here. i want to store this iframe content to my database in asp.net with oracle as backend.when i use iframe.innertext ..but its not working…please anyone can help me ??
@gil_davisOct 31.2007 — #The IFRAME is a window and has a DOM just like any window. It is a very bad idea to use a reserved word (iframe) as an identifier. However, tryiframe.document.getElementsByTagName["body"][0].innerHTMLIf that doesn't work, tell us how you are putting the data into the IFRAME.
BTW, "innerText" is an IE only property that you should avoid.
@niranjanaauthorOct 31.2007 — #i will explain what i am doing actually...
i am creating a blog like application in asp.net with vb.net as code behind.
there, for posting blogs i want to create an html editor . i have successfully created the editor using html and javascript. but the problem comes when i was about to insert the data from an iframe to oracle table. in code behind i have used the code like this...
dim cn as new oledbconnection("provider=msdaora.1;user id=scott;password=tiger;data source=ora")
dim s as string
s="insert into blog values(' " +iview.innertext+ " ')
dim cmd as new oledbcommand(s,cn)
cmd.executenonquery()
blog->table name
iview->iframe id(i have made iframe as server control using runat=server)
but whenever i run the application empty value is inserted into the database