0 Replies Latest reply on Jun 17, 2009 7:44 AM by jaand96

    Dynamically load javascript

      Hi

      I have a page with a modal panel on it. In the panel there is a map (Google maps + extra layers).

      The modalpanel is opened by attaching a componentControl to a commandButton.

      Loading the javascripts for map takes quite some time and most of the time users don't use it. So I would like to load the map scripts
      when the modal panel button is clicked/panel shown rather than when the page loads.

      This might not be a strictly richfaces question but I would appreciate any input.

      thanks!