[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
Anyone got an idea of what could be causing it? Without example code of what you are trying to do, it could be anyone's wild guess In the end, an asp:DropDownlist generates to a select object, which jQuery has absolutely zero problems dealing with On Nov 6, 8:42 am, Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use a DropDownLists and jQuery, I was trying to use the jQuery events and then call a function but it seems not to be working. No matter what event I choose nothing happens! Anyone got an idea of what could be causing it? Do drop down lists in .Net not have the standard events
[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
First place to check would be the selector. Make sure the select element is actually getting selected. I'd recommend using Firebug to help you see if the selector you are using is working and to help you formulate one that does if it isn't. -- Brandon Aaron On Thu, Nov 6, 2008 at 7:42 AM, Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use a DropDownLists and jQuery, I was trying to use the jQuery events and then call a function but it seems not to be working. No matter what event I choose nothing happens! Anyone got an idea of what could be causing it? Do drop down lists in .Net not have the standard events
[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
Ok the problems seem to be to do with embedded objects, i.e my dropdownlist exists in a gridview. But if I use a class it should still work shouldnt it? On Nov 6, 2:10 pm, Brandon Aaron [EMAIL PROTECTED] wrote: First place to check would be the selector. Make sure the select element is actually getting selected. I'd recommend using Firebug to help you see if the selector you are using is working and to help you formulate one that does if it isn't. -- Brandon Aaron On Thu, Nov 6, 2008 at 7:42 AM, Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use a DropDownLists and jQuery, I was trying to use the jQuery events and then call a function but it seems not to be working. No matter what event I choose nothing happens! Anyone got an idea of what could be causing it? Do drop down lists in .Net not have the standard events
[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
Yes, selecting by classname instead of id is a much easier solution but then again, that depends on what you are trying to do. 1) Do something in jQuery to just one row's select item 2) Do something in jQuery to all row's select items On Nov 6, 11:38 am, Damien [EMAIL PROTECTED] wrote: a CssClass as selector *^ On Nov 6, 4:38 pm, Damien [EMAIL PROTECTED] wrote: Ok the problems seem to be to do with embedded objects, i.e my dropdownlist exists in a gridview. But if I use a class it should still work shouldnt it? On Nov 6, 2:10 pm, Brandon Aaron [EMAIL PROTECTED] wrote: First place to check would be the selector. Make sure the select element is actually getting selected. I'd recommend using Firebug to help you see if the selector you are using is working and to help you formulate one that does if it isn't. -- Brandon Aaron On Thu, Nov 6, 2008 at 7:42 AM, Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use a DropDownLists and jQuery, I was trying to use the jQuery events and then call a function but it seems not to be working. No matter what event I choose nothing happens! Anyone got an idea of what could be causing it? Do drop down lists in .Net not have the standard events
[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
a CssClass as selector *^ On Nov 6, 4:38 pm, Damien [EMAIL PROTECTED] wrote: Ok the problems seem to be to do with embedded objects, i.e my dropdownlist exists in a gridview. But if I use a class it should still work shouldnt it? On Nov 6, 2:10 pm, Brandon Aaron [EMAIL PROTECTED] wrote: First place to check would be the selector. Make sure the select element is actually getting selected. I'd recommend using Firebug to help you see if the selector you are using is working and to help you formulate one that does if it isn't. -- Brandon Aaron On Thu, Nov 6, 2008 at 7:42 AM, Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use a DropDownLists and jQuery, I was trying to use the jQuery events and then call a function but it seems not to be working. No matter what event I choose nothing happens! Anyone got an idea of what could be causing it? Do drop down lists in .Net not have the standard events
[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
It's just one row, the one being edited. I think ID might be easier since I can define the row. Here is the code I am using: % if (gridview.EditIndex -1) {% { $(#%= gridview.Rows[gridview.EditIndex].FindControl(dropdownbox).ClientID %).select(function() { alert(hello); $(.grid).block({ message: 'h1Processing/h1', css: { border: '3px solid #a00' } }); }); } % } % On Nov 6, 4:47 pm, MorningZ [EMAIL PROTECTED] wrote: Yes, selecting by classname instead of id is a much easier solution but then again, that depends on what you are trying to do. 1) Do something in jQuery to just one row's select item 2) Do something in jQuery to all row's select items On Nov 6, 11:38 am, Damien [EMAIL PROTECTED] wrote: a CssClass as selector *^ On Nov 6, 4:38 pm, Damien [EMAIL PROTECTED] wrote: Ok the problems seem to be to do with embedded objects, i.e my dropdownlist exists in a gridview. But if I use a class it should still work shouldnt it? On Nov 6, 2:10 pm, Brandon Aaron [EMAIL PROTECTED] wrote: First place to check would be the selector. Make sure the select element is actually getting selected. I'd recommend using Firebug to help you see if the selector you are using is working and to help you formulate one that does if it isn't. -- Brandon Aaron On Thu, Nov 6, 2008 at 7:42 AM, Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use a DropDownLists and jQuery, I was trying to use the jQuery events and then call a function but it seems not to be working. No matter what event I choose nothing happens! Anyone got an idea of what could be causing it? Do drop down lists in .Net not have the standard events
[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists
Thought I would make the question clearer. I need to be able to access a control, using JavaScript (or assigning a result from a script that would get the correct ID to then use in the selector), without using code-behind and ideally as concise as possible. Thank you.