Fire Event

R

reflex

Hi,
i am making plugin for wysiwyg editor. I need fire event inside *.htc
file, when hyperlink is inserted throught editor (only IE method
execCommand).

Thx for help
reflex
 
R

reflex

code looks like:
link_color.htc
<PUBLIC:COMPONENT tagName="link_color" lightWeight=true>
<PUBLIC:attach event="ondocumentready" handler="cColor" />
<PUBLIC:attach event="onselectstart" handler="cColor2" />
</PUBLIC:COMPONENT>

<SCRIPT language="JScript">

function cColor() {
par = element.parentNode;
color = par.currentStyle.color;
element.style.color = color;
}
</SCRIPT>

Pls dont ask me why it is :]

I need use function "ondocumentready" and "??" (when link element is
inserted in the page)
 
R

reflex

SOLVED:

<PUBLIC:attach event="ondocumentready" handler="cColor()" />
<PUBLIC:attach event="oncontentready" onevent="cColor()" />
<PUBLIC:attach event="onpropertychange" onevent="cColor()" />

works fine, now i just have to find event when some function wanna
change element attribute q(o_O)p

I hate IE.. this is easy solved in CSS by "inherit" (or inherit !
important) but its mozzila, opera only
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,427
Latest member
HildredDic

Latest Threads

Top