chrometweaks.org

Is there any free iPage web hosting that supports CGI/PERL?

Click Here To View All Answers...


First question I have is Is there any free iPage web hosting that supports CGI/PERL? Thanks for any response. Another question... Hey all.. I'm not sure how to word this question... so I'll probably go all the way around the block to get across the street (so to speak).

I have a html document that refers to a .txt file. The txt file should be loaded into the html document thru javascript. here's the code......

<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="title.txt"></SCRIPT>.

The problem is that the "title.txt" file is not in the same directory... and is in one level UP from the directory the html file is in..

The Question... it should be simple, but for some reason I can't get it to work..... "how do I point the 'src="title.txt"' to the next level up?.

Is that clear as mud or what??? lol.

Thanks.

Wildlife..

Comments (7)

Yup, however you might want to make sure and wait for another commenter to confirm it as I am unsure of myself. Better yet, why don't you email the iPage guys because they can give you help better...

Comment #1

Thanks a bunch.

This is my first go at coding javascript myself... albeit a VERY simple script... just trying to do a "page include" still having some minor difficulties... because the .txt file is up one level from the html doc I want to include it in... the text & links show up fine, but it doesn't bring the images along from "up one level".

Hmmm interesting..

Comment #2

Let me have a look at the code and ill try my best to see whats wrong.

Remember the images folder have to be linked to in relation to where the javascript text file is so you might have to add a ../ before them too..

Comment #3

Thanks....

The javascript txt file is in the same directory as the images....

If ya go to my site... the title and logo on the top as well as the flag and football in the lower left work fine.. but if you click on the more links in the "blog", the links and text come up, but not the images....

I'm in the middle of a complete rebuild with lots of work to do yet... so be nice......

Comment #4

Firstly id get into the habit of putting all iPage site images into a folder called images or something.

It doesnt matter much now but when your iPage site grows it will save you a lot of effort.

Using your main logo as an example.

Your main logo is saved at.

Http://www.thatcomputerguy.us/banner.gif.

And this is where the image is linked to in the home page and all main sections (eg. contact.html) and is why they all work fine as they are in the same directory.

The archives section however is a level down which is why it isnt showing.

I think I know where the problem is though.

The link to your style sheet in the archives section is.

Notice the // after your iPage domain name, make it one slash and see if it works..

Comment #5

Well... changing the // didn't make any difference....

I just wish I had 2 days to make changes.. lol I've been working on a re-build most of today... just not enough time....

I will work on putting all images in a separate folder and then pointing to them... things are all garbled up right now because I still have a lot of the old files remaining on the web server....

How many hours are there in the day??? LOL.

Thanks again.. I really appreciate your help!..

Comment #6

Most spiders, mainly google I worry about, does not read javascript and sending them off to get a .txt file with a nasty surprise is not my idea of climbing high up in the search engine listing...do yourself and the robots a favor and name your js files .js....

Just thought I would add my 2 cents worth.

Ann..

Comment #7

Much thanks Ann.

I had to resort the entire file structure anyway, so I renamed the .txt files .js files early this morning....

Thanks again!..

Comment #8


This question was taken from a support group/message board and re-posted here so others can learn from it.