Tag: Business Website
jQuery | How to hide all right siblings
If you want to hide all following siblings of an element with jQuery then you can use next() function. This function is used to get following siblings (means siblings that occur after selected element) of matched element. If a selector
How to write CSS hacks for IE 11 and Safari
In one of our projects we were working on, website page’s styling was not uniform when viewed on different browsers. To solve this problem, we used CSS hacks for Safari and IE 11. Tag for CSS hacks in IE 11:
Eclipse | Ctrl+click doesn’t redirect to parent function or class
While working in eclipse, we faced a problem in which Ctrl+click was not redirecting to the parent function or class. Solution: To solve this problem, we followed the below steps : 1. Exit Eclipse 2. Go to Workspace 3. Open
PHP | Sorting Complex Multidimensional Array
Suppose we have a complex array like below: $products = array( array( ‘product’ => array(‘id’ => 1, ‘name’ => ‘Jquery tutorial book’), ‘product_details’ => array(‘cost’ => 10, ‘edition’ => ‘first’) ), array( ‘product’ => array(‘id’ => 2, ‘name’ => ‘javascript
How to load webpage faster having large number of images
If your webpage has a lot of images it may load really slowly. We can use jQuery method lazyLoad to load the page faster. Lazy Load delays loading of images in long web pages. Images outside of viewport (means part
Toggling a checkbox on/off through Selenium webdriver
Below is the script for on/off the checkbox using webdriver: package mypackage; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class myclass { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); String baseUrl = “http://www.facebook.com”; driver.get(baseUrl);
How to create a dynamic div using Javascript
Here is sample code if you want to create a dynamic div using Javascript: <script type=”text/javascript”> divCount =0; function createDiv() { var divTag = document.createElement(“div”); var studList =””; studList += ‘<select id=”BOX_’+divCount+'” name=”BOX_’+divCount+'”>’; studList += ‘<option value=””>— Select —</option>’; for(i=0;i<countStud;i++)
Mysql | How to access database remotely
To access Mysql database remotely a good way is to create a new Mysql user and grant it permissions to access database from remote, as explained below: You can create user with two ways From Mysql command prompt: 1. Open
HTML | WordPress | pre tag not working
When pre tag is used in WordPress to include code which contains tags like apex, pre does not work. For Example: <apex:page standardController=”Event”> The above code displays empty screen when used in the pre tag. Solution: Replace < with <