Using Var Keyword In Javascript

Quite a lot of people who use Javascript may wonder sometimes why there is a var keyword. Although we may not notice it since there barely will come a point in time where we may not notice it, there is a real purpose for the var keyword. If you place the var keyword beside a variable name inside a function, it will set that variable’s scope to local. Meaning, once the function finishes its task, that variable will become non-existent.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(2 votes, average: 5.00 out of 5)
 Loading ...

Access Servlet Session Attribute Using JSTL

In Java this piece of code, request.getSession().getAttribute(”my_var”) can be accessed using JSTL with the sessionScope keyword. To access my_var, call sessionScope.myvar.

Remember to use sessionScope because if your Java code looks like this: request.getAttribute(”my_var”) will not work. See sample JSTL code below.

<c:out value="${sessionScope.my_var}"/>

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(2 votes, average: 5.00 out of 5)
 Loading ...

Destination Weddings

Karisma Hotels is a group of secluded white sand beaches on the Mexican River Maya. Its resorts and beaches are the perfect site for a destination weddings. All amenities you are looking for are here, and more. State of the art technology and the best service giving you an unforgettable experience making you want to go back even after your wedding night. One important aspect for a good resort is its food. They strive to be unique. They create their own pasta and sauces, bake their own bread and use fresh from the market ingredients to make sure that what gets served to you is fresh and new. If you are on some kind of diet, they even have special menus for you to choose from. The awesome view of the horizon and landscape abound in all their beaches and resorts. Choose from El Dorado Royale Resort, The Swim-up, El Dorado Seaside Suites, Azul Beach Hotel, The Gourmet and Hidden Beach Resort and enjoy your wedding destination the way it should be.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Check If Layer Is Visible Or Not Using JQuery

You can check if a layer like DIV or SPAN is visible or not in JQuery with the visible attribute.

if ($("#MY_DIV_ID").is(":visible")) {
  alert('visible!');
}

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(1 votes, average: 5.00 out of 5)
 Loading ...