¡@

Home 

2014/10/16 ¤W¤È 12:04:57

jquery Programming Glossary: m1

Farbtastic convert HSL back to RGB or Hex

http://stackoverflow.com/questions/11804027/farbtastic-convert-hsl-back-to-rgb-or-hex

' ' function hsl2rgb hsl var h hsl 0 s hsl 1 l hsl 2 var m1 m2 hue var r g b h Math.round 360 h 1 if s 0 r g b l 255 else.. if s 0 r g b l 255 else if l 0.5 m2 l s 1 else m2 l s l s m1 l 2 m2 hue h 360 r Math.round HueToRgb m1 m2 hue 1 3 g Math.round.. else m2 l s l s m1 l 2 m2 hue h 360 r Math.round HueToRgb m1 m2 hue 1 3 g Math.round HueToRgb m1 m2 hue b Math.round HueToRgb..

jqGrid : issue loading nested sub grid with local datatype

http://stackoverflow.com/questions/13767408/jqgrid-issue-loading-nested-sub-grid-with-local-datatype

sample of my code var mainGridData main grid data id m1 col1 11 col2 12 id m2 col1 21 col2 22 id m3 col1 31 col2 32.. m2 col1 21 col2 22 id m3 col1 31 col2 32 var firstSubgrid m1 data for subgrid for the id m1 id s1a c1 aa c2 ab c3 ac id.. col2 32 var firstSubgrid m1 data for subgrid for the id m1 id s1a c1 aa c2 ab c3 ac id s1b c1 ba c2 bb c3 bc id s1c c1..

jQuery : add css class to menu item based on browser scroller position

http://stackoverflow.com/questions/2703086/jquery-add-css-class-to-menu-item-based-on-browser-scroller-position

on browser scroller position ul class menu bottom li id m1 class active a id 1 href # span Link 1 span a li li id m2 a.. li element. This is how I see it if document .height 500 '#m1' .parent .addClass 'active' . siblings .removeClass 'active'.. the correct li based on the scroll amount if scroll 500 #m1 .addClass active else if scroll 1000 #m2 .addClass active else..

something similar to treegrid in jqGrid

http://stackoverflow.com/questions/6662475/something-similar-to-treegrid-in-jqgrid

false refresh true My JSON var myJson response id m1 subCategory system elementName osname attribute id.. system elementName osname attribute id m1_s1 name osname firstValue Linux n secondValue HP US1000..

How do I verify age using jQuery?

http://stackoverflow.com/questions/8136036/how-do-i-verify-age-using-jquery

function datediff date1 date2 var y1 date1.getFullYear m1 date1.getMonth d1 date1.getDate y2 date2.getFullYear m2 date2.getMonth.. m2 date2.getMonth d2 date2.getDate if d1 d2 m1 d1 DaysInMonth y2 m2 if m1 m2 y1 m1 12 return y1 y2 m1 m2 d1.. d2 date2.getDate if d1 d2 m1 d1 DaysInMonth y2 m2 if m1 m2 y1 m1 12 return y1 y2 m1 m2 d1 d2 function set_cookie name..

Farbtastic convert HSL back to RGB or Hex

http://stackoverflow.com/questions/11804027/farbtastic-convert-hsl-back-to-rgb-or-hex

'background color' 'rgb ' rgb.r ' ' rgb.g ' ' rgb.b ' ' function hsl2rgb hsl var h hsl 0 s hsl 1 l hsl 2 var m1 m2 hue var r g b h Math.round 360 h 1 if s 0 r g b l 255 else if l 0.5 m2 l s 1 else m2 l s l s m1 l 2 m2 hue h 360 r Math.round.. s hsl 1 l hsl 2 var m1 m2 hue var r g b h Math.round 360 h 1 if s 0 r g b l 255 else if l 0.5 m2 l s 1 else m2 l s l s m1 l 2 m2 hue h 360 r Math.round HueToRgb m1 m2 hue 1 3 g Math.round HueToRgb m1 m2 hue b Math.round HueToRgb m1 m2 hue 1 3.. Math.round 360 h 1 if s 0 r g b l 255 else if l 0.5 m2 l s 1 else m2 l s l s m1 l 2 m2 hue h 360 r Math.round HueToRgb m1 m2 hue 1 3 g Math.round HueToRgb m1 m2 hue b Math.round HueToRgb m1 m2 hue 1 3 return r r g g b b function HueToRgb m1 m2..

jqGrid : issue loading nested sub grid with local datatype

http://stackoverflow.com/questions/13767408/jqgrid-issue-loading-nested-sub-grid-with-local-datatype

but haven't been able to find a solution. Here is a simplified sample of my code var mainGridData main grid data id m1 col1 11 col2 12 id m2 col1 21 col2 22 id m3 col1 31 col2 32 var firstSubgrid m1 data for subgrid for the id m1 id s1a.. var mainGridData main grid data id m1 col1 11 col2 12 id m2 col1 21 col2 22 id m3 col1 31 col2 32 var firstSubgrid m1 data for subgrid for the id m1 id s1a c1 aa c2 ab c3 ac id s1b c1 ba c2 bb c3 bc id s1c c1 ca c2 cb c3 cc m2 data for.. id m1 col1 11 col2 12 id m2 col1 21 col2 22 id m3 col1 31 col2 32 var firstSubgrid m1 data for subgrid for the id m1 id s1a c1 aa c2 ab c3 ac id s1b c1 ba c2 bb c3 bc id s1c c1 ca c2 cb c3 cc m2 data for subgrid for the id m2 id s2a..

jQuery : add css class to menu item based on browser scroller position

http://stackoverflow.com/questions/2703086/jquery-add-css-class-to-menu-item-based-on-browser-scroller-position

add css class to menu item based on browser scroller position ul class menu bottom li id m1 class active a id 1 href # span Link 1 span a li li id m2 a id 2 href # span Link 2 span a li li id m3 a id 3 href # span.. scroller position the active class goes the correct li element. This is how I see it if document .height 500 '#m1' .parent .addClass 'active' . siblings .removeClass 'active' if document .height 1000 '#m2' .parent .addClass 'active' ... var scroll window .scrollTop add the 'active' class to the correct li based on the scroll amount if scroll 500 #m1 .addClass active else if scroll 1000 #m2 .addClass active else #m3 .addClass active Even if the above isn't on the right..

something similar to treegrid in jqGrid

http://stackoverflow.com/questions/6662475/something-similar-to-treegrid-in-jqgrid

'navGrid' '#gridpager3' add false edit false del false search false refresh true My JSON var myJson response id m1 subCategory system elementName osname attribute id m1_s1 name osname firstValue Linux n secondValue HP.. false refresh true My JSON var myJson response id m1 subCategory system elementName osname attribute id m1_s1 name osname firstValue Linux n secondValue HP US1000 n isEqual false isPrasentinXml1 false isPrasentinXml2..

How do I verify age using jQuery?

http://stackoverflow.com/questions/8136036/how-do-i-verify-age-using-jquery

DaysInMonth Y M with new Date Y M 1 12 setDate 0 return getDate function datediff date1 date2 var y1 date1.getFullYear m1 date1.getMonth d1 date1.getDate y2 date2.getFullYear m2 date2.getMonth d2 date2.getDate if d1 d2 m1 d1 DaysInMonth y2 m2.. date1.getFullYear m1 date1.getMonth d1 date1.getDate y2 date2.getFullYear m2 date2.getMonth d2 date2.getDate if d1 d2 m1 d1 DaysInMonth y2 m2 if m1 m2 y1 m1 12 return y1 y2 m1 m2 d1 d2 function set_cookie name value exp_d path domain secure.. d1 date1.getDate y2 date2.getFullYear m2 date2.getMonth d2 date2.getDate if d1 d2 m1 d1 DaysInMonth y2 m2 if m1 m2 y1 m1 12 return y1 y2 m1 m2 d1 d2 function set_cookie name value exp_d path domain secure var cookie_string name escape..