|
|
|
|
|
| | |
|
Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
document.selection.type = control |
From: |
farAo |
Date: |
5/16/2000 10:59:55 AM |
IP: |
194.228.207.127 |
I have this problem with my javascript code for html editor (using page in designMode = on). When I make selection
and type of this selection (property selection.type) is "text" or "none", I can make new object with createRange
function (new myRange = document.selection.createRange(); myRange.pasteHTML = "any new HTML code";). BUT if type of
selection is "control" (for image or table etc.) I cant access to this object with createRange and after it replace
html code with pasteHTML, but I need it. How I can replace code of this selected object? Can anyone help me??? |
|
|
|
|
|
|
|
|
|
|
|
|