Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Friday, February 19, 2010

java script error in opera for list keyword object

Today i faced a tricky problem in opera with java script.

i had created a object in javascript with name list.
var list = {
create : function () {alert('vinod');
}
}
and i called the list.save function in my code. In FF and chrome it is working fine. But in opera it was throwing the following error

Thursday, February 18, 2010

javascript URL encode and decode functions


1

jscode :
2 function encode() {
3 var obj = document.getElementById('dencoder');
var unencoded = obj.value;
obj.value = encodeURIComponent(unencoded);
}