Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Can't get custom javascript to work or am I just stupid? :)

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Here is the thing. I am trying to implement this solution for responsive tables: zurb.com/playground/responsive-tables

I put the files in the on my web server and I have put this code in the template settings->Injection in before </head>:
<link type="text/css" media="screen" rel="stylesheet" href="/styles/responsive-tables.css" />
<script1 type="text/javascript" src="/scripts/responsive-tables.js"></script1>

*script1 is actually script, but forum doesn't allow me to post it like that.

When I open a webpage where is this supposed work, nothing happens. I can see in web inspector that the css and the script is loaded, but they are not working.

I pretty new to web development, so I am guessing it is probably something trivial, but I can not figure out what.

The webpage that I am trying to implement this to, is:

jarusica.lin33.host25.com/index.php/charter/charter-cjenik
  • jarusica's Avatar
  • jarusica
  • 12 Month Developer
  • 20 posts
  • Karma: 0
The administrator has disabled public write access.
The paths and the template are working

jarusica.lin33.host25.com/scripts/responsive-tables.js
jarusica.lin33.host25.com/styles/responsive-tables.css

problem is this
Uncaught TypeError: Object #<HTMLDocument> has no method 'ready' responsive-tables.js:1

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
So that means that the problem is in script?

EDIT: It appears that I solved it. I followed this thread: stackoverflow.com/questions/10807200/jquery-uncaught-typeerror-property-of-object-object-window-is-not-a-funct
  • jarusica's Avatar
  • jarusica
  • 12 Month Developer
  • 20 posts
  • Karma: 0
Last Edit: 10 years 2 months ago by jarusica.
The administrator has disabled public write access.
ah cool that great :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers