Support Forums

No follow the path

This is a discussion on No follow the path within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I modified viewlisting.tpl to call tabs in javascript and the file. js reside in on the carpet Tabs. In ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 07-07-2009, 02:46 PM   #1
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 12
pipelin is on a distinguished road
Default No follow the path

Hi,

I modified viewlisting.tpl to call tabs in javascript and the file.js reside in on the carpet Tabs. In my computer works perfect, but when I upload the files to the server the function call no follow the path even in the same carpet.
To resolve this I put the file.js and the css into the viewlisting.tpl, but I dont feel Im doing the right thing.

This is the path I have:
<script type="text/javascript" src="/tabs/tabber.js"></script>

Some idea what is happening in the server?
pipelin is offline   Reply With Quote
Old 07-07-2009, 03:30 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I think you need to give a little more detail. Where is the tabs folder in relation to where it is being referenced.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 07-07-2009, 05:10 PM   #3
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 12
pipelin is on a distinguished road
Default

OK.

this is the whole path:
/templates/NuStyle3-Charcoal/tabs/tabber.js
pipelin is offline   Reply With Quote
Old 07-07-2009, 06:47 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Try it this way. Make a top level folder call it scripts. Put your file tabber.js into it. Then in layout put this

<script type="text/javascript" src="scripts/tabber.js"></script>

You will need to include this line in each layout file for each template. I think you also need to be very careful that you are not making javascript conflicts with jquery by the way. This may well be your issue.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the config file to change site path? sitewonders Technical Support 10 06-16-2009 11:55 AM
changing administration path Ghost Technical Support 2 05-22-2009 09:53 AM
Upgrade path ? Chad Technical Support 2 04-28-2007 01:49 AM


All times are GMT -4. The time now is 07:18 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0