Hi,
I am told to form an external javascript, so I form a text file and end
it with .js. (jxt1.js) This script is very simple:
function a_message()
{
alert('I came from an external script! Ha, Ha, Ha!!!!');
}
Next, I form a HTML page which is supposed to access that external .js!
Between the heads, I type:
<SCRIPT language="JavaScript" SRC="jxt1.js"></SCRIPT>
So, I'm supposed to be all set up. When I access the page, nothing happens.
When I click on the script.js, to see it and edit it, nothing happens. My
question is how do i run an external javascript and click on it to view and
edit it when my OS is XP Pro? I know this seems very basic but please
answer. 4 1053
"Chuck Mendell" <ch***@chuckmendell.741.com> wrote in
news:vB******************@tornado.tampabay.rr.com: Hi, I am told to form an external javascript, so I form a text file and end it with .js. (jxt1.js) This script is very simple: function a_message() { alert('I came from an external script! Ha, Ha, Ha!!!!'); } Next, I form a HTML page which is supposed to access that external .js! Between the heads, I type: <SCRIPT language="JavaScript" SRC="jxt1.js"></SCRIPT>
So, I'm supposed to be all set up. When I access the page, nothing happens. When I click on the script.js, to see it and edit it, nothing happens. My question is how do i run an external javascript and click on it to view and edit it when my OS is XP Pro? I know this seems very basic but please answer.
Did you call a_message somewhere?....
--
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
"John Bokma" <po********@castleamber.com> wrote in message news:Xn*************************@130.133.1.4... "Chuck Mendell" <ch***@chuckmendell.741.com> wrote in news:vB******************@tornado.tampabay.rr.com: Hi, I am told to form an external javascript, so I form a text file and end it with .js. (jxt1.js) This script is very simple: function a_message() { alert('I came from an external script! Ha, Ha, Ha!!!!'); } Next, I form a HTML page which is supposed to access that external .js! Between the heads, I type: <SCRIPT language="JavaScript" SRC="jxt1.js"></SCRIPT> So, I'm supposed to be all set up. When I access the page, nothing happens. When I click on the script.js, to see it and edit it, nothing happens. My question is how do i run an external javascript and click on it to view and edit it when my OS is XP Pro? I know this seems very basic but please answer. Did you call a_message somewhere?.... -- John MexIT: http://johnbokma.com/mexit/ personal page: http://johnbokma.com/ Experienced programmer available: http://castleamber.com/ Happy Customers: http://castleamber.com/testimonials.html
In the js you have and only:
function a_message()
{
alert('I came from an external script! Ha, Ha, Ha!!!!');
}
In your html you have:
<!-- testjs.htm -->
<html>
<head>
<script language="JavaScript" src="jxt1.js"></script>
</head>
<body>
<script language="Javascript">
a_message();
</script>
</body>
</html>
Both located in the same area. Then you browse to testjs.htm.
George Hester
__________________________________
Thanks John and George. Sometimes you can't see the forest through the
trees. Of course I didn't call it. To view/edit the .js, all I had to do
was right-click the .js file and "always open with" (textpad.exe)
I can now create a .js and pages that access that .js. That's all I
wanted. I can obviously do the rest. Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
you miss to assign the onload event to thet function
<body>
<body onload = "a_message()">
</body> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jerome |
last post by:
Hi, I'm a bit confused ... when would I rather write an database
application using MS Access and Visual Basic and when (and why) would I
rather write it using Visual Studio .Net?
Is it as easy...
|
by: bill |
last post by:
I am trying to convince a client that dotNet is preferable to an Access
project (ADP/ADE).
This client currently has a large, pure Access MDB solution with 30+ users,
which needs to be upgraded....
|
by: Dave |
last post by:
Hello NG,
Regarding access-declarations and member using-declarations as used to
change the access level of an inherited base member...
Two things need to be considered when determining an...
|
by: Simon Bailey |
last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have
a very simplified knowledge of databases overall. I would very much
appreciate a (simplifed) message explaining the advantages...
|
by: Frederick Noronha \(FN\) |
last post by:
---------- Forwarded message ----------
Solutions to Everyday User Interface and Programming Problems
O'Reilly Releases "Access Cookbook, Second Edition"
Sebastopol, CA--Neither reference book...
|
by: Olav.NET |
last post by:
I am a .NET/C++ developer who is supposed to do some work with Access.
I do not know much about it except for the DB part.
Questions:
*1*
I am looking for INTENSIVE books to get quickly up to...
|
by: John |
last post by:
Hi
What future does access have after the release of vs 2005/sql 2005? MS
doesn't seem to have done anything major with access lately and presumably
hoping that everyone migrates to vs/sql.
...
|
by: com |
last post by:
Extreme Web Reports 2005 - Soft30.com
The wizard scans the specified MS Access database and records
information such
as report names, parameters and subqueries. ......
|
by: Mell via AccessMonster.com |
last post by:
Is there a way to find out where an application was created from?
i.e. - work or home
i.e. - if application sits on a (work) server/network, the IT people know the
application is sitting...
|
by: jasmith |
last post by:
How will Access fair in a year? Two years? .... The new version of
Access seems to service non programmers as a wizard interface to
quickly create databases via a fancy wizard. Furthermore, why...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |