console is undefined in backendless.js

hi i am a new user for beckendless sdk , i am using basic java script sdk and try to access data from backendless.
but when i execute my script i got an error.
app java script and html file is as given below and the backendless.js is using from backendless java script sdk:
please help me what i have to do

/*java cde*/

var APPLICATION_ID = 'my app id',
    SECRET_KEY = 'my secret key',
    VERSION = 'v1'; //default application version;
function price(args)
{
    args=args || {};
    this.Diesel=args.Diesel;
    this.Plus=args.Plus;
    this.Regular=args.Regular;
    this.V_Power=ars.V_Power;
}

var krishPrice=Backendless.Persistence.of(price).find();

document.write("hello completed");
alert(krishprice.toSource());

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="libs/backendless.js"></script>
</head>
<body>
<script src="libs/gasapp.js"></script>
</body>
</html>

Hi Safi,

What is the error you are getting?

Regards,
Mark

in google chrome and mozilla igot blank screen
and when i execute in internet explorer i got the following error:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; InfoPath.2)
Timestamp: Wed, 7 Jan 2015 10:05:15 UTC

Message: ‘console’ is undefined
Line: 346
Char: 13
Code: 0
URI: file:///H:/AKH/mobilewebservice/backendless-js-sdk/libs/backendless.js

check this error and please give me solution.

Hi Safi,

To rule out the possibility of the user error in your code, any chance you could run any of the JS examples included into the Backendless SDK for JavaScript? Make sure to include your application ID and secret key into the code (you can find the instructions in the getting-started documented which is also included into the SDK zip).

Regards,
Mark

Hi Mark,
first of all thank you with the help of you I get the output .
now i am trying to display the value retrieved from backendless to html form elements like textbox or label.
but i can’t get that value in any control.
i can print the value or alert the value but unable to display in any control.
to display in control i am using following code

//html code

Diesel Price:-<input type="text" name="Diesel" />
/*java script code*/
document.getElementsByName('Diesel').value=JSON.stringify(krishPrice['data'][0]['Diesel']);

one more thing that how can i show that values in numeric format without quotation.?
so please give me the solution regarding this issue.
and also can you give me your mail id so that i can contact you.
I am a web developer at AKH infotech.

Hi Safi,

Your question is entirely on the client-side programming and not related to Backendless at all. We typically do not provide support for pure client-side issues. You might want to ask this question on a jQuery or a JavaScript-programming related forum.

Couple of links that might help you:

Regards,
Mark

Hi, Mark,
Thank you for your support .
I got the solution for the data display on web page using java script from backendless.
Thank you again
Regards
Safi Belim