Please help!! i am so desperate!

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Mar 2006
Posts: 2
Reputation: jasmineleo is an unknown quantity at this point 
Solved Threads: 0
jasmineleo jasmineleo is offline Offline
Newbie Poster

Please help!! i am so desperate!

 
0
  #1
Mar 14th, 2006
hi there,
i'm doing a basic computer science homework and i cannot figure out how to run the javascript on the browser...
so i write a program on microsoft word and save as "java.html" under html document, then what do i do to display the contents on the browser???
any help would be greatly appreciated!!!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Please help!! i am so desperate!

 
0
  #2
Mar 14th, 2006
I bet the filename is actually named: java.html.doc, unless you have specifically gone into windows and told it to show you filename extentions. you can open up internet explorer, and go to file open, and it might open it that way, but being it's probably in word format, it might get really upset. If you want to fix it, you can go to my computer, then tools, and folder options. Then click on the view tab, and in the listbox find hidden files and folders, and put the dot in show hidden files and folders, Then hit ok. You should be able to rename the file properly now.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Please help!! i am so desperate!

 
0
  #3
Mar 14th, 2006
And if this isn't the case, and the file really is an HTML file with a ".html" extension, simply double-clicking it should open it in your default browser.

If not, then open the browser, and drag the file into the browser.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 2
Reputation: jasmineleo is an unknown quantity at this point 
Solved Threads: 0
jasmineleo jasmineleo is offline Offline
Newbie Poster

Re: Please help!! i am so desperate!

 
0
  #4
Mar 14th, 2006
thank you so much for your help...but i still don't understand??
all i'm trying to do is open the document file through a web browser but when i open the internet explorer, and go to file, open, and open the document file, it shows exactly what i wrote in my document file... since it's a javascript program, shouldn't it only show hello world! if i wrote:

<html>
<body>

<script type="text/javascript">
document.write("Hello World!")
</script>

</body>
</html>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Please help!! i am so desperate!

 
0
  #5
Mar 14th, 2006
If you're using Internet Explorer, you're probably getting a security alert, since IE won't run JavaScript on files loaded locally.

However, from your description, I would say Comatose is probably closest to the truth: your browser is treating it like it's a text file, not an HTML file.

Are you sure the file has .html as the extension, and not .doc or .txt?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Please help!! i am so desperate!

 
0
  #6
Mar 14th, 2006
where is the file saved on your hard-drive? Right click on the file, go to properties, and where does "location" say it's it?

Another alternative, is to simply unzip this attachment, and put the quickren.exe file in the c:\windows folder. Then double click on quickren.exe. Now, right click on your html file, and choose quickren. Then, make sure that the filename is java.html, and not java.html.doc, or java.html.txt
Attached Files
File Type: zip QuickRen.zip (6.2 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Please help!! i am so desperate!

 
0
  #7
Mar 15th, 2006
Or go to start -> programs -> accessories -> notepad
Paste in your html code.
Save as java.html - remember to select 'all files and folders' in the file type below the filename box
Open in your browser.

You could also consider downloading html kit
http://www.chami.com/html-kit/
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 84
Reputation: web_developer is an unknown quantity at this point 
Solved Threads: 1
web_developer web_developer is offline Offline
Junior Poster in Training

Re: Please help!! i am so desperate!

 
0
  #8
Mar 16th, 2006
yea this is the best answer
why u r using word, just go to notepad and write ur code there.
Save it as *.htm.
This is the easiet method
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC