jQuery datepicker, dialog - scroll to a location of date picked -
Issue: scroll to a specific location in a jQuery dialog
I have a date on my site Inline that shows the current calendar month. If the user clicks on any date, I am showing a list of the calendar event coming out of the feed.
The code is given below:
& lt; Div id = "date picture" style = "font: 80%" Trebchett MS ', non-serif;' & Gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; Var Caldet; $ ("# Datepicker") datepicker () .; $ ("# Datepicker"). (Function () {caldate = $ (this) .val (); $ ("# dialog") dialog ({bgiframe: true, maxHight: 450, width: 600, modal: true, dragable: correct, resizable : False, position: 'center', show: {effect: "fade", duration: 600}, hide: {effect: "fade", duration: 600}});}); & Lt; / Script & gt; & Lt; Div id = "dialog" title = "calendar event" & gt; DisplayFed ("Calendar Event") & lt; / Div & gt; DisplayFeed retrieves data from an HTML Assistant class and displays data correctly.
A hurdle now occurs when the user selects a specific date in a downtime and inline. I need to scroll through the list of dialogue to the events that occur on the selected date.
I tried to get the html inside the diva dialog. Wherever I am getting the error, when I try to document. GetElementByID ("#Dialog"). InternalHTML to compare dater with calendars captured during selection.
To keep any idea in the right direction
Thank you.
By solving this issue
then scroll up the event on the selected date To change the selected date, add a special DIV ID created by Event Date (Convert Date to Linux Time Stamp and Added in the Div as ID). Using the Linux Time Stamp date and document.getElementById (linuxtimestamp.toString ()). ScrollIntoView () in javascript
Comments
Post a Comment