background preloader

Php/ajax/jquery

Facebook Twitter

How to refresh DIV using jquery. jQuery; magic in web programming, have allowed us to use different features with the simple knowledge to use them. I was searching for basic code to refresh the specific DIV using jquery and found this article and like to share with my viewers. There are very simple steps to achieve this:Step 1: Copy the following code and paste it in the head section of your webpage. Here, above the file “reload.php” will be reloaded in every 20000ms i.e 20 second . You can change the file which you have to reload and you can also change the reload time as per your requirement. and secondly, the #loaddiv is the name of DIV which is going to be refreshed. Step 2: and now you need to put the div in the body section of your page Now your page is ready .Click here to see the demo.

Les accesseurs et mutateurs. Les accesseurs et mutateurs Comme vous le savez, le principe d'encapsulation nous empêche d'accéder directement aux attributs de notre objet puisqu'ils sont privés : seule la classe peut les lire et les modifier. Par conséquent, si vous voulez récupérer un attribut, il va falloir le demander à la classe, de même si vous voulez les modifier. Accéder à un attribut : l'accesseur À votre avis, comment peut-on faire pour récupérer la valeur d'un attribut ? La solution est simple : nous allons implémenter des méthodes dont le seul rôle sera de nous donner l'attribut qu'on leur demande ! Modifier la valeur d'un attribut : les mutateurs Maintenant, comment cela se passe-t-il si vous voulez modifier un attribut ? La classe doit impérativement contrôler la valeur afin d'assurer son intégrité car, si elle ne le fait pas, on pourra passer n'importe quelle valeur à la classe et le principe d'encapsulation n'est plus respecté !

Voilà ce que j'avais à dire concernant ces accesseurs et mutateurs. Formation PHP avancé - Cake PHP. CSS. jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. it’s also known for fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. Or in developer’s words “write less, Do more”. Modern web sites are designed... Modern web sites are designed to provide various types of interactions with users. CSS3 and jQuery effects are used in most of those situations. Scrolling is one of the major effect used for these interactions. So I am going to talk about a plugin called scrollorama, which can be used... The design industry is probably one of the fastest growing. The web is constantly evolving. CSS has come a long way from formatting the structured content. CSS is a wonderful language for presenting web pages. The CSS box model lies behind everything you do in CSS.

PHP Code Snippets.