
Search In
have a quiz script. My script contains quiz.js, getquestions.php, insertresults.php. In quiz.js:
var i = 1;
var sec = 20;
var timetaken = 0;
var answer;
var points;
var result = .5;
var score = 0;
var f = new Date();
var duration;
var containerWidth
Hi Readers,
Today I will be discussing about the limitation of virtualfields and how can we overcome it's limitations. Firstly, we can not use virtualfields in associated models for conditions,fields arrays or order. Doing so will generally an SQ
Convert a string to uppercase:
strtoupper() function is used to convert a string to uppercase. It convert all characters of string to uppercase.
Syntax:
strtoupper(string)
You have to pass only one parameter to the function i.e., the string whic
This event will be fired when the element loses focus. Mostly it is used with the form validation code(e.g. with the input field in a form). onfocus event is the opposite to the onblur attribute.
Syntax :
<element onload="script">
Example :
How to replace characters in the current URL using Javascript
During development in one of my project, I need to replace an expression in the URL, the code that helped me is as follows:-
The Steps we will follow are:
1. Get the current URL.
2. Rep
Hi all,
Below is an example of switching between list and grid view using jQuery.
$( document ).ready(function() {
$('.show-list').click(function(){
$('.wrapper').addClass('list-mode');
});
$('.hide-list').click(function(){
There is a method provided in rails to convert a string to the camel case.
The method is camelize.
By default camelize converts a string to upper camel case. If we don't specify any argument in camelize method, it will convert the given string to
In c++ we use variables to store the value of a number. The type of the value is needed to be declared first because according to that it will allocate the memory to particular variable.
Every variable is assigned with the unique memory address.
Ther
What happens when you use a printf() function inside another printf() function.
To understand this lets see the following example:
#include<stdio.h>
int main() {
int number = 1234;
printf("%d", printf("%d", printf("%d", number)));
return
In java we can define more than one method inside one class(same class), whose names are same until their parameters or signature are different. This process or method of having more than one method within same class with different parameters or sign
