override css for html5 form validation/required popup

It’s impossible to change the validation style with only HTML5/CSS3. It’s part of the browser. The only attribute I figured out to change is the error message by using this example: document.getElementById(“name”).setCustomValidity(“Lorum Ipsum”); But, as shown in this example : http://jsfiddle.net/trixta/qTV3g/, you can override the panel style by using jQuery. This is not a plugin, … Read more

Detecting the onload event of a window opened with window.open

var myPopup = window.open(…); myPopup.addEventListener(‘load’, myFunction, false); If you care about IE, use the following as the second line instead: myPopup[myPopup.addEventListener ? ‘addEventListener’ : ‘attachEvent’]( (myPopup.attachEvent ? ‘on’ : ”) + ‘load’, myFunction, false ); As you can see, supporting IE is quite cumbersome and should be avoided if possible. I mean, if you need … Read more

Getting Error: Object doesn’t support property or method ‘assign’

As others have mentioned, the Object.assign() method is not supported in IE, but there is a polyfill available, just include it “before” your plugin declaration: if (typeof Object.assign != ‘function’) { Object.assign = function(target) { ‘use strict’; if (target == null) { throw new TypeError(‘Cannot convert undefined or null to object’); } target = Object(target); … Read more

WPF Popup UI showing black

You need to set the AllowsTransparency=”True” Popup Property to True Here is an example: <Grid> <StackPanel> <Button Click=”Button_Click” Width=”100″ Height=”20″ Content=”Click” /> <Popup x:Name=”popup” Width=”100″ Height=”100″ AllowsTransparency=”True”> <Grid Background=”Transparent”> <TextBlock Text=”Some Text” /> </Grid> </Popup> </StackPanel> </Grid> and the click handler private void Button_Click(object sender, RoutedEventArgs e) { popup.Visibility = System.Windows.Visibility.Visible; popup.IsOpen = true; }

How to open a WPF Popup when another control is clicked, using XAML markup only?

I did something simple, but it works. I used a typical ToggleButton, which I restyled as a textblock by changing its control template. Then I just bound the IsChecked property on the ToggleButton to the IsOpen property on the popup. Popup has some properties like StaysOpen that let you modify the closing behavior. The following … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)