Hi,
I have a series of notes in the cells of a table, when they click the
note, it calls a function that creates a text area for the user to
edit the note in. What I would like to do is have it so when they
click outside the text area, it calls another function that changes it
back to a cell displaying the data with the changes.
Is there anyway to do this? Something like:
onClick="editNo te(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
Thanks. 7 13124
On Apr 4, 1:00 pm, KDawg44 <KDaw...@gmail. comwrote:
Hi,
I have a series of notes in the cells of a table, when they click the
note, it calls a function that creates a text area for the user to
edit the note in. What I would like to do is have it so when they
click outside the text area, it calls another function that changes it
back to a cell displaying the data with the changes.
Is there anyway to do this? Something like:
onClick="editNo te(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
Thanks.
Nevermind... it wouldn't even make sense to have something like
this.... then everytime they click outside the span or div it would
call that...
dumb question...
On Apr 4, 11:04 am, KDawg44 <KDaw...@gmail. comwrote:
On Apr 4, 1:00 pm, KDawg44 <KDaw...@gmail. comwrote:
Hi,
I have a series of notes in the cells of a table, when they click the
note, it calls a function that creates a text area for the user to
edit the note in. What I would like to do is have it so when they
click outside the text area, it calls another function that changes it
back to a cell displaying the data with the changes.
Is there anyway to do this? Something like:
onClick="editNo te(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
Thanks.
Nevermind... it wouldn't even make sense to have something like
this.... then everytime they click outside the span or div it would
call that...
dumb question...
You could use onblur() for the text area to trigger the behavior
you're after.
But another option would be to have a button labeled update and the
user can update the info when they're finished making an edit by
clicking the button.
On Apr 4, 1:04 pm, KDawg44 <KDaw...@gmail. comwrote:
On Apr 4, 1:00 pm, KDawg44 <KDaw...@gmail. comwrote:
Hi,
I have a series of notes in the cells of a table, when they click the
note, it calls a function that creates a text area for the user to
edit the note in. What I would like to do is have it so when they
click outside the text area, it calls another function that changes it
back to a cell displaying the data with the changes.
Is there anyway to do this? Something like:
onClick="editNo te(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
Thanks.
Nevermind... it wouldn't even make sense to have something like
this.... then everytime they click outside the span or div it would
call that...
dumb question...
SEE THIS: http://www.quirksmode.org/dom/cms.html
KDawg44 wrote on 04 apr 2008 in comp.lang.javas cript:
On Apr 4, 1:00 pm, KDawg44 <KDaw...@gmail. comwrote:
>Hi,
I have a series of notes in the cells of a table, when they click the note, it calls a function that creates a text area for the user to edit the note in. What I would like to do is have it so when they click outside the text area, it calls another function that changes it back to a cell displaying the data with the changes.
Is there anyway to do this? Something like:
onClick="editN ote(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
Thanks.
Nevermind... it wouldn't even make sense to have something like
this.... then everytime they click outside the span or div it would
call that...
The opposite of onclick must be onNotClick.
[No the date is not April first]
This is easily implemented by resetting/restarting a timeout on every
click.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
KDawg44 wrote:
I have a series of notes in the cells of a table, when they click the
note, it calls a function that creates a text area for the user to
edit the note in. *What I would like to do is have it so when they
click outside the text area, it calls another function that changes it
back to a cell displaying the data with the changes.
Is there anyway to do this? *Something like:
onClick="editNo te(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
The onClick-event could have two pillars:
- show the Textarea of the clicked cell
- hide Textareae of every other cell
Cheers,
--
Bart
On Apr 4, 3:00 pm, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:
The opposite of onclick must be onNotClick.
[No the date is not April first]
You may have missed April 1 a bit, but still, lol.
How about a onNotLoad event?
This way when a visitor does not come to your site, you can open a
nasty pop up window on them. :>
On Apr 5, 9:05 am, Bart Van der Donck <b...@nijlen.co mwrote:
KDawg44 wrote:
I have a series of notes in the cells of a table, when they click the
note, it calls a function that creates a text area for the user to
edit the note in. What I would like to do is have it so when they
click outside the text area, it calls another function that changes it
back to a cell displaying the data with the changes.
Is there anyway to do this? Something like:
onClick="editNo te(noteID);" onClickOut="dip layNote(noteID) ";
onClick works but is there something like onClickOut?
The onClick-event could have two pillars:
- show the Textarea of the clicked cell
- hide Textareae of every other cell
Cheers,
--
Bart
I thought of this but then if they want to go back and click somewhere
in the textarea to make a change, it will commit what they have
instead.
I simply added link that says DONE which calls the function. This
seems to be working fine... though my AJAX calls seem to work three
times then stop working... but that's another problem.
:)
Thanks for everyone's help and suggestions. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: achrist |
last post by:
The yield statement looks to be a big step toward some kind of
lightweight concurrency-oriented programming in python. Is there
any similarly nice way to do the opposite of yield, just sit around
(perhaps in the middle of a loop) and wait until some other routine
(unknown to the waiting module) hurls a value in?
If this is not implemented now, is there any chance that it's on the
list of things to come?
|
by: MEM |
last post by:
hello,
I'd like to 'disable' an image link based on a value selected in a
drop down.
I currently have an image link that has the onclick event set to
execute a function.
For example:
|
by: WindAndWaves |
last post by:
Hi Gurus
I have the following code:
function CI(ImgN, Alt){
if( document.getElementById && document.getElementById('il') ){
var d=document.getElementById('il');
|
by: Vinita Sharma |
last post by:
Hi All,
I have a strange problem. I have 2 text boxes and a button in my form. There
is a function called on onchange event of the first text box. There is
another function called on onclick event of the button. Things work fine if
you move from one field to another using tab keys. But if you change
something in the first text box and move to button using mouse, the onchange
event of the text box is called but the onclick event of the...
|
by: pranav.choudhary |
last post by:
Hi
I am new to python. I wanted to know if there is an opposite of "import"
| |
by: Todd |
last post by:
Hello
We have a page that loads a long list of things. Each row has an onclick
where you can open a window for more information. When you do that the parent
page refreshes to the top of the page....so if you were near the bottom, you
would have to scroll back down to get back to where you were. I would like
the parent page to hold its position when the child opens. Any suggestions?
Thank You
|
by: Wry-mouth |
last post by:
I have a page with an iframe used for wysiwyg editing. When the cursor
is in this iframe and you try to print, only the iframe is printed. Is
there a way to force it to print the entire page (not just the iframe
content) without resorting to a specific "print" button?
(I tried onbeforeprint to change the focus, but that seems to occur
too late.)
|
by: igor.tatarinov |
last post by:
Given a bunch of arrays, if I want to create tuples, there is
zip(arrays). What if I want to do the opposite: break a tuple up and
append the values to given arrays:
map(append, arrays, tupl)
except there is no unbound append() (List.append() does not exist,
right?).
Without append(), I am forced to write a (slow) explicit loop:
for (a, v) in zip(arrays, tupl):
a.append(v)
|
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: 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: 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.
|
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...
| |