chrometweaks.org

There is any website for free domain & free iPage web hosting to launch my website?

Click Here To View All Answers...


My question is There is any website for free domain & free iPage web hosting to launch my website? Looking forward for any response. My other question... I have been using include file for consistency purpose but I need to use asp file as extension because when I tried using htm as extension, it doesn't work. So, my question is any way to have these 'include' file in htm. Meaning that, for example 3 file have same header, these 3 file just link to one file called inc_header.htm. Hope you guys understand. Thanks in advance for any idea or advice...

Comments (18)

Hmm... I need to find out myself. I don't know what is the right answer to your question. I'll do some poking around and get back to you if I discover an good answer. You should email the people at iPage as they probably know..

Comment #1

Ok here we go again Mr Scoutt... Looks like we can argue this one for a while..

Other than including the declaration of:.

<%@ language="vbscript" %>.

Before.

<html>.

The way to go is to write the page in html and declare it as html as this is what asp is intended for to a major extent. ASP is a language to dynamically interface with data on a given server and return results back as HTML.asp actually indicate that the file is written in HTML with on occassion, not always, some vbscript scripting...

Comment #2

Ps.

.inc is the a standard and acceptable way of suffixing asp include files...

Comment #3

Ok so tell me if you named your html page .html adn added ASP to that page and still kept it as html, do you think the server will parse it as ASP or html......

It will show all the asp you put into it and the html will run ok. by naming a page with a asp extension tells the server to parse it like asp not html. hence if the server sees the html it will not parse it as serverside langauge. why do you think you should use shtml? it tell the server that there is serverside includes in this document and should be parsed as such, not plain html. it doesn't take a server to run html, but it takes it to run serverside language. by telling the server you have asp as the extension it is making the server work twice as hard as it would not normally do it if was just plain html..

Do you understand that..

Comment #4

I agree, but for security reason you shouldn't do it like that...

Comment #5

If you asp in a .html document that is perfectly valid... all you do is declare that there is some vbscript in the page with the correct language declaration. This works fine. By telling the server it is ASP you are telling it that the page is HTML on the front end..

As for the argument regarding SHTML I can't argue too well as SHTML is a complete mystery to me at the moment. As for ASP, the protocols were created to return data as html and thus the source cannot be read in full. The source you can read is the returned document that will always open as <html> with none of the VBscript language in it or the addresses for the includes..

Take this page for example..

Http://www.entimp.com/calender/diary...-November-2002.

Try and view the ASP modules, you cant and I challenge you to do so... you will also notice the page returns the source in nothing but plain ole HTML but the file is a .asp file..

As for security reasons you can't read the full address of the include unless you write the page wrong, and that would go for any language that I know of...

Comment #6

Your missing the point here entimp. if you use asp in a html page it will not render. if you use vbscript (client side asp) then it will render as html. maybe I don't fully understand ASP but in php if you have an include as a *.inc and some person knws about this file, all they have to type is you page.inc in the address bar and view whatever is in that file. WHY, that is because the server doesn't know that inc is a serverside page and should be processed as such. the server doesn't care if it doesn't have anyhting to do with serverside language it will run it as plain html page, thus showing all your info in this file as you have coded it.



Now that I just explained that you can see where I am coming from as I would suspect all serverside langauge should react the same..

But in all fairness if you use.

<!#include virtual="nav.inc" >.

The sever will parse it as a shtml file instead...

Comment #7

I'm off to work but will come back to this in the morning... we are both right in some respects, will clarify later...

Comment #8

Well, after hearing both of you all making your own stand, I would like to go back to my question. If I don't want to use *.asp as scoutt you said that is not a good way to do it, how should I do it? How do I include include file in html? Is that possible? If not, what would be other ways?..

Comment #9

Sorry ngaisteve1, we get carried away sometimes..

If you want to include files you have to use shtml or the javascript way..

<script src="page.html"></script>.

I beleive it is something like that, been awhile since I used it..

Comment #10

It's ok with that. Yeah, I tried the way you taught me but it doesn't work. So, I tried to validate it in.

Http://validator.w3.org/..

I posted my code here,.

Http://www.citylinkexpress.com/malaysia/test.html..

So, what's wrong here and solution for it? Tx...

Comment #11

I just tried the URL to your test page, but got a 404 error (no page)..

I'm with Scoutt on the PHP/ASP parsing. I use IIS, and I have to tell which extensions are to be parsed through the PHP pre-processor software. I suppose you could tell the server to pass .inc files through the ASP pre-processor (does it work like that?) too...

Comment #12

I am sorry hondrous. Perhaps, I tested it locally. Now, it is uploaded...

Comment #13

In Scoutt reply, he mentioned "if you want to include files you have to use shtml or the javascript way..

<script src="page.html"></script>".

I follow that, look at my code. But, dooesn't work. In my page.html got message.

Testing. if you can see. hurray!.

But, since I can't see it, it means that scoutt's way doesn't work. So, what should I do?..

Comment #14

I am still getting a 404 error - file not found - from your link..

Comment #15

<script src="page.html"></script>.

This should, of course, be:.

<script src="page.html" type="text/javascript" language="javascript"></script>.

Mutter.. mumble.. darn validator...

<edit>.

Just as I hit the [.

Submit.

] button I spotted the.

.html.

Extension in the example, then my computer locked up. It then took ages to find this thread again. Hmm, let me revise that:.

For.

Javascript.

Code, you'll need:.

<script src="page..

Js.

" type="text/javascript" language="javascript"></script>.

For.

HTML.

Includes, I'm not sure if this a valid way or not..

</edit>..

Comment #16

No, it won't giz, the html file has nothing to do with javascript. it will only be html and that is it. it is one of those things you have to let go, like marginheight.

Horus, he has a period on the end of the url..

What is in the page.html??..

Comment #17

Page.html got this message.

Testing. if you can see. hurray!.

You may try it.

Http://www.citylinkexpress.com/malaysia/page.html.

So, what extention should I use for include file *.js or *.html?..

Comment #18

Im not sure if you have this one figured out yet but what works for me is naming your main file *.shtml and naming your include with a *.htm extension. I'm not sure if this is kosher but it works for me. as for how to "call" the include into the file I use:.

<!#include file="thefilename.htm">..

Comment #19


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