Jump to content

Archived

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

getabc

javascript kills

Recommended Posts

getabc    0
getabc

Hello,

 

We're trying to use a third party JavaScript to pull display client ratings on our PageLines website.

 

Javascript located at http://dev.milanohair.com/wp-includes/js/shortcuts.js

 

When we enable the JavaScript in the header our feature and quickslider stops working. The creators of the JavaScript claim there is nothing wrong with their application. 

 

Website : http://dev.milanohair.com/

 

Any help will be much appreciated.

 

Thank!

 

Andrew

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi,

 

There may not be anything wrong with their product for it to conflict with a later or different version PageLines may use.

 

Thy adding this code to Dashboard > PageLines > Site Options > Custom Code to see if it fixes the slider issues:

#page #feature-area {
overflow: hidden;
}

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
getabc    0
getabc

added with same result :( no slider

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

One thing to try is to disable all non-pagelines plugins and see if the conflict is coming from a plugin vs JS. 

 

it is worth a try. if you do find something then re-enable the plugins one by one to see which plugin is the culprit. 

 

also if you can go to Pagelines > site options > advanced and enable Pagelines debug please we will take a look there 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
getabc    0
getabc

Hi Martin,

 

I disabled all the plugins and my slider is still not working - I have left it disabled at the moment.

 

Pagelines debug has been enabled :)

 

Last thing I need to complete before getting the site live.

 

Thanks,

 

Andrew

Share this post


Link to post
Share on other sites
Rob    547
Rob

Andrew, as long as you keep the conflicting javascript, there will be a problem with any section of PageLines or other plugins, seeking to use the default javascript we provide.

 

Remove the problematic javascript from your site. I'd recommend contacting the plugin author, or simply replacing the plugin that needs the erroneous code.

 

Unfortunately, we cannot re-write the code of a third-party product, nor re-write our javascript to accommodate every plugin that doesn't use the latest code used by WordPress (which is what we're using).


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mundocaco+    9
mundocaco

Rob I have a question about javascript error on the site of my client, please see below:

 

TypeError: Cannot set property 'w' of undefined
#11 http://impacto-web.es/i/wp-content/themes/dms/js/script.resize.js?ver=1.1.4:9:68
#10 http://impacto-web.es/i/wp-content/themes/dms/js/script.resize.js?ver=1.1.4:9:550 m()
#9 http://impacto-web.es/i/wp-includes/js/jquery/jquery.js?ver=1.10.2:4:14129 x.event.dispatch()

 

...

 

I use dms version 1.1.4 and base theme for this template.

I think this error make some other parts of the website no work properly.

 

Do you have any idea?

Thanks!

 

 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

mundocaco DMS when installed without any third party custom scripts/code or plugins has no such error. Therefore, its most likely you have a plugin causing this error. I recommend you remove all custom code/scripts you may have added and disable all active plugins except for DMS Pro Tools and see if this resolves your error.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mundocaco+    9
mundocaco

Danny I'll do this! thank a lot. :)

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem, keep us posted.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • 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'' ] }); });
    • wesleymusgrove
      By wesleymusgrove
      I'm trying to execute some simple JavaScript inline in the style.less file of my child theme.  But it causes some LESS compiler error and completely breaks the DMS editor so I can't edit anything or use the toolbar on the frontend.
      @all-background-colors: "#D09EC8,#F2DD8B,#84e0cd,#F3904E"; @background-color: color(~`@{all-background-colors}.split(',')[Math.floor(Math.random()*@{all-background-colors}.split(',').length)]`); body { background: @background-color; } On http://less2css.org/, this snippet works and randomly changes the body's background to 1 of the 4 colors in @all-background-colors.
      Even something as simple as this anonymous function breaks the compiler:
      @color: ~`(function(){ return "red"; })()`; body { background: @color; } The only way to fix the DMS editor is to remove the JS from my style.less file, and then edit and save the LESS fallback section in the dashboard.
      I tried setting PL_LESS_DEV in my wp-config.php according to http://www.pagelinestheme.com/dms-custom-less-tips/, but it doesn't clear the cache every page refresh like it's supposed to.
      define('PL_LESS_DEV',true); Is it possible to execute this kind of JavaScript in the style.less file of a DMS child theme?
    • jfsturtz
      By jfsturtz
      Hi again.
       
      I'm aspiring to place an image on a page with a MediaBox, then define an HTML image map (<map>, <area> ...), then define an HTML <canvas> over it, then draw on the canvas with custom javascript.
       
      Before I spring $25 -- is Hooker the right guy for this job?  I know you can't support custom script; I'm fine with that -- I've got it all developed and working in JSFiddle.  I just want to know if Hooker is the right (or at least a workable) way to integrate it into my DMS2 site.
       
      Thanks.
       
      /John
×