How to find the field value that has focus
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Viswanathan_Sellan
Posted On:   Monday, January 28, 2008 06:56 AM

Hi All, I am Vishu from Chennai. I want to capture the particular field value that has focus dynamically. For ex. http://localhost/tracking/test.php?uid=412. In the above URL, the uid is dynamic one and one web page has more URL's and uid(user id)'s also. Here, I am going to use the Tooltip to display particular user's email id when the user overlay(on focus) the URL. I am using PHP with AJAX. So, I've replaced href value with some javascript functions to dispaly the tooltip message. But, I do not know how to capture the particular href's user value dynamically. Please help me to fix the issue. Thanks in Advance, Cheers, Vishu.    More>>

Hi All,

I am Vishu from Chennai. I want to capture the particular field value that has focus dynamically. For ex.
http://localhost/tracking/test.php?uid=412.

In the above URL, the uid is dynamic one and one web page has more URL's and uid(user id)'s also. Here, I am going to use the Tooltip to display particular user's email id when the user overlay(on focus) the URL. I am using PHP with AJAX. So, I've replaced href value with some javascript functions to dispaly the tooltip message. But, I do not know how to capture the particular href's user value dynamically. Please help me to fix the issue.

Thanks in Advance,

Cheers,
Vishu.

   <<Less

Re: How to find the field value that has focus

Posted By:   Firat_Tiryaki  
Posted On:   Monday, January 28, 2008 09:12 AM

use onfocus event of the form elements,



onfocus="focusedElement=this;"


then you can get it with the var focusedElement.


simply give elements the ability to say that they have focus.

About | Sitemap | Contact