|
Thanks for the answer but, actually I am writing in the Iframe therefore there is no other body element that I can look into.
Actually, I am trying to write an editor. It consists of an iframe with the content editable property. and i have a button which gets the text when clicked.
So I have to access the iframe's content directly.
Moreover, it works fine with the IE when I use div for the text area. I can not make it work with Firefox...
|
|
|
|
|
But an iframe normally doesn't have any content at all, it displays a page. According to the MSDN documentation on iframes, it doesn't even have the contenteditable property. It doesn't have the innerHTML property either.
If you are using the iframe as it was some other tag, you will of course have problems with it.
---
b { font-weight: normal; }
|
|
|
|
|
However an iframe can be used for content editing. And in firefox it is the only way to do it, i suppose...
I finally solved the problem of retrieving the data:
it can be accessed via contentDocument.body.innerHTML
|
|
|
|
|
Isn't that exactly what I first suggested?
---
b { font-weight: normal; }
|
|
|
|
|
Yes it is, I restated it for the records
thanks in advance...
|
|
|
|
|
Hi all,
How can I trigger the "enter" key press event programmatically in javascript?
Thanks
Tony
|
|
|
|
|
I want to develop a page which will search the pages of my web site throgh meta tag. i cannot understand how i get data from meta tag into my apllication that is asp/vbscript.
please help me
|
|
|
|
|
Use FileSystemObject to iterate and open the files. Use a regular expression to easily extract the contents of the meta tag from the source.
(I assume that the meta tags are not dynamically created, in that case you would have to use the xmlhttp component the request the pages from the server.)
---
b { font-weight: normal; }
|
|
|
|
|
Hey all, Probably a easy question, but doing my head in. Is there a function that serves the same purpose javascript document.write but in c# so i can use it in the code behind class? or is there a way to use the document.write in the codebeinf class.
|
|
|
|
|
Is document.write the same as response.write ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks for the quick response Christian,
response.write will work, but the problem is that it writes it to the aspx page where i need to write the html to the a usercontrol which sit within a aspx page. Any idea how i can achieve this? basically i want to add html dynamicaly to the user control and not the aspx page.
Thanks inadvance
|
|
|
|
|
wiseylondon wrote:
i need to write the html to the a usercontrol which sit within a aspx page
Create a label control, and write the HTML to that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks, Christian
Your a King!
|
|
|
|
|
Hello, all,
In my current project, I need to display a control at the upper-right corner of the browser window. But when the vertical scrollbar is showing up in Netscape, that control will be displayed over the scrollbar, which is not desirable.
I'd like to know whether there is a way to detect whether the vertical scrollbar is showing up or not, so that I can move the control a little bit when scrollbar is displayed.
I searched all day online and tried all kinds of method to do it, but none of them works. I am using javascript in the current project.
Thanks a lot in advance.
Bin
|
|
|
|
|
hi
how can i transmit audio from a microphone in a asp.net page, like a sort of voice-chat?
thanks
|
|
|
|
|
Please help?
Let me explain the senario. I have 2 Dropdownlists. The first one has entries from SQL like Fruit and Vegetables. The second has the sub catagories like Apples Pears and under vegetables we have cabage and carrots.
What I would like to know is if I select Fruit in the first DropdownList, the second should be populated with all the fruit and visa versa?
Thank you!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
This is a place where You should look in for AJAX.
Its ascynhronous Java + XML.
So check it out & have fun.
HappY Coding
Gokul
|
|
|
|
|
?
Where do I check it out...?
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
|
Hi all!
I store my picture in Access 2003 by "OLE Object".
I am coding a ASP page for loading and display those pictures. But I am not know any way which display those pictures in my ASP page.
Please, give me a way. Thanks very much.
|
|
|
|
|
Create a page for fetching an image from the database, and use that page as you would an image file:
<img src="FetchImage.asp?id=42">
Use Response.BinaryWrite to output the image data that you fetch from the database.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you!
I created the script alow:
<%<br />
response.Expires = 0<br />
response.Buffer = TRUE<br />
response.Clear<br />
<br />
Dim rsImage<br />
Dim intImageID <br />
Dim conn<br />
<br />
intImageID = Clng(Request.QueryString("ImageID"))<br />
<br />
<br />
Dim strSQL<br />
<br />
strSQL = "SELECT * FROM Images WHERE id_image = " & intImageID <br />
Set rsImage = Server.CreateObject("ADODB.Recordset")<br />
Set conn = Server.CreateObject("ADODB.Connection")<br />
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("Database/BSGWebsite.mdb")<br />
rsImage.Open strSQL, conn<br />
<br />
Response.ContentType = "image/jpeg"<br />
<br />
Response.BinaryWrite rsImage("image")<br />
<br />
response.End<br />
rsImage.Close<br />
Set rsImage = Nothing <br />
%>
but I get a error. This error is "The image http://localhost/BSGWebsite/myImageSource.asp?ImageID=3” cannot be displayed, because it contains errors."
I tested and saw The error is happened at "Response.ContentType = "image/jpeg"" line.
I using the "Mozilla FireFox" browser.
Please, advice me. Thanks
-- modified at 5:07 Monday 26th September, 2005
|
|
|
|
|
Browse to the page instead of showing it like an image, so that you see the error message on the page.
---
b { font-weight: normal; }
|
|
|
|
|
hi,
i want to run the avi,dat file on the web
pls help me
ok after this year 2004
|
|
|
|
|