Jump to content

Using JavaScritp in pages or blocks

Featured Replies

Posted

Hello everyone..

I have a page developed with html, css and js, which I can see correctly if I publish it as a web page http://lek-go.cl/foro/home/index.html without wanting to integrate this development into pages or blocks javascript actions do not succeed that these work well, http://www.lek-go.cl/foro/index.php?/lek-go/

Any suggestions to use javascript in pages or blocks?

Right view

130859167_ScreenShot2018-07-01at19_37_39.thumb.png.ef57d3afb5052bc8c2aacca26d353d46.png

 

Incorrect view

1716290062_ScreenShot2018-07-01at19_43_58.thumb.png.8311b0c409c906aa797bd2f6d34aaad7.png

Edited by Fred Krugger

Hello.

Maybe this?
cpjs.thumb.png.689ac2aae1a4185a1756218786946a11.png

Themes -> Edit -> Custom (tab)

I don't know if this will cause any impact on your page load. @Adlago is the expert.

  • Author

I managed to create custom css and js at the template level of the pages. css designs work perfectly, but not javascript.

ACP-> Pages ->Templates -> New css and js

1443533825_ScreenShot2018-07-02at13_57_10.thumb.png.ecd5c3afaa571d283badf7c0667bd750.png

Edited by Fred Krugger

  • Community Expert

The process is correct and Heosforo’s comment is important as well. 

Check in the developer console what is going wrong. There might be conflicts if you try embed full frameworks or there might be other problems. 

For example, those file are called but missing:

1454128641_Bildschirmfoto2018-07-02um20_05_03.thumb.png.0430e535ae03ecb8e7b0d686213ef19d.png

Edited by opentype

  • Author

Hello to all ...

I have managed to find the solution to this problem:

1) It is not necessary to upload the jquery JS to the custom codes, the IPS interprets them perfectly.

2) The execution of jquery code must be set in order, that is, at the end of the chain of codes (I hope this explanation is understood)

Now the code works perfectly.

Thanks and regards.

Archived

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

Recently Browsing 0

  • No registered users viewing this page.