• Hi,

    this code here will execute the code that was stored in the onclick of plugin[a]:

    Code
    <plugin ... onover="plugin[a].onclick()" />

    but the 'context' will be the still the one from the calling plugin.

    That means when directly accessing attributes in that onclick event, then the attributes from the calling plugin will be addressed and not the ones from the element where the onclick code is from.

    A way to get that working would be using full attribute names in onclick event.

    e.g. instead of:

    Code
    <plugin name="a" ... onclick="set(visible,true);"


    use such code:

    Code
    <plugin name="a" ... onclick="set(plugin[a].visible,true);"

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!