Keyword

Link script from local file on the server in items?

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 3 months ago - 7 years 3 months ago #163375 by Gorast
In the item I need to call a javascript so I have this line:
<script src="http://www.somesite.com.mk/WEBprostor/calc/js/rates.js" type="text/javascript"></script>

Any chance I can change ht tp://www.somesite.com.mk/ with something and to work?
Last edit: 7 years 3 months ago by Gorast.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #163381 by Krikor Boghossian
Replied by Krikor Boghossian on topic Link script from local file on the server in items?
Hello,

I am not sure I understand the issue.
Can you elaborate?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #163389 by william white
Replied by william white on topic Link script from local file on the server in items?
More code would definitely be useful from above and below the script tags.
Take a look at your item.php file and search for the script tag and look how it is used there and where the js file is stored
Usually the text tag is first and the src is last and the file is located in a dir on the server where other js files are kept
Before using the script tag you must close php if open and reopen the php tag after the /script tag

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum