Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 31st, 2005, 10:55 PM   #1
zeotrex
Newbie
 
Join Date: Aug 2005
Posts: 5
Rep Power: 0 zeotrex is on a distinguished road
Question Java script problem

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
zeotrex is offline   Reply With Quote
Old Sep 1st, 2005, 12:19 AM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
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.
__________________

tempest is offline   Reply With Quote
Old Sep 1st, 2005, 1:44 AM   #3
zeotrex
Newbie
 
Join Date: Aug 2005
Posts: 5
Rep Power: 0 zeotrex is on a distinguished road
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
zeotrex is offline   Reply With Quote
Old Sep 1st, 2005, 5:55 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Sep 1st, 2005, 10:19 PM   #5
zeotrex
Newbie
 
Join Date: Aug 2005
Posts: 5
Rep Power: 0 zeotrex is on a distinguished road
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
zeotrex is offline   Reply With Quote
Old Sep 2nd, 2005, 5:30 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:26 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC