HighDots Forums  

links...

alt.html.tags alt.html.tags


Discuss links... in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
WindAndWaves
 
Posts: n/a

Default links... - 08-06-2004 , 06:09 PM






Hi Gurus

I have just put together a website, but I noticed that some of my links do
not work with Internet Explorer 5 for Mac.

Here is my directory structure

index.html
about.html
contact.html
[folder s]
[folder j]

in the s folder there is a style sheet s.css
in the j folder there is a javascript file called j.js

here are the link I use in my html files:

<SCRIPT SRC="j/j.js" TYPE="text/javascript"></SCRIPT>
<LINK HREF="s/s.css" REL="stylesheet" TYPE="text/css" />

What am I doing wrong?

Thank you.



Reply With Quote
  #2  
Old   
SpaceGirl
 
Posts: n/a

Default Re: links... - 08-06-2004 , 07:03 PM






WindAndWaves wrote:

Quote:
Hi Gurus

I have just put together a website, but I noticed that some of my links do
not work with Internet Explorer 5 for Mac.

Here is my directory structure

index.html
about.html
contact.html
[folder s]
[folder j]

in the s folder there is a style sheet s.css
in the j folder there is a javascript file called j.js

here are the link I use in my html files:

SCRIPT SRC="j/j.js" TYPE="text/javascript"></SCRIPT
LINK HREF="s/s.css" REL="stylesheet" TYPE="text/css" /

What am I doing wrong?

Thank you.
No idea. BTW, seeing as you close your link with /> it suggests you are
trying to write XHTML. XHTML *cannot* have uppercase tags - all the tags
should be lowercase. "SCRIPT" should be "scrip"t, "LINK" should be
"link", "HREF" should be "href"... etc

Put the thing online and then we can tell you what's wrong with the
links though.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #


Reply With Quote
  #3  
Old   
Sam Hughes
 
Posts: n/a

Default Re: links... - 08-06-2004 , 07:31 PM



SpaceGirl <NOspaceSPAMgirl (AT) subhuman (DOT) net> wrote in
news:2nih2lF15gulU1 (AT) uni-berlin (DOT) de:

Quote:
WindAndWaves wrote:


SCRIPT SRC="j/j.js" TYPE="text/javascript"></SCRIPT
LINK HREF="s/s.css" REL="stylesheet" TYPE="text/css" /


No idea. BTW, seeing as you close your link with /> it suggests you
are trying to write XHTML. XHTML *cannot* have uppercase tags - all
the tags should be lowercase. "SCRIPT" should be "scrip"t, "LINK"
should be "link", "HREF" should be "href"... etc

Put the thing online and then we can tell you what's wrong with the
links though.

Many times, I even find self-terminated XHTMLish link elements with an
HTML dtd! So many people just copy and paste.

--
In a room with thirty-seven people, never have everybody shake each
other's hand.


Reply With Quote
  #4  
Old   
Sam Hughes
 
Posts: n/a

Default Re: links... - 08-06-2004 , 07:32 PM



"WindAndWaves" <access (AT) ngaru (DOT) com> wrote in
newsoTQc.9881$N77.471545 (AT) news (DOT) xtra.co.nz:

Quote:
Hi Gurus

I have just put together a website, but I noticed that some of my
links do not work with Internet Explorer 5 for Mac.

Here is my directory structure

index.html
about.html
contact.html
[folder s]
[folder j]

in the s folder there is a style sheet s.css
in the j folder there is a javascript file called j.js

here are the link I use in my html files:

SCRIPT SRC="j/j.js" TYPE="text/javascript"></SCRIPT
LINK HREF="s/s.css" REL="stylesheet" TYPE="text/css" /

What am I doing wrong?
URL? Also, have you found this problem to be one specific of IE 5 mac,
or is that the only browser in which you have tested?

I am also curious if you are knowingly trying to write XHTML.

--
In a room with thirty-seven people, never have everybody shake each
other's hand.


Reply With Quote
  #5  
Old   
WindAndWaves
 
Posts: n/a

Default Re: links... - 08-06-2004 , 08:33 PM



hi folks

this extra / is purely superstitious. I am writing plain html. I always
write <BR />, because I try to close all tags. So, for example, I do not
write <A HREF=..... />, but instead, I write <A HREF=......>....</A>

Anyway, does anyone know the answer to my question?

Thank you

Nicolaas

PS
On the server, I changed it to

<SCRIPT SRC="/j/j.js" TYPE="text/javascript"></SCRIPT>
<LINK HREF="/s/s.css" REL="stylesheet" TYPE="text/css" />

These links do not work locally, when I open my index file on the c drive,
but when I look at it on the server, then it does work.




Reply With Quote
  #6  
Old   
WindAndWaves
 
Posts: n/a

Default Re: links... - 08-06-2004 , 09:01 PM



you can see the site at www.rakua.com, however, I also use this code on
several other sites with the same problems....




Reply With Quote
  #7  
Old   
WindAndWaves
 
Posts: n/a

Default Re: links... - 08-06-2004 , 09:01 PM



correction: www.rakau.com



Reply With Quote
  #8  
Old   
Will Gittoes
 
Posts: n/a

Default Re: links... - 08-06-2004 , 09:33 PM



WindAndWaves wrote:
Quote:
correction: www.rakau.com


The answer is, NO begginning foreward slash.

"/j/j.css" or whatever - Wrong
"j/j.css" pr whatever - Right!


Reply With Quote
  #9  
Old   
Sam Hughes
 
Posts: n/a

Default Re: links... - 08-06-2004 , 09:33 PM



"WindAndWaves" <access (AT) ngaru (DOT) com> wrote in
news:tvVQc.9933$N77.472986 (AT) news (DOT) xtra.co.nz:

Quote:
hi folks

this extra / is purely superstitious. I am writing plain html. I
always write <BR />, because I try to close all tags.
But if you're writing HTML, not XHTML, this is WRONG. Closing all tags
is a good thing, especially with ones like P or LI.

Quote:
So, for
example, I do not write <A HREF=..... />, but instead, I write <A
HREF=......>....</A
Of course you do.

Quote:
Anyway, does anyone know the answer to my question?

Thank you

Nicolaas

PS
On the server, I changed it to

SCRIPT SRC="/j/j.js" TYPE="text/javascript"></SCRIPT
LINK HREF="/s/s.css" REL="stylesheet" TYPE="text/css" /

These links do not work locally, when I open my index file on the c
drive, but when I look at it on the server, then it does work.
This is because on your c drive, the reference "/j/j.js" points to
c:/j/j.js, because a leading slash indicates an absolute path. But on
the server, they point to http://www.yourdomain.example/j/j.js.


--
In a room with thirty-seven people, never have everybody shake each
other's hand.


Reply With Quote
  #10  
Old   
Sam Hughes
 
Posts: n/a

Default Re: links... - 08-06-2004 , 09:47 PM



"WindAndWaves" <access (AT) ngaru (DOT) com> wrote in news:AWVQc.9948$N77.473275
@news.xtra.co.nz:

Quote:
correction: www.rakau.com
Okay. "What am I doing wrong?" you asked. Here are some examples of
what you are doing wrong, which might possibly be helpful in the near or
long future. I have no problems with the style sheet or javascript
loading, of course:

1. You have a popup window indicating what browser I'm using. This is
redundant with my browser's title bar, throbber, and Help -> About.

2. Your entire page merely provides an email link. But the link is an
image which doesn't even indicate itself as a link. But since I
automatically assume you have it as an entry page, as are most pages with
centered images, my email client opens up to write a message. I didn't
want to send you an email. I didn't want my email client to open. Your
web site is not behaving as users would expect.

3. <META NAME="Author" CONTENT="www.sunnysideup.co.nz"> -- How do domain
names author pages?

4. <TABLE CELLPADDING=0 CELLSPACING=0 ALIGN=CENTER HEIGHT=100% WIDTH=
100%> -- First of all, you could use CSS for much of this deprecated
stuff. Also, you need to use quotation marks on values with percentage
signs. Additionally, the TABLE element does _not_ have a HEIGHT
attribute.

5. <TITLE>RAKAU - HOSPITALITY DATABASE - PROPERTY MANAGEMENT SOFTWARE
</TITLE>
<META NAME="keywords" CONTENT="RAKAU - HOSPITALITY DATABASE - PROPERTY
MANAGEMENT SOFTWARE">
<META NAME="description" CONTENT="RAKAU - HOSPITALITY DATABASE -
PROPERTY MANAGEMENT SOFTWARE">

Make your keywords seperated by commas. Make your description
descriptive and user-friendly. Don't capitalize every letter - it seems
like shouting, and the Caps Lock key is less than a centimeter away.

----
Hope that helps.

Sam

--
In a room with thirty-seven people, never have everybody shake each
other's hand.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.