473,378 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Calling multiple javascripts -- help!

Hello World - I admit I'm new to javascript but I've tried for days to
find a solution to my problem.

Basically I have 3 unique javascript files that do different screen
display events that I want to dynamically call, where the current page
would then refresh after a user clicks on any one of three associated
button links. Could someone please assist me and craft a simple
script that would accomplish this feat of impossibility?

Sincerely,

%Julia%
Jul 20 '05 #1
7 4485
While the city slept, Julia Briggs <ju*******@yahoo.com> feverishly
typed:
Hello World - I admit I'm new to javascript but I've tried for days to
find a solution to my problem.

Basically I have 3 unique javascript files that do different screen
display events that I want to dynamically call, where the current page
would then refresh after a user clicks on any one of three associated
button links. Could someone please assist me and craft a simple
script that would accomplish this feat of impossibility?


Some URL's would be useful, to help us to better understand what it is you
are doing, and what you want to do.

Cheers,
Nige

--
Nigel Moss.

Email address is not valid. ni***@nigenetDOG.org.uk. Take the dog out!
http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
"How strange the change from major to minor..."
Jul 20 '05 #2
I don't have public links to show – but, conceptually this problem
should be solvable without looking at the script objects that I want
to call.
Jul 20 '05 #3
In article <c4**************************@posting.google.com >,
ju*******@yahoo.com (Julia Briggs) writes:
I don't have public links to show – but, conceptually this problem
should be solvable without looking at the script objects that I want
to call.


Please read the FAQ before posting, with regards to quoting what you are
referring to.

If you don't have a public link, find a free server and create one.

I personally know of 4 ways to call multiple functions, there are undoubtedly
more.
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
Jul 20 '05 #4
"nice.guy.nige" <ni********@deadspam.com> wrote ...
<snip>
... , to help us to better understand what it is you
are doing, and what you want to do.
"Julia Briggs" <ju*******@yahoo.com> wrote in message
news:c4**************************@posting.google.c om... I don't have public links to show - but, conceptually this problem
should be solvable without looking at the script objects that I want
to call.


You may have a clear concept of the script you envision but your
original description of the problem is very ambiguous so you are
unlikely to get any help without some form of clarification.

Richard.
Jul 20 '05 #5
Welp, hopefully this description will crystallize what I am trying to
do without having to show my code.

I have an HTML page and several javascript files. The javascript
files perform screen resize functions. I want to have these called
"dynamically" and then refresh the current page when someone clicks on
a hyperlinked Button (1, 2, 3, etc...)

Sorry for my excuses, but I am lousy at writing JavaScript code. :(

Thanks if you can write this.

%Julia%
Jul 20 '05 #6
"Julia Briggs" <ju*******@yahoo.com> wrote in message
news:c4**************************@posting.google.c om...
Welp, hopefully this description will crystallize what
I am trying to do without having to show my code.

I have an HTML page and several javascript files.
That is not unusual.
The javascript files perform screen resize functions.
Screens are normally the domain of Operating Systems and are not
resizable with web site JavaScript. I would speculate that you are
probably thinking about browser windows, but who can say?
I want to have these called "dynamically"
"called" is a term that can be directly applied to JavaScript functions
but is not really meaningful when applied to JavaScript files. Without
criteria "dynamically" could mean anything; randomly, according to the
date/time of day, in response to some events/conditions/user action,
etc.
and then refresh the current page when someone
clicks on a hyperlinked Button (1, 2, 3, etc...)

<snip>

Finally something specific; "and then" - sequence. So this page
re-loading follows the "dynamic" "calling" of the JavaScript file. That
would imply that the "hyperlinked buttons" should be
disabled/unavailable/inactive until after the "dynamic" "calling" of the
JavaScript file, so that action should be expected to activate the
buttons as a side effect.

"hyperlinked button" is a bit vague as well as hyperlinked implies <a
href=" ... "> elements while button implies <button> or <input
type="button|submit|image"> elements. Though which would be most
appropriate would probably depend on the reason for re-loading the page
in the first place.

Is this sounding like your original concept? I think not. You might say
that I am being deliberately obtuse, and to some extent I am. For
example I am fairly sure that when you say, "have these called" I think
that you probably mean, "have these loaded". I am also fairly sure that
the sequence that you have specified is almost the reverse of what you
envisaged.

It is the case that computer code is always absolutely specific while
ideas and concepts can be vague and imprecise. Obviously the process of
turning an idea into code must go through stages of increasing
specification. How many stages and who is responsible for creating the
intermediate specifications will vary depending on circumstances, but
the onus is on you to provide a sufficient starting point.

The previous request to see code is the normal reaction to a description
of a vague concept. With code to examine it is usually possible to
derive the specific requirement and set about implementing it.

In the absence of code (and even when code can be provided) a good text
description of the specific requirement, stressing the sequence of
events, cause and effect relationships, conditions and so on, is a
minimum starting point.

In addition to details of the requirement a very valuable piece of
information to provide is the answer to the question - Why? Knowing why
someone wants to do something allows a great deal to be deduced from a
less than adequate specification. That is, the goal provides direction
when interpreting a description. Knowing why also allows people to
propose complete alternative approaches that would achieve the desired
goal in an objectively superior way.

Richard.
Jul 20 '05 #7
Im building a map and I neep to zoom in That pretty simple But each district has rollov ers on a different layer and the rollovers wiill not zoom in proportion to the whole image Isnt there a way to zoom a page instead to reatain the functionality of the rolovers
Jul 28 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kerberos | last post by:
When I deliver a page as text/html, the javascripts work, but if delivered as application/xhtml+xml, the javascripts don't work: function OpenBrWindow(theURL,winName,features, myWidth, myHeight,...
4
by: Smoke | last post by:
We had a javascript calling a Cold Fusion page (.cfm) and it was working for 2 years. Suddenly yesterday or today its decided it doesn't want to work anymore. I'm picking up somebody elses code I...
2
by: sdvoranchik | last post by:
We have an application that contains links that run javascripts to create pages in a separate frame. When these links open an external site, it causes the javascripts to no longer function. When...
2
by: LC's No-Spam Newsreading account | last post by:
I asked a couple of days ago about the following arrangement (simplified). I made some progress using netscape.security.PrivilegeManager.enablePrivilege but still have to ask some further help. ...
7
by: JCO | last post by:
I have several JavaScripts in a web page. Each script is in an individual file with extension .js. I want to know if it is possible to put all functions in one single page. If so, how do I call...
4
by: David Virgil Hobbs | last post by:
My web host inserts banner ads into my html pages. The javascript in these banner ads interferes with the onload triggered javascript functions in my pages. Whether I trigger my javascript...
8
by: Jakej | last post by:
I've been using a javascript in an html file for a banner slider, and it works as desired. But I'd like to use it on more than one page and it would be great if I could transfer the code to a .js...
4
by: januarynow | last post by:
Generally, my site contains javascripts (a couple of freebie counters plus some CPM (pay-per-impression) and CPC (pay-per-click) ads), from four different firms, but they are all suffering from the...
1
by: Memphis Steve | last post by:
Is it possible to combine multiple javascipts into one file and then call that file from a linked URL in the head section of an XHTML file? Here are the two scripts I want to use with the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.