Jump to content

Archived

This topic is now archived and is closed to further replies.

x69chen

Why my JavaScript code does not work

Recommended Posts

x69chen

I made one in the JSFiddle, here is the link http://jsfiddle.net/x69chen/H4t9U/5/.

 

I paste them in a content of the page, which is here http://suitup.club/wp/prototype-1/,

 

I tried to put the JS code inside the "<script>..</script>" inside the content, or in the HeadScripts Code in the Site Options in the Dashword,

but neither makes the JS code works,

 

Can anyone help me how to do it?

 

btw, does the PageLines still support Bootstrap 3? because I used the class "radio-inline" which found on the Bootstrap 3 website, but it seems does not work in my site.

 

Thank you

Share this post


Link to post
Share on other sites
batman

Hi x69chen

The PagelLines DMS2 support Boostrap 2.3.2, the Framework is a an old theme and this don´t have more support.

;)


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
x69chen

Hi x69chen

The PagelLines DMS2 support Boostrap 2.3.2, the Framework is a an old theme and this don´t have more support.

;)

Ok thanks batman, how about how to make JavaScript code works?

 

I am stilling waiting to add my JavaScript right now

Share this post


Link to post
Share on other sites
Danny

I am by no means a JS expert, but if your javscript isn't working, then you will need to debug it via your Browsers built-on dev tools. There will most likely be a JS error, which you can use to debug your issue.

 

You will probably also find this useful - http://codex.wordpress.org/Using_Javascript


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using a plugin called Speed Booster Pack to speed up the load time of michaelkummer.com. One of the plugin settings, Minimize HTML and JavaScript causes an error that I only get with Pagelines. With other themes, such as WordPress' Twenty Seventeen, I do not get that error.
      I have reproduced the problem on my staging site and if you look at the JavaScript console, you will see the following error:
      SyntaxError: Unexpected end of script
      Any clue what PageLines may be doing differently to be contributing to this issue? I contacted the plugin developer and they, of course, pointed me to the theme developer
      Thanks
      Michael
    • flourishdesignstudio
      By flourishdesignstudio+
      Hello,
      We are working on a site and the customers are complaining that the site loads too slowly. They contacted their host who mentioned that the Java Script is all loading at the beginning. Is it possible to delay the load of the less important Java Script until after the initial load to speed up the site? The goal is to load the page faster by minimizing the initial javascript calls.
      Are there any preferred plugins that you would recommend or does this end up causing excessive problems with plugins, etc.?
      Thanks for the help!
    • chamois_blanc
      By chamois_blanc+
      I am trying to clone a container on a page. It throws the following javascript error:
      function l(b, c, e, f) { var g = m.a.f.get(b, p); if (!c) { if (g) throw Error("You cannot apply bindings multiple times to the same element."); m.a.f.set(b, p, !0) } I would appreciate guidance and a fix. Thank you
    • Jeremiah
      By Jeremiah+
      Error: editing.js?ver=930684:5 Uncaught TypeError: Cannot read property 'getData' of undefined
      I have all of the plugins disabled and I still receive the error.
      Page Editor will not load on page.
       
    • oseehys
      By oseehys+
      Can someone give me a breakthrough out here?
      I have been on the media player for like 5 hours now yet it is still not displaying on my media box or the textbox,
      its a free media player on soundclound
      Great day ahead to the developers out here...
      am trying to install the Toneden media player https://www.toneden.io/player to display my songs on sound cloud, i followed everything on the doc, but obviuosly am missing something i did everything i can for 5 hours yet no breakthrough, am using the textbox as display.
      This is the html script i used, what am i missing here? see it below
        (function() { var script = document.createElement('script') script.type = 'text/javascript'; script.async = true; script.src = 'http://sd.toneden.io/production/toneden.loader.js' var entry = document.getElementsByTagName('script')[0]; entry.parentNode.insertBefore(script, entry); }()); ToneDenReady = window.ToneDenReady || []; ToneDenReady.push(function() { ToneDen.player.create({''enter code here'' dom: '#player', urls: [''https://soundcloud.com/reginaspektor'' ] }); });
×