0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

how do I embed html and javascript

    • 's Avatar

    how do I embed html and javascript

    Posted 16 years 9 months ago
    • I have javascript applets which I used to have on my old html site.
      I have tried to add them using custompages with no luck as their instructions are as vague as the dead sea scrolls.
      They are things like calculators, converters.

      I've tried adding them to content and static pages but the editor seems to strip the code so it's unworkable. (similar to when I add a swf)

      I also tried com_php which again is vague with it's instructions

      All I want to do is add these applets so they aren't a module but where a component or content would be.
      Thanx in advance for any help. I have searched but all reference to embedding javascript is either not the same as I want or to put it in a module position.

      thanx again


      I have to go now get the wife drunk so I can get here to renew my membership here. She hates that I change the template of my site every month because rockettheme keep inventing awesome new ones.
    • Mariela Vasquez's Avatar

    Re: how do I embed html and javascript

    Posted 16 years 9 months ago
    • 's Avatar

    Re: how do I embed html and javascript

    Posted 16 years 9 months ago
    • If I understand the extention you linked to it adds the html into a module.
      I want to add it to the content/cmponent area. In the middle of the template like if it was a component.

      As for turning off the editor I've never tried nor do I know how to do that.
      I'll research that now and try
    • Mariela Vasquez's Avatar

    Re: how do I embed html and javascript

    Posted 16 years 9 months ago
    • if you want add html to content, you should turn off the editor, that always work for me
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: how do I embed html and javascript

    Posted 16 years 9 months ago
    • I had the same problem trying to embed some java script in Articles.

      After a day or so of head banging, I couldn't get it to work with the WYSIWYG editor on or off.

      The 'solution' I came up with was to simply use a Wrapper.

      Actually works like a charm!

      Note: Try JCE (Joomla Content Editor) for a WYSIWYG editor.
    • Thanks,
      jim
    • 's Avatar

    Re: how do I embed html and javascript

    Posted 16 years 9 months ago
    • hmmm...in the wrapper...

      I hadn't thought of that....

      I'll give that a go

      thanks JEM
      will take the advice re JCE too

      thanx Mariela too!
  • Re: how do I embed html and javascript

    Posted 14 years 11 months ago
    • Newbie hopping on to an old thread here. I've tried all the tricks to get javascript to work on my site... turning the editor off, using Jumi, using the JCE editor, using Sourcerer... have basically gotten nowhere. Trying to get an interactive radar page to work here:

      www.dsmweather.com/index.php?option=com_...icle&id=81&Itemid=27

      ...as you can see, all that shows up is "interactive radar". Code is below... any advice would be appreciated...

      <p>Interactive Radar</p>
      <script src=" maps.google.com/maps?file=api&v=2&am...MoTrcMQp1L_y1yhTWt4-

      EgN_xnZmcq5oV9jqpxjWVqQ"></script>
      <script src=" mesh.hamweather.net/wxxxxxxxxxxxxx/js/wn-map-basic.js "></script>
      <div id="wxnmap"></div>
      <!-- #content {width: 300px;height: 255px;margin: 0;} #wnmap { width: 300px;height: 255px;} -->
      <script type="text/javascript">// <![CDATA[
      var mapClickURL= ' mapcenter.hamweather.com/interactive/?lat={LAT}&lon={LON }';

      $(document).ready(function () {
      var opts = {
      map: {
      start: {
      lat: 41.58,
      lon: -93.62,

      zoom: 7
      },
      zoom: {
      enableDoubleClickZoom: false
      },
      events: {
      onMapDblClick: function(overlay, point, overlaylatlng, mapApp) {
      var myURL = mapClickURL;

      if (point) {
      myURL = myURL.replace(/\{LAT\}/, point.lat());
      myURL = myURL.replace(/\{LON\}/, point.lng());
      }
      location.href= myURL;

      }
      }
      }

      };

      $('#wnmap').wnmapbasic(opts);
      });
      // ]]></script>
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: how do I embed html and javascript

    Posted 14 years 11 months ago
    • Tad Davis wrote:
      Newbie hopping on to an old thread here.

      I suggest starting a new thread in the forum for the template you are using.
    • Thanks,
      jim

Time to create page: 0.092 seconds