codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Very difficult DHTML:How to add css font class to table cells  csliu at 17:53 on Wednesday, October 08, 2003
 

Hi,

We use a HTML Editor, when highligt certain text, we can change its CSS format by DHTML, but when we select text in more than 1 table cells, it doesn't work and got "upspecified error", here is the code:

var whichPara = ctrlHTML.DOM.selection.createRange();
var selType=ctrlHTML.DOM.selection.type;

if(selType!="Control"){
if(whichPara!=null){
outString = addFontStyle(whichPara.htmlText,thisStyle);
whichPara.pasteHTML(outString);
}

I think that is because the table cells are read only for the pasteHTML, does any one knows how to solve this problem?

Thanks,


  Re: Very difficult DHTML:How to add css font class to table cells  Elain at 08:19 on Friday, November 12, 2010
 

I agree with you! I think DHTMLis very difficult, you can search about DHTML in Google, and you will get helpness!
--------------------------------------------
flash menu|
drop down menu|
flash decompiler mac








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: converting pst files from outlook to excel??
•  item to item recomender system
•  Re: Database Design
•  Re: Very difficult DHTML:How to add css font class to table cells
•  Re: error
•  Re: Logout Problem
•  Re: about disable form
•  Re: open excel file in html page
•  Re: Connection Problem help needed


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010