
Search In
How to change the form action before submit on the basis of element/input field click.
The html sample code for form having radio button and submit button :
<form action="" id="myformID">
<input type="radio" name="changeaction" v
Hello friends, I am writing this blog as I was facing issue reading .xps files. XPS is XML Paper Specification. I resolved this issue by installing xpstopdf converter. This is how I did
This is the easiest way to do:
First, go to Ubuntu Software ce
To add placeholder UITextView first take outlet of UITextField
ex- @property (weak, nonatomic) IBOutlet UITextView *yourTextView;
Then follow these steps
1. In viewDidLoad add these line of code
self.yourTextView.text = @“Please type here.”;
By using below code you can give bottom border to your text fields
-(void)giveBottomBorderToTheTextField:(UITextField *)textField{
CALayer *border = [CALayer layer];
CGFloat borderWidth = 2;
border.borderColor = [UIColor darkGrayCo
We can use browsernizer gem to restrict an application to open on old version of browsers or we can notify user to upgrade browser.
Add gem to Gemfile
gem 'browsernizer'
Run
bundel install
rails generate browsernizer:install
This will be crea
Kaminari is a very popular pagination gem for Rials . It's a Scope & Engine based, clean, powerful, customizable and sophisticated paginator gem which uses scopes to flow nicely with Active Record queries.
Features of Kaminari:
Cle
If you want to make any UIView blur just like 'Notification' bar screen then here is a simple code to make it happen.
This method will return a blur view and you can add that to your view as a sub view.
-(UIVisualEffectView*)createBlurrEff
Setting minimun height and width of cropbox:-
Hello Readers!
In this blog I am going to explain you minheight and minwidth of a cropbox, which is used in the Cropper Jquery Plugin for selecting an image to crop, By default this Cropbox size is fixe
Hi Friends,
Today i will tell you about how we can convert a list to array. We can use 2 methods to convert list to array
Method 1:
//Create a list object
List<string> objList = new List<string>();
//Add Items
Hi,
Today we will discuss how to post data to the MVC Controller through AngularJS.
To do so, you will need to inject '$http' as a dependency while defining your angularJS controller:
app.controller('Controller', ['$scope', '$http', funct
