471,067 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,067 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 4345
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kerberos | last post: by
4 posts views Thread by Smoke | last post: by
2 posts views Thread by LC's No-Spam Newsreading account | last post: by
7 posts views Thread by JCO | last post: by
4 posts views Thread by David Virgil Hobbs | last post: by
reply views Thread by leo001 | last post: by

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.