I have created object using javascript itself without using controller. It is done by using
var cas = new sforce.SObject("Case"); cas.Type = document.getElementById("Type").value; (mapping the value into the corresponding field var a = sforce.connection.create([cas]);
case is created when we use insdie salesforce. But when I publish this page in the sites , it is not working.. Please provide me a solution .. Thanks in advance !!