• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in using DHTML Object Model

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am generation HTML file on Web by using .htc file.

Now selecting the stylesheet available in the combo box and based on that CSS classes. I want to add this stylesheet in the head part of it. while for other tags I am not facing any problem as each and every control is inserted where my cursor is or in place of selection.

At most of the places we are using this code to put aur htm tags in the editor.

<code>
var oSelection = element.editor.DOM.selection;
var oTR = oSelection.createRange();
oTR.pasteHTML(hTag);
</code>

Please Provide me some help. I need it desperately.

Very very very thanks in advance.

Kumar Anupam
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic