Forum Discussion

mspii411's avatar
12 years ago

How do we upload our own javascript file?

How do we upload our own javascript js file to be used by a custom component without having to copy the full code of the js file into a new endpoint?

5 Replies

  • Further details.

    For example, how do we tell Lithium to include another js file in the following code front end code?

    LITHIUM.RenderedScripts = [
    "jquery.function-utils-1.0.js",
    "jquery.delayToggle-1.0.js",
    "Components.js",
    "jquery.css-data-1.0.js",
    "jquery.js",
    "jquery.ui.core.js",
    "jquery.ui.resizable.js",
    "jquery.scrollTo.js",
    "jquery.masonry-2.1.03.js",
    "jquery.ui.mouse.js",
    "Video.js",
    "CustomEvent.js",
    "json2.js",
    "jquery.clone-position-1.0.js",
    "jquery.history.js",
    "Lithium.js",
    "control.js",
    "Tooltip.js",
    "jquery.blockui.js",
    "jquery.ui.dialog.js",
    "jquery.autocomplete.js",
    "jquery.dotdotdot-1.5.0.js",
    "jquery.iframe-transport.js",
    "SearchForm.js",
    "jquery.iframe-shim-1.0.js",
    "Sandbox.js",
    "jquery.fileupload.js",
    "FacebookCommon.js",
    "jquery.lithium-selector-extensions.js",
    "jquery.appear-1.1.1.js",
    "FormActions.js",
    "AjaxFeedback.js",
    "Forms.js",
    "Resize.js",
    "jquery.ui.widget.js",
    "AutoComplete.js",
    "SpoilerToggle.js",
    "AC_RunActiveContent.js",
    "Text.js",
    "Loader.js",
    "SearchAutoCompleteToggle.js",
    "jquery.hoverIntent-r6.js",
    "Events.js",
    "jquery.ui.position.js",
    "Cache.js",
    "jquery.effects.core.js",
    "jquery.tools.tooltip-1.2.5.js",
    "jquery.js",
    "jquery.ajax-cache-response-1.0.js",
    "jquery.tmpl-1.1.1.js",
    "ForceLithiumJQuery.js",
    "Namespace.js",
    "jquery.viewport-1.0.js",
    "DeferredImages.js",
    "jquery.ui.draggable.js",
    "jquery.position-toggle-1.0.js",
    "AjaxSupport.js",
    "jquery.effects.slide.js",
    "ElementMethods.js",
    "NoConflict.js"
    ];// -->
  • VenkS's avatar
    VenkS
    Lithium Alumni (Retired)
    12 years ago
    Unfortunately there is no clean way to do this at the moment, however I have filed an improvement issue, thank you for the suggestion!
  • VenkS's avatar
    VenkS
    Lithium Alumni (Retired)
    12 years ago

    You learn something new everyday :smileyhappy:, thanks Claudius!

  • Oups. Sorry. for not referring to your post. I kept the window open to reply half of the day so I missed you replied inbetween. But it's a good sign that Lithium can even supply its employees ;)