I am not very good at DHTML, but I have a set of links that use DHTML and they work :)
But now the customer wants to have one of my DHTML links call a javascript function when it is clicked on. When I put it into DHTML, it treats everything between the " " like a constant. When I remove the quotes, it gives me an error.
One of the versions I have tried is:
DQM_rollover_im age12 = "/images/nav_hospital.gi f"
DQM_rollover_wh 12 = "208,20"
DQM_rollover_xy 12 = "0,240"
DQM_url12 = "/index.html onClick=UTC_Hos pital()"
the javascript function I am trying to call is in index.html and it is called UTC_Hospital ()
Thanks for any and all help...I am at wits end and naturally they need this function to work asap.
1 1321 acoder 16,027
Recognized Expert Moderator MVP
Set the URL to index.html: - DQM_url12 = "/index.html";
See if you can set onclick somewhere. If so, set onclick to UTC_Hospital(). If not, you'll need to modify the generated link: - // access the link
-
var link = document.getElementById("linkID");
-
// set onclick
-
link.onclick=UTC_Hospital;
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: yzzzzz |
last post by:
Hi
I have:
<div onkeypress="go(event)">...</div>
and:
function go(event) {
alert(event.keyCode);
}
|
by: Chris Leonard |
last post by:
Hi.
I've copied some code from a book which will enable me to make a layer
around a page, my aim is to do something a little more complex but this I
thought would get me started.
Anyway, I've run into a problem before I even start! The script works OK, it
runs the image in from the left hand side quite nicely, great. Problem I
have it always scrolls up to the top of the page, when the link I click
maybe 2 or 3 screens below (does that...
|
by: Ken Kast |
last post by:
Here's my situation. I have an object
function Obj () {
this.foo = null;
}
a function
function bar() {...}
another function
|
by: cwdjrxyz |
last post by:
There have been fancy dhtml text effects since the early days of
javascript. The rainbow text effect was one of the early ones. While
some such effects may be fun on private pages, they can easily become
obnoxious, especially on commercial sites. To a large extent, dhtml
text effects have been replaced by flash, likely because the flash
effects often are more easy to make for many people.
How bad can a dhtml text effect be? Many of you...
|
by: hemant.singh |
last post by:
Hi all,
I am trying to get a way by which I'll know exactly when user goes out
of my site by clicking on close button in browser, So that w/e user
click close button in browser, I can send a signal to server.
This seems to be achievable with body unload events, but it is little
too much, as even if user navigate within my site, this event will be
generated, this can be avoided by handling onclick of each link, so
that I'll know exactly...
| |
by: Tarik Monem |
last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along the way.
First, deep linking is not something that a completely AJAX web site should be able to do by it's very nature of everything being on one page basically. So how can a person deep link to something that is on one page?
This question...
|
by: ninhovid |
last post by:
Hi...
i'm new at dhtml, and i want to use it in help windows (instead of window.open() of javascript)...
i'm done it... but it works only in internet explorer.. in firefox 2 and 3 it opens the dhtml modal window but in the background of my main page... what do i have to correct so it opens up in front as it does in internet explorer?
i'm using c# and ajax... it's an asp.net app...
in masterpage i have this:
<link rel="stylesheet"...
|
by: Chris Riesbeck |
last post by:
I have an image with a class and the class defines a clip rectangle.
In Firefox 2 and 3, and Opera 9, I can access the rectangle with
document.defaultView.getComputedStyle().
But that doesn't seem to work in Safari for Windows 3, nor when I use
image.currentStyle.clip in IE 7.
Is there a way to do this in those browsers? Am I doing something stupid?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |