CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of navigator
/*
@ Navigator Detect Function (JavaScript)
@author Luca Provenzano (mailto: hiimluca@gmail.com)
*/
 
function NavDetect(Navegador){
        var Navegador = navigator.appName;
        switch(Navegador){
            case 'Netscape':
            alert('Usted está utilizando Mozilla Firefox o Chrome');
111 Views
no comments
 
<Extension()> _
Public Function TimeIntervals(ByVal DateNavigator As DateNavigator) As TimeIntervalCollection
    Dim dc As List(Of DateTime) = (From x In DateNavigator.Selection Order By CDate(x) Select CDate(x)).ToList
    TimeIntervals = New TimeIntervalCollection
    Dim startdt As DateTime = DateTime.MinValue, enddt As DateTime = DateTime.MinValue
    For Each dt As DateTime In dc
        If startdt = DateTime.MinValue Then startdt = dt
        If enddt > DateTime.MinValue _
        AndAlso enddt.AddDays(1) < dt Then
            TimeIntervals.Add(New TimeInterval(startdt, enddt.Subtract(startdt)))
by Thom Lamb   April 21, 2010 @ 9:21am
425 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate