Jump to content

Recommended Posts

Posted

Another question as I convert my site...

 

I use a javascript-based pulldown menu structure. In order for the script to work over the entire site, I use root-based addressing

 

(I forget the real term, but it is where the address in the javacript is "location='/about/join/join.htm'" as opposed to absolute "location='http://www.mysite.com/about/join/join.htm'" [won't work in a template] or relative "location='../about/join/join.htm'" [which also is problematic.])

 

The issue is the relation of my menu file relative to the root of my site.

 

As an example, my menu currently returns this URL:

 

http://67.15.82.11/team/results/15b/results15b.htm

 

which does not work.

 

It needs to be

 

http://67.15.82.11/~pearjrs/team/results/15b/results15b.htm

 

to work. Which means that my 'root' is http://67.15.82.11/~pearjrs/

 

This is consistent with what was in my welcoming email. And I can correct for this by changing the 'location' parameters in my javacript from

 

"location='/about/join/join.htm'"

 

to

 

"location='/~pearjrs/about/join/join.htm'"

 

But I'm wondering if this is going to change when the site becomes addressed by my domain name.

 

Will I need

 

'http://www.pearlandjrs.com/~pearjrs/team/results/15b/results15b.htm'

 

or

 

'http://pearlandjrs.com/team/results/15b/results15b.htm'

 

I think it is the latter, but if so, this means I cannot use the same javascript addressing 'location' paramenter to test the site before going live versus after the domain name server is set and I do go live. Is this true?

 

Is there a workaround?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...