Problems pointing to files on my server
# November 20, 2012 at 8:43 pm
I’m having some difficulty pointing to one of my js files on my server.
I have a pretty standard set up,
– **js folder**
– **css folder**
The difficulty is i have another folder called
Within this folder i have six html files named 1.html,** 2.html, etc. I need these individual files to point to a file in my js folder
I thought it would be,
I’ve also tried,
But it doesn’t seem to work.
Would anyone have any ideas on how to fix this?ix this?# November 21, 2012 at 3:49 am
@traq is basically saying use URL’s that are relative to the root of you website folder, so instead of linking to your js file like this;
Link to it like this;
Without the dots before the forward slash…# November 21, 2012 at 5:04 am
@Watson90 It can be both. It’s a jQuery plugin developed by [Rogie King](http://finegoodsmarket.com/view/ “”) and it says the quickest and simplest way to get it up and running is to add it with the ?auto at the end.
Just tried it without the dots and still nothing.
Am i right in thinking i need to reference this script in my index.html and in each html file in my 6_toggle folder?# November 21, 2012 at 10:30 am
@pmac627 The files in the _6_toggle_ folder get pulled through by jQuery.
And it works perfectly in their individual files, http://orchidaberdeen.com/6_toggle/1.html
but when the 1.html, 2.html, etc get called through into index.html it doesn’t want to work.
It get’s pulled through for the gallery section, http://orchidaberdeen.com/#gallery
any thoughts or suggestions would be greatly appreciated.# November 21, 2012 at 10:41 am
Would pulling the files via jQuery trigger the browser to request the js files at all? I don’t know enough about jQuery ajax calls to know. However, if it is requesting the js files when you use jQuery to request the 1.html, I would guess it is then looking for the JS file relative to where you pulled the file to, not from where the file actually sits. Try absolute links to the js files.
You must be logged in to reply to this topic.