We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Append JavaScript to xml template in plugin?

Home Forums Programming Append JavaScript to xml template in plugin?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #40795

    In a plugin,
    I have a lengthy template setup in xml.
    I want to do something that I’ve found that only the JavaScript method of writing the template can do.

    Is there a way a can still append to my xml template via JavaScript?



    from – https://www.soft8soft.com/docs/manual/en/puzzles/Plugins.html

    This approach is more flexible but requires knowledge of the corresponding APIs. It’s especially useful if you need to do some non-trivial setup that can’t be achieved via the <template> element. Moreover, you can use both <template> and template() simultaneously.

    I’m finding this is not the case.. at least in the ways I’ve tried.

    how would one go and combine the two ways?

    any way i could see an example of combining XML and JS template methods? thanks.

    EDIT: actually huh .. it just worked now for some reason.
    however, the items in the JS template code come up on the plugin last in order. (even though I have the JS template code BEFORE the XML.)

    is there any way to control which gets processed/read first, or any way to place specific things in order according to whether they’re xml/js?

    thanks. :good:

    Edit: solved… Just using JS fur template now. :good:

    • This reply was modified 1 month, 2 weeks ago by GlifTek.
    • This reply was modified 1 month, 1 week ago by GlifTek.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.