16,018,114 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Phionix11 (Top 12 by date)
Phionix11
21-Jul-14 5:34am
View
If i dont use update panel it postback the whole page....
Phionix11
21-Jul-14 5:33am
View
not working even using Triggers with Asynchronous tag in it.
Phionix11
20-Nov-13 9:42am
View
reading data of csv file from http://192.168.101.10/logs/abc wont work.....how can i achieve in VB.NET code, as I used directoryinfo for this but it cannot be used for URL'S.
Phionix11
1-Jul-13 17:27pm
View
Below is response result that I get,when there are multiple records then it shows json array,when there is only 1 record then it shows json object and if there is no record then it shows null.
Example 1]Response:-
{
"success":true,
"message":null,
"result":
{
"TravelData":
[
{ "travelMode":"Bus","Distance":"30" },
{ "travelMode":"Car","Distance":"22" },
{ "travelMode":"Cycling","Distance":"24" },
],
"HomeHeatingData":
[
{ "billType":"Electricity","amount":"650" },
{ "billType":"Phone","amount":"300" }
],
"FootPrintData":
{ "userId":"147",
"Saved":"12.76",
"Produced":"35084.55"
}
}
}
Example 2]
Response:-
{
"success":true,
"message":null,
"result":
[
{"date":"2013-05-24","Produced":"854.93","Saved":"0.02"},
{"date":"2013-05-25","Produced":"854.93","Saved":"0.28"},
{"date":"2013-05-28","Produced":"854.93","Saved":"0.17"},
{"date":"2013-05-30","Produced":"857.82","Saved":"3.45"},
{"date":"2013-05-31","Produced":"862.61","Saved":"0.00"}
]
}
Phionix11
1-Jul-13 16:19pm
View
Here is my code, of JsonResponse file
class JsonResponse{
public $timestamp;
public $success;
public $message;
public $result;
function __construct($success, $errorMessage, $result){
$this->timestamp=gmdate('Y-m-d\TH:m:s\Z');
$this->success = $success;
$this->message = $errorMessage;
$this->result = $result;
}
}
and in another file i use this to send response result back,
echo json_encode(new JsonResponse($this->success, $this->message, $this->result));
here "$this->result" contains actual result from mysql
Phionix11
6-Apr-13 6:44am
View
Its good article but It did'nt work for me. I want to check time whether the incoming request is within 10 minutes range. so that i can know that request is older so expired.
Phionix11
1-Apr-13 7:35am
View
Its Hash based message authentication code which is used to encrypt or decrypt the request/data
Phionix11
20-Mar-13 7:09am
View
hey thanx prasad....it works fine after ur post i added return false at the end and it worked. It was always giving me error if i try to run directly without breakpoint of google chrome. Now its working....Thanks again for your help and post :)
Phionix11
20-Mar-13 7:08am
View
Deleted
hey thanx prasad....it works fine after ur post i added return false at the end and it worked. It was always giving me error if i try to run directly without breakpoint of google chrome. Now its working....Thanks again for your help and post :)
Phionix11
19-Mar-13 5:37am
View
emailid=$('#emailid').val();
password=$('#password').val();
After making changes as per ur comment i still have the same problem
Phionix11
28-Feb-13 7:09am
View
My "client.php" code is as show below,
<!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>Get Details of Specified Employee</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
function getdetails()
{
var empid=$('#txtid').val();
$.ajax( {
type: "POST",
url: "server.php",
data: { empid:empid}
} ).done(function( result ) {
//document.getElementById('txtname').innerHTML = result['empname'];
//.done(function( result ) {
$("#lblid").html( result['empname'] );
//$('#txtname').val(result["name"]);
//$('#txtsal').val(result["salary"]);
//$('<%=txtname.ClientID %>').val(result["empname"]);
//$('#txtname').val($('#txtid').val());
//$("#txtsal").val( result['empname']);
/*var gg=result['empname'];
$('#lblid').html( " Address of Roll no is "+result );
$('#txtname').val(gg);*/
//document.getElementById('txtname').value=result.content.document;
} );
}
</script>
</head>
<body>
<table width="577" border="1">
<tr>
<td width="142">Employee ID</td>
<td width="229"><label for="txtid"></label>
<input type="text" name="txtid" id="txtid" /></td>
<td width="184"> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="btnsubmit" id="btnsubmit" value="Submit" önclick="getdetails()" /></td>
<td> </td>
</tr>
<tr>
<td>Employee Name</td>
<td><label for="txtname"></label>
<input type="text" name="txtname" id="txtname" /></td>
<td> </td>
</tr>
<tr>
<td>Employee Salary</td>
<td><label for="txtsal"></label>
<input type="text" name="txtsal" id="txtsal" /></td>
<td> </td>
<td><label id="lblid">
</label>
</td>
</tr>
<tr>
<td><label id="lblid">
</label>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</body>
</html>
And "server.php" code is ,
<!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>
</head>
<body>
</body>
</html>
Phionix11
6-Sep-12 12:11pm
View
yes,when user enters his name then his name should be displayed to adjacent textbox in marathi..
Show More