Problem with recursive customtag


#1

This post was flagged by the community and is temporarily hidden.


#2

look at the generated html, is jQuery being loaded before the js the custom tag outputs?


#3

The jQuery is being loaded after the js the custom tag outputs.


#5

so you know what the problem is, you need to load jquery before you reference it.

there are a few different approaches, you can just always load jquery in your page section or add it dynamically, use a request variable in your custom tag to avoid loading it multiple times, the following two tags can help



#6

Thanks for the answer, I found the problem. The issue was that one of my custom tag files was named layout.cfm and was not being included by lucee. This file is the one that include jQuery properly. I just renamed it and everything worked.


#7

shouldn’t it have thrown an exception?