•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 329,239 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,393 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2639 | Replies: 5
![]() |
•
•
Join Date: Apr 2005
Posts: 27
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I'm having trouble running javascript. I have a Dell Dimension 300 system.
The code I have in my "htm" document is:
<td id="daycell">
<script language="javascript">
<! -- Hides from non-JavaScript browsers
document.write("Today is 12/15/2005<br>");
document.write("only 10 days until Christmas");
// stop hiding -->
</script>
</td>
I tried it with "JavaScript" or "javascript".
The PC blockers come up. After I allow it from the msg, nothing happens. Is there any software I need to add on my system?
Thanks,
Bob
I'm having trouble running javascript. I have a Dell Dimension 300 system.
The code I have in my "htm" document is:
<td id="daycell">
<script language="javascript">
<! -- Hides from non-JavaScript browsers
document.write("Today is 12/15/2005<br>");
document.write("only 10 days until Christmas");
// stop hiding -->
</script>
</td>
I tried it with "JavaScript" or "javascript".
The PC blockers come up. After I allow it from the msg, nothing happens. Is there any software I need to add on my system?
Thanks,
Bob
JavaScript run from a page loaded locally, will always give a "security warning" in Internet Explorer. Run the page from a server, or with FireFox, and you'll get no warning.
Invoking "document.write()" mid-page is tricky, in may in fact overwrite the current page. You also have no "document.close()".
I don't think you have any configuration problems, just inexperience with JavaScript.
Invoking "document.write()" mid-page is tricky, in may in fact overwrite the current page. You also have no "document.close()".
I don't think you have any configuration problems, just inexperience with JavaScript.
•
•
Join Date: Apr 2005
Posts: 27
Reputation:
Rep Power: 0
Solved Threads: 0
Thanks,
This script is from a assignment in the book I am studying for our class. The "HTML" book discusses the subject, then has you insert the javascript commands in a designated area of the html page. The book discusses the script working without the "document.close" statement.
For testing, I'm running it from my memory stick ("F" drive). All the other assignments, including my project and case studies have worked fine without any problem.
What is "FireFox"? Is it expensive?
Thanks for your help
This script is from a assignment in the book I am studying for our class. The "HTML" book discusses the subject, then has you insert the javascript commands in a designated area of the html page. The book discusses the script working without the "document.close" statement.
For testing, I'm running it from my memory stick ("F" drive). All the other assignments, including my project and case studies have worked fine without any problem.
What is "FireFox"? Is it expensive?
Thanks for your help
Firefox is an alternative browser. It's free. If you're writing/testing code on your local system, then I recommend it. It has a built-in JavaScript debugger, for example. You can get it here: http://www.mozilla.org/products/firefox/
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Posting to same page and re-running javascript (JavaScript / DHTML / AJAX)
- I just can't get this Javascript (JavaScript / DHTML / AJAX)
- Wierd Numbers appear when trying to run a running product in a C++ program (C++)
- Capturing data from txt file using JavaScript/HTML (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: i need your experience to send data to email
- Next Thread: passing parameters to a page



Linear Mode