I'm trying to create a function in JavaScript using Dreamweaver8 such that when a user hits the ' F1' key when a text box is selected a separate "pop-up" window will open, with text of my choice.
Does anybody have any pointers or even some source code? I use ASP on my server.
Thanks!
Ross 12 1379
ross m. greenberg said the following on 9/29/2007 2:01 PM:
I'm trying to create a function in JavaScript using Dreamweaver8
That's mistake #1: Trying to let DW create anything having anything to
do with Javascript.
such that when a user hits the ' F1' key when a text box is selected a
separate "pop-up" window will open, with text of my choice.
How intuitive. So, what you want to do is to override my browser
functionality because you think you know better what I need that I do?
You can't do it.
Does anybody have any pointers or even some source code?
Stop trying to muck with the Help menu, you can't over ride it. Why
can't you simply use onfocus/onblur of the textbox to cause your tooltip
box to show up?
I use ASP on my server.
What does what you use on the server have to do with what you are trying
to do in the browser?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
ross m. greenberg wrote:
I'm trying to create a function in JavaScript using Dreamweaver8 such that when a user hits the ' F1' key when a text box is selected a separate "pop-up" window will open, with text of my choice.
Please fix your ... err ... newsreader: http://www.insideoe.com/
I strongly recommend using Thunderbird instead: http://www.mozilla.com/thunderbird/
Does anybody have any pointers or even some source code?
http://www.brain4.de/programmierecke/js/tastatur.php
Note that users do not take kindly on expected application behavior being
altered by script authors.
I use ASP on my server.
Irrelevant, keyboard event handling is client-side.
HTH
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Just for the information's sake, a response that included just the below without editorializing would have been more effective than any of the responses!
===============
<head>
<script>
function d(plugh)
{
alert(plugh);
return false
}
</script>
</head>
<html>
<body onHelp="alert(' The user is looking for help');d(' my own help function');retu rn false">
This event fires when the user presses the F1 key.
</body>
</html>
=============== ===
ross m. greenberg said the following on 9/30/2007 10:20 AM:
Just for the information's sake, a response that included just
the below without editorializing would have been more effective
than any of the responses!
Are you as dumb as you act?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
ross m. greenberg said:
>Just for the information's sake, a response that included just the below without
>editorializi ng would have been more effective than any of the responses!
Once you've run into a few cases where your solution doesn't work,
maybe you'll realize that the editorializing was the most effective
response after all.
--
On Sep 29, 11:20 pm, "ross m. greenberg" <green...@bells outh.net>
wrote:
I can't do the equivalent of "c=getch(); if c==F1 popup('hlp_acct ')" ?
You can detect for an F1 key down, but you cannot prevent the browser
from displaying the Help window. Guess you need to choose another key
(or use the onfocus/onblur tooltip method as advised).
"Lee" <RE************ **@cox.netwrote in message news:fd******** *@drn.newsguy.c om...
Once you've run into a few cases where your solution doesn't work,
maybe you'll realize that the editorializing was the most effective
response after all.
Could you give me a few examples where this solution does not work?
What would have been a really effective would have been a response that said something like "here is a solution that does what you want, except it does not function properly in this situation..."
That would mean such a solution would be entirely active if the cited problems could not possibly arise.
ross m. greenberg said:
> IkxlZSIgPFJFTT BWRWxic3BhbXRyY XBAY294Lm5ldD4g d3JvdGUgaW4gbWV zc2FnZSBuZXdzOm Zk b2NpaDAxOXE3QG Rybi5uZXdzZ3V5L mNvbS4uLg0KIA0K PiBPbmNlIHlvdSd 2ZSBydW4gaW50by Bh IGZldyBjYXNlcy B3aGVyZSB5b3VyI HNvbHV0aW9uIGRv ZXNuJ3Qgd29yayw NCj4gbWF5YmUgeW 91 J2xsIHJlYWxpem UgdGhhdCB0aGUgZ WRpdG9yaWFsaXpp bmcgd2FzIHRoZSB tb3N0IGVmZmVjdG l2 ZQ0KPiByZXNwb2 5zZSBhZnRlciBhb GwuDQoNCkNvdWxk IHlvdSBnaXZlIG1 lIGEgZmV3IGV4YW 1w bGVzIHdoZXJlIH RoaXMgc29sdXRpb 24gZG9lcyBub3Qg d29yaz8gIA0KDQp XaGF0IHdvdWxkIG hh dmUgYmVlbiBhIH JlYWxseSBlZmZlY 3RpdmUgd291bGQg aGF2ZSBiZWVuIGE gcmVzcG9uc2UgdG hh dCBzYWlkIHNvbW V0aGluZyBsaWtlI CJoZXJlIGlzIGEg c29sdXRpb24gdGh hdCBkb2VzIHdoYX Qg eW91IHdhbnQsIG V4Y2VwdCBpdCBkb 2VzIG5vdCBmdW5j dGlvbiBwcm9wZXJ seSBpbiB0aGlzIH Np dHVhdGlvbi4uLi INCg0KVGhhdCB3b 3VsZCBtZWFuIHN1 Y2ggYSBzb2x1dGl vbiB3b3VsZCBiZS Bl bnRpcmVseSBhY3 RpdmUgaWYgdGhlI GNpdGVkIHByb2Js ZW1zIGNvdWxkIG5 vdCBwb3NzaWJseS Bh cmlzZS4NCg0K
The convention for posting in this newsgroup (most of USENET, actually)
is to post in plain text, certainly not base64 encoded text.
It's pointless to ask for a list of situations where some feature
*doesn't* work. There are far too many browsers and browser versions.
However, it's a Bad Idea to try to carry non-web expectations into
web applications. Even if your environment ensures that all of your
users will actually have an F1 key, they probably know better than
to expect it to provide help in an HTML interface.
If you're migrating a legacy application to the web, bite the bullet
and make it work like a web application. It will be easier for you
and your users in the long run.
--
The convention for posting in this newsgroup (most of USENET, actually)
is to post in plain text, certainly not base64 encoded text.
It's pointless to ask for a list of situations where some feature
*doesn't* work. There are far too many browsers and browser versions.
However, it's a Bad Idea to try to carry non-web expectations into
web applications. Even if your environment ensures that all of your
users will actually have an F1 key, they probably know better than
to expect it to provide help in an HTML interface.
If you're migrating a legacy application to the web, bite the bullet
and make it work like a web application. It will be easier for you
and your users in the long run.
"Lee" <RE************ **@cox.netwrote in message
news:fd******** *@drn.newsguy.c om...
>
The convention for posting in this newsgroup (most of USENET, actually)
is to post in plain text, certainly not base64 encoded text.
It's pointless to ask for a list of situations where some feature
*doesn't* work. There are far too many browsers and browser versions.
However, it's a Bad Idea to try to carry non-web expectations into
web applications. Even if your environment ensures that all of your
users will actually have an F1 key, they probably know better than
to expect it to provide help in an HTML interface.
If you're migrating a legacy application to the web, bite the bullet
and make it work like a web application. It will be easier for you
and your users in the long run.
--
Sorry, I wasn't aware I was sending stuff out in base64!
It is reasonable to expect future users to have an F1 key -- querying a user
group that represents about 90% of my expected users about what
functionality they need/want is where I got the F1 requirement to begin with
in the first place. I asked, they told me what they want. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jenny |
last post by:
Hi, I am trying to find a VB way that would create a folder on all
existing drives - the folder name would be the same on each drive. ie
c:\backup, d:\backup, etc. But the folders would only be created if
they don't already exist, and if the drive happens to be one a folder
cannot be created on (ie a cdrom drive) it would just be skipped
without the code generating any errors.
your help on this would be most appreciated. jenny
|
by: Lili |
last post by:
I'm having problems creating a simple stored procedure in DB2. Can
someone help? Here is the screen dump when I tried to load the stored
procedure. Thanks for any help.
Create procedure update_salary (in emp_number char(6), in rate
integer)
language sql
begin
update employee
|
by: Dixie |
last post by:
I wish to add some fields to an existing table in code.
I am using the following code from rkc.
CurrentDb.Execute ("ALTER TABLE MyTable ADD MyNewField Text 25")
This works , but I need to also set the Required, Allow Zero Length and
Indexed attributes. I have tried but keep getting a syntax error.
Also, can I set the default value of a field in code?
Has anyone some examples of these.
TIA
|
by: Simon Verona |
last post by:
I would normally use code such as :
Dim Customer as new Customer
Dim t as new threading.thread(AddressOf Customer.DisplayCustomer)
Customer.CustomerId=MyCustomerId
t.start
Which would create a new thread to display a customer on the screen for example.
However, I have a problem with circular references in my objects which means that I have to load the customer object using reflection ie :
|
by: Peter Erickson |
last post by:
I am running postgresql 7.4.2 and having problems creating a trigger
function properly. I keep getting the following error:
ERROR: OLD used in query that is not in rule
I have a table called journal_entries with a foreign key to a table
called journals. When a entry is added to journal_entries, I am trying
to get it to update the 'mtime' field of the corresponding entry in the
journals table.
| |
by: Najib Abi Fadel |
last post by:
Hi
i have an ordered table of dates let's say:
1/1/2004
8/1/2004
15/1/2004
29/1/2004
5/2/2004
12/2/2004
|
by: shmodi |
last post by:
Hi All,
I am new here and want to get some help for speeding up and resolving IE issue while creating tree using ajax.
My tree contains radio buttons at each level and I am getting all tree data from database. To speed up, what I am doing is to have tree in session at server side
and whenever ajax needs the tree , it sends appropriate tree key request and get the tree object from server.
My problem starts while processing huge tree....
|
by: eragon |
last post by:
I wrote this function to create a new file when the user posts in my forums, and its not creating a new file, can you help me? this script is not copyrighted as the last one.
function createNewFile($name,$mail,$subject,$comments,$count,$date,$other="",$up="0") {
global $settings;
$header=implode('',file('header.txt'));
$footer=implode('',file('footer.txt'));
$content='
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">...
|
by: skyson2ye |
last post by:
Hi, guys:
I have written a piece of code which utilizes Javascript in PHP to create a three level dynamic list box(Country, States/Province, Market). However, I have encountered a strange problem, and I have spent three days trying to debug but to no avail.
Everything is OK when there are only two dependent list boxes, but when adding the third child list box, a problem appears: if I populate the third box only with the value: new...
|
by: austincolby |
last post by:
I am working on creating a SOAP client in Visual Studio 2008 for the first time but am running into a few issues. I added the Web Service reference to the project and am able to see the namespace and set the information for the classes but cannot figure out how to send the information to the server or receive a response. Below is my code and any help is appreciated!
Imports Microsoft.Web.Services2
Public Class Form1
Public...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |