Inactive User
12 years agoJquery in endpoint
This might be a dumb question but I can't seem to use Lithium's jQuery in an endpoint. For instance, I'm trying to create a javascript file with some common js functions we're using in an endpoint bu...
Can you give us an example of the code you are putting in the end point?
Unlike custom components, custom end points will only return whatever your code outputs - it won't have a HTML header, or includes.This gives you the freedom to output whatever you like (HTML, XML, JSON, ...) but if you want to use JavaScript, you will need to output in HTML, and add the reference to the jQuery library yourself (via the standard <script> tag)..