Textbox ontextChanged event is not triggered...
-
Hi, i have two textboxes to enter the start and end dates. I am using javascript calendar to populate these text boxes. Based on the chosen date values, i need to filter a treeview control. The problem is, the ontextchanged event of the textbox is not firing, when the date is chosen from the javascript calendar. If you enter the date directly into the textbox, the event is firing. I need to find out how to fire the ontextchanged event when the date is chosen from the javascript calendar. Please help. Madhan.
-
Hi, i have two textboxes to enter the start and end dates. I am using javascript calendar to populate these text boxes. Based on the chosen date values, i need to filter a treeview control. The problem is, the ontextchanged event of the textbox is not firing, when the date is chosen from the javascript calendar. If you enter the date directly into the textbox, the event is firing. I need to find out how to fire the ontextchanged event when the date is chosen from the javascript calendar. Please help. Madhan.
madhan_mss wrote:
how to fire the ontextchanged event when the date is chosen from the javascript calendar.
onTextChange fires only in case of editing the textbox by hand Instead, you can put your code on SelectionChanged event of the calendar
Mohamed Gouda Egypt
-
madhan_mss wrote:
how to fire the ontextchanged event when the date is chosen from the javascript calendar.
onTextChange fires only in case of editing the textbox by hand Instead, you can put your code on SelectionChanged event of the calendar
Mohamed Gouda Egypt
The calendar is a javascript. I am unable to trigger this event due to this. Is there any other way to achive this?..
-
Hi, i have two textboxes to enter the start and end dates. I am using javascript calendar to populate these text boxes. Based on the chosen date values, i need to filter a treeview control. The problem is, the ontextchanged event of the textbox is not firing, when the date is chosen from the javascript calendar. If you enter the date directly into the textbox, the event is firing. I need to find out how to fire the ontextchanged event when the date is chosen from the javascript calendar. Please help. Madhan.
-
Hi, i have two textboxes to enter the start and end dates. I am using javascript calendar to populate these text boxes. Based on the chosen date values, i need to filter a treeview control. The problem is, the ontextchanged event of the textbox is not firing, when the date is chosen from the javascript calendar. If you enter the date directly into the textbox, the event is firing. I need to find out how to fire the ontextchanged event when the date is chosen from the javascript calendar. Please help. Madhan.
I take it the JS calendar is being displayed via a standard onclick event linked to an image or button? If that is the case then simply populate a global variable with the current date (textbox values) prior to displaying the calendar and then add logic after the calendar has closed to call a function thats checks if the date has changed and then filter the treeview accordingly. Manipulating DOM elements directly through JS does not fire DOM events.
Clean code is the key to happiness.
-
just as a point maybe you should use asp.net calendar control javascript can be disabled at the client end
Most people don't use that because it sucks, javascript ones are much nicer.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )