CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 6/5/2007 6:14:13 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 145 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
amolchikurte
Asp.Net User
Opening dropdownlist on OnFocus event?6/5/2007 6:14:13 AM

0/0

Hi everybody.. 

Actually it is requirement of my project, which I want to open DropDownList (html control) onfocus or on onmouseover event.

 

So please tell me is it possible to do it in ASP.NET using JavaScript.

 

Thanks try to reply me.

 

Regards

 

AMOL

 

 

 


don't forget to "MARK AS ANSWER" if answer is desired.

Thanks And Regards

__ AMOL

Without your involvement you can not succeed.
With your involvement you can not fail.
Benson Yu - MSF
Asp.Net User
Re: Opening dropdownlist on OnFocus event?6/6/2007 10:08:14 AM

0/0

Hi AMOL,

From your description, I understand that you want to open DropDownList onfocus or onmouseover event. However, I would like to know what the meaning of ?open? is.

Well, I guess the ?open? means ?use?. If there have been any misunderstanding, please let me know. The following code is a demo for your reference. I hope it is helpful to you.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="WebApplication10.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
        function focused()
        {
            document.getElementById('feedback').innerText = 'I am focused';
        }
       
        function mouseovered()
        {
            document.getElementById('feedback').innerText = 'mouse over';
        }
       
        function cleartext()
        {
            document.getElementById('feedback').innerText = '';
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <select id="Select1" onblur="cleartext()" onfocus="focused()" onmouseout="cleartext()" onmouseover="mouseovered()">
            <option selected="selected">aaa</option>
            <option>bbb</option>
            <option>ccc</option>
        </select>
        <span id="feedback"></span>
    </div>
    </form>
</body>
</html>

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
amolchikurte
Asp.Net User
Re: Opening dropdownlist on OnFocus event?6/6/2007 11:12:34 AM

0/0

Thanks a lot Benson,

This code is really helpfull for me But actually there may be some misunderstanding. I will explain you clearly

There is one dropdownlist in which number of cities are present. Normally what we does to select any city, We clicked on dropdown and select city. But what i want is that without clicking on dropdown it should have to show all the  cities( on onmouseover event). after that we could select the city.

Is it possible.

 

Thanks again

If possible please do reply me.. 

 

Regards

AMOL

 

 


don't forget to "MARK AS ANSWER" if answer is desired.

Thanks And Regards

__ AMOL

Without your involvement you can not succeed.
With your involvement you can not fail.
amolchikurte
Asp.Net User
Re: Opening dropdownlist on OnFocus event?6/6/2007 11:14:44 AM

0/0

Thanks a lot Benson,

This code is really helpfull for me But actually there may be some misunderstanding. I will explain you clearly

There is one dropdownlist in which number of cities are present. Normally what we does to select any city, We clicked on dropdown and select city. But what i want is that without clicking on dropdown it should have to show all the  cities( on onmouseover event). after that we could select the city.

Is it possible.

 

Thanks again

If possible please do reply me.. 

 

Regards

AMOL

 

 


don't forget to "MARK AS ANSWER" if answer is desired.

Thanks And Regards

__ AMOL

Without your involvement you can not succeed.
With your involvement you can not fail.
Benson Yu - MSF
Asp.Net User
Re: Opening dropdownlist on OnFocus event?6/8/2007 9:38:25 AM

0/0

Hi AMOL,
 
Thanks for your feedback. I understand that you want to the DropDownList auto drop down when get focus or mouse over.

Based on my test, I failed to do that. Here is the test I have done:

When we click the DropDownList control in the page, it will be drop down. Hence, I think we can simulate a click to implement your requirement. The following code is for this suppose. But it doesn?t work though simulate button click successfully. For this reason, I think it?s by design and cannot do that. In addition, I don't find a function for "select" element to expand.

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>

    <script type="text/javascript">
        function focused()
        {
            document.getElementById('feedback').innerText = 'I am focused';
            document.getElementById('Select1').click();
            document.getElementById('Button1').click();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <input id="Button1" onclick="alert('simulate button click OK!')" type="button" value="button" />
            <select id="Select1" onfocus="focused()">
                <option selected="selected">aaa</option>
                <option>bbb</option>
                <option>ccc</option>
            </select>
            <span id="feedback"></span>
        </div>
    </form>
</body>
</html>

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
amolchikurte
Asp.Net User
Re: Opening dropdownlist on OnFocus event?6/8/2007 12:03:53 PM

0/0

Thanks a lot Benson..

You did great... I have got all which you explain ...Yes You are right ..i think  there is no such function for expand the 'select'

But i did it with another way ... may be it is not right way... but i have to do it... and it is very much simple..

So what i did onmouseover and onmouseout event of select ... i have just changed the size of Select

<script language="javascript">

function open_ddl()
{
document.getElementById("select1").size=5
}


function close_ddl()
{
document.getElementBById("select1").size=1
}


</script>

 

 

<select id="Select2" runat="SERVER"  onmouseover="open_ddl()" onmouseout="close_ddl()">
                 <option selected="selected">SELECT EMPLOYEE</option>
                          <option value="1">SWAPNALI</option>
                 <option value="2" >AMOL-MS</option>
                 <option value="3" >AMOL-J</option>
                 <option value="4" >ASHWINI</option>
                 <option value="5" >JHON</option>
</select>


don't forget to "MARK AS ANSWER" if answer is desired.

Thanks And Regards

__ AMOL

Without your involvement you can not succeed.
With your involvement you can not fail.
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dreamweaver CS3 Bible: Master Every Aspect of Dreamweaver - Work with CSS, Text, Images, And Links - Incorporate Flash Movies and Other Media Authors: Joseph W. Lowery, Pages: 1112, Published: 2007
Dreamweaver MX 2004 Bible Authors: Joseph W. Lowery, Pages: 1177, Published: 2004
Adobe Acrobat 6 PDF For Dummies Authors: Greg Harvey, Pages: 408, Published: 2003
Dreamweaver MX Bible Authors: Joseph W. Lowery, Pages: 1178, Published: 2002
Dreamweaver 3 Bible Authors: Joseph W. Lowery, Pages: 1081, Published: 2000
Dreamweaver 4 Bible Authors: Joseph W. Lowery, Pages: 1178, Published: 2001
Making Use of JavaScript Authors: Shweta Bhasin, Pages: 448, Published: 2002
How to Design and Build the Coolest Website in Cyberspace: hot design solutions for the coolest site on the web Authors: Nick Nettleton, Jerry Glenwright, Pages: 224, Published: 2002
How to Do Everything with Adobe Acrobat 8 Authors: Doug Sahlin, Pages: 508, Published: 2007
AJAX, Rich Internet Applications, and Web Development for Programmers Authors: Paul J. Deitel, Harvey M. Deitel, Pages: 991, Published: 2008

Web:
Opening dropdownlist on OnFocus event? - ASP.NET Forums From your description, I understand that you want to open DropDownList onfocus or onmouseover event. However, I would like to know what the ...
onblur/onfocus can only be used in form elements?! [Archive ... What's interesting though is that it appears that onFocus event ... But it must be so, b/c my link which spawns the dropdown div has both an onFocus and ... open even though you have moved off the link that spawned it). ...
Open the dropdown of a Select element on focus - CodingForums.com Open the dropdown of a Select element on focus HTML & CSS. ... Is it possible to open the drop down list of a Select element when the Select ...
IE7 closes dropdownlist if style changed via javascript I see some question here (and elsewhere) about the onmousedown event as a solution. ... I have to change the backgroundColor of a dropdownlist on focus. And if you ... IE6 and Firefox this works and the DDL remains open. ...
Html cheat sheet opening dropdownlist on onfocus event? html checkmark · gridview radiobutton java clear selection · html code cheat sheet hide ...
How to expand drop down list on focus or select : Java Script Nov 5, 2008 ... Keywords: How to expand drop down list on focus. .... Do you think that it would be possible to open a new window on focus and then close on ...
Understanding Success Criterion 3.2.1 | Understanding WCAG 2.0 Any component that is able to trigger an event when it receives focus must not ... A dropdown menu on a page allows users to choose between jump destinations. ... Techniques and Failures for Success Criterion 3.2.1 - On Focus ... F52: Failure of Success Criterion 3.2.1 due to opening a new window as soon as a new ...
CodeProject: Auto select (Incremental search, Auto-complete) an ... Sep 23, 2008 ... Add these events to your dropdown field: onfocus="this. .... source code and files, is licensed under The Code Project Open License (CPOL) ...
Memory Leak IE Javascript attribute add onblur - C#(C Sharp) In the code behind (.cs) I'm adding onchange, onblur and onfocus events to a. ... dropdownlist). After using Drip i've found that these are leaving open DOM ... identify open DOM calls (in reference to leaked memory). ...
Memory Leak IE Javascript attribute add onblur - bytes In the code behind (.cs) I'm adding onchange, onblur and onfocus events to a bunch of objects that reside on my page (textboxes and dropdownlist). After using Drip i've found that these are leaving open DOM objects. ... identify open DOM calls (in reference to leaked memory). I'm just not ...




Search This Site:










block clicking a button twice.....

index page question

idisposable

templating, step 1

add record sql error if exists using stored proc

can some one help me?

msde vs access? whos better?

conditional (or programmatic) data binding in a templated control

simple troubleshoot:

xaml vs asp.net

how to use a string as sql query...

can you bind a generic list to a dropdown

image linking to database

what is multi-thread ? and what multi-thread for?

message queue in asp.net

paralel testing of 2 web applications

how to properly build an ntier app

sending automatic email after successful registration

sqldatetime overflow

what software do you use?

email architecture

general learning strategy.

overload resolution failed because no accessible 'update' accepts this number of arguments

blogs, blog, blogs

really simple parse question

auto run file in c#

declare problem

javascript countdown timer in content page

reading from a file

saving userdata with local datetime

  Privacy | Contact Us
All Times Are GMT