![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 5
Rep Power: 0
![]() |
Greetings all,
I am new here. Wondering if i can get any help from this forum. I am new to Java script/HTML Recently our Internet application teacher gave us a problem. Hope I can get some idea here. We are only thought of how to use HTML and JAVAscript to create web page. However this time were were given a system. The technical people installed a software for us. We then run a .bat file to start a server. Then we access main page by entering http://classAssign/. The whole system is being installed under "C:\Program Files\ClassTesting1.0". I am able to change the interface by replacing some of the images under the system folder. However, the main problem is so far we are only thought of how to create web page using HTML where we create all the create all the HTML files and put under a same folder, accessing by clicking the mainpage through "index.html". In this system given, i can't find any .html looks like main/index page to access!!! and viewing the source each page open, they are all coded with Java script. Can someone give me some guideline, What is this server about? Why i can't find any index.html or xxxhome.html page in the installed folder? Without this main page meaning i won't be able to modify the page? All i access to the system is with the address http://classAssign/ and all i can on the installed folder are images skin, not working properly html skin, .js, .css and etc..... Thank for the advice in advance. Regards ![]() |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
If english isn't your native language, i welcome you to post in both english and your native language in hopes that maybe somebody in PFO might understand your native language better than i understand your english. However, what i think may help you is this.
Basically, when you store an HTML file on your computer and view it with a web browser the pattern goes like this... HTML-file -> Web browser But when you receive it from a server that is using a different type of extension, the server takes that "odd file" and creates an HTML file by processing the text inside. Finally, a server communication looks more like this: Odd-file -> Server -> HTML-file -> Web browser I hope that helps.
__________________
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2005
Posts: 5
Rep Power: 0
![]() |
Thanks and sorry if my English too poor. Can find any edit thread option, let's me corret some mistake.
---------------------------------------------------------------------------------- Greetings all, I am new here. Wondering if i can get any help from this forum. I am new to Java script/HTML Recently our Internet application teacher gave us a problem. Hope I can get some idea here. We are only taught of how to use HTML and JAVAscript to create web page. However this time we are given a system. The technical people installed a software for us. We then run a .bat file to start a server. Then we access main page by entering http://classAssign/. The whole system is being installed under "C:\Program Files\ClassTesting1.0". I am able to change the web page interface by replacing some of the images under the system folder. However, the main problem is, so far we are only taught of how to create web page using HTML where we create all the HTML files and put under a same folder, accessing by clicking the mainpage through "index.html". In this system given, i can't find any .html looks like main/index page to access!!! and viewing the source for each page opened, they are all coded with Java script. Can someone give me some guideline, What is this server about? Why i can't find any index.html or xxxhome.html page in the installed folder? Without this main page meaning i won't be able to modify the page? All i access to the system is with the address http://classAssign/ and all i can see on the installed folder are images skin, "not working properly .html skin", .js, .css and etc..... Thank for the advice in advance. Regards |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
First, let me reiterate what Tempest said. Depending upon the name of the file, the server may send either the contents of the file or it may process the file and send the results of the processing. It might do a mixture of both.
Secondly, the file processed may cause an immediate redirection to another file. This could very well be your case if the system is set up to deliver a different modifiable page to each student, based on their login or something similar. Your instructor should have given you clear instructions unless the purpose of the exercise is to teach you to ferret things out. Thirdly, I commend you on your dedication to posting in English, even if it is not your native language, as posting in another language is contrary to forum rules. While it seems restrictive to have such a rule, it is only sensible if a forum does not have admins/moderators who can properly monitor forum content in other languages that might be used. Good luck with the problem and if additional or expanded information is needed, please post back.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Aug 2005
Posts: 5
Rep Power: 0
![]() |
Thanks DaWei, your advice seems to be more in my direction. Perhaps what i actually don't understand is about the server thing. We were only taught of creating .html file in html and java script. Therefore it does not make sense to us what is this server about, and how all the webpage being compiled into a system. Also it doesn't make sense to us why we access the page without loading .html file. i.e now we access a home page with just http://classAssign/ while last time we access our page by "../root/index.html"
Thank you in advance |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
The server is instructed to pass a particular file BY DEFAULT if one is not specified. It is often "index.html" or similar. A server may also be instructed to return a directory listing rather than an content page. It may return an error message. Just depends on how the system was set up. If your instructor has not given you information regarding the basic client/server paradigm and perhaps even the http protocol (though not necessarily in detail), your instructor is derelict.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|