# Your Site Has Been Hacked By KILO HACKER#



..# KILO HACKER was here #..

# ..MoHaMmeD.. #


Mail:~ UTJS@HoTmAiL.CoM


My BB Pin is :~ 21DE1C3B

 

   

00110101001010100011101101010110011110110010011000111000110111000111111000110101101110010000000111111110001110
11001010111111100000100101011111100110110111101110001011010011111100110011110000100101011010000111001110110010
10000111101100111011010010111111000000000110100011011000101010100000000000010101000001001100001010010101011010
00110111011011101111100000000100100101110110100010001010111001111001101100100001100011000110011111010001011010
11000101000110100001011110100110111110001111110110111100000011110101011011010111000100111111000001001000000100
11000111101100101101000110010011000000101010010011000010110100101010000111000001111111011111101101011001100101
00110011010001001010001110110011101010101101011010000101100011011010001110111000100101010111010011001100011100
11010011011010011001001010000000101010111101101001100010100000010001111101000101010111101110001111111000100100
10010011010101011101100000011101010000010001001100011101110000101100000001111000001011101000011110000010010100
011110111010011111001110111001100110110001011100100
10010011000000001010111101110111110010101111111110001101101
11010110011010011011011000110101000011100000011111110110110000110001110110100001010010110101101000101101010110
10011101110001000100110101011010100111101110001110101111001010011011111001001000001001101111110000111011000000
1101101010110110000101101110111100011010011111111010100111010101
0110111010001000010110100110001100001110010111
0001100001111011101010101100011110011110011011101011
1100111000011110101010000010110001011111100011110000001110
0001111101110010000111100011011100111101110001001011
1111010101010101010110000100011011110011111001001101010001
11001111101011011101111101101110100100011110100100001101011001101110000110000001001011011001000000101000000110
10110100000111001001100001000000101000000101001100111001110100101000001010010110011111110110001111000101111010
1001001100110100001100101000100100011001111001010110001110010001
1010010101111001100011110110010111110001011010
111100000110010111110001100000111000000011011101000000011100101001
10111101010110100011101110010011011010001111
00100010101011000111101011100011011110100000111010101101010110110010010110001001011000000100010100111101000000
00100101110111110110101110011100100000010110110000100011100101000100001110100011110101100100100010111011111010
0111001101100000000111001001011000100011001
0100101011100100111110001110111111100100111001101100000011111100001
00001010011111110010110111010111111010001111001011101011010111110000000011001011000110110011110001111111101000
001000000101010111110001101011110100110001000
10100101001110100000110111011010010101001011100100011111110110100
01001100101010101000001011101110100000110001101000100010110011001011111011010111000100100111110110110010000011
01001011110100000000100010101101110001000000001000011010011001011011010011001100110000001011011011001100000101
01101100000000101110101000100011001001001010100111101001010100000011001011001010010011111011000111010110000101
00000001010011000011010000011000101001101001110100010011000100111111010100010010100100010010100010110000101000
10110101100100101010010000001101011111101010101101000011100000010001101010100101011000110011010101001100101011
00100101100101110010101101000010010111101101000001101111011100101011110111010001111111011111010000000100010111
10001001110100101000111000011000010010000010010101100101011100000011001001100110000100001011000010111101100001
11011100000111000000100010011011111010110110110101001111100100011000001011100000010011001111110110001111000011
01100011110011111100010111010010000000001010110110010100111101110111010000110001110001010100111000110011101111
10110101100111111011101000111101000001101110010010011110011010100100010101000010101100111111000000110010101011
01000001001110000101111010011111110011101011011011100001111100001101011100011111010101011100000111101011011000
01010010110001110000001001011100001010001110010111100000101110101000110010100010010110101111010001101111111000
01110101001100010001100010100001001001001011100110000010011111011001101110000001101001010100110101000100101011
11100001001101111100111010000110111011000111011011101010000011110011101011110110111000100001000110110100000001
10101001110100111001101010001000100111011110110100110010101010010100011111001010110101001110110101001000111010
00111110010111110001100010011100001111101110110010000011101111111010111011001010011111100101100000100100101000

 
 

ahlamontada.com

 

Sep 03

2009

Retrieving Data Using AJAX + jQuery

By Jhoy Imperial Under PHP, Web development, jQuery

In this article, I will demonstrate to you a simple code to retrieve post and receive data using AJAX in jQuery.

What does this sample do?

We would send a sample text via $_POST to our remote response file. Our remote url file would then generate a table with a random number of rows and use the sample text that we sent as filler text. We will not be using any <form> element for this sample.

Here is the live demo of Retrieving Data Using AJAX + jQuery.

HTML head

In the <head> area, let’s include our jQuery framework.

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>

CSS

Next, we add little styling for our table.

div#content{
	border:solid 1px #000000;
	margin:5px;
	padding:5px;
	width:600px;
}
div#content table{
	font-family:sans-serif;
	font-size:0.9em;
	border-collapse:collapse;
}
div#content table thead{
	font-weight:bold;
	background-color:#DFDFDF;
}
div#content table tbody tr{
	border-bottom: solid 1px #DFDFDF;
}
.td-col1{ width: 50px;}
.td-col2{ width: 150px;}
.td-col3{ width: 150px;}
.td-col4{ width: 150px;}

HTML body

Our body contains an input field where we would enter the sample text that we want, a button that would trigger the click event and send the value to our remote file and a <div> where the response text will be placed.

<p>
	Enter sample data here
	<input id="data" type="text" value="Lorem Ipsum" />
	<input type="button" href="#get-content" id="clickme"
	value="Get Remote Table Data" />
</p>
<div id="content">
	The table will be placed here
</div>

jQuery Script

Using the click event as a trigger, we will be able to send a $_POST value to our remote file.

Get the value of our textfield with “data” as an id

$("#data").val()

Set the $_POST['data'] with the input text value

data: "data=" + $("#data").val()
success: function(msg){
	$("#content").html(msg)
}

After a successfully request, the response text will be received using “msg” which we will display in our

<div id="content">
	The table will be placed here
</div>

Here is the complete script code

<script type="text/javascript">
	$(document).ready(function(){
		$("#clickme").click(function () {
			$("#content").html('Retrieving...');
			$.ajax({
				type: "POST",
				data: "data=" + $("#data").val(),
				url: "demo/jquery-ajax-post-response.php",
				success: function(msg){
					$("#content").html(msg)
				}
			});
		});
	});
</script>

PHP

Here is content of our remote file

<?php
	$sampleData = 'la la la';
	if (isset($_POST['data']) and trim($_POST['data']) != '' ) {
		$sampleData = trim($_POST['data']);
	}
	$rowCount = rand(1, 10);
?>
<p>
	Total data rows : <?php echo $rowCount; ?><br />
	Sample data : <?php echo $sampleData; ?><br />
	Request time :
	<?php echo date('F d, Y h:i:s a', $_SERVER['REQUEST_TIME']); ?>
</p>
<table>
	<thead>
	<tr>
		<td class="td-col1">#</td>
		<td class="td-col2">Column 1</td>
		<td class="td-col3">Column 2</td>
		<td class="td-col4">Column 3</td>
	</tr>
	</thead>
	<tbody>
	<?php for($rowCtr = 1; $rowCtr <= $rowCount; $rowCtr++): ?>
	<tr>
		<td><?php echo $rowCtr; ?></td>
		<td><?php echo $sampleData; ?></td>
		<td><?php echo $sampleData; ?></td>
		<td><?php echo $sampleData; ?></td>
	</tr>
	<?php endfor; ?>
	</tbody>
</table>

Published by Jhoy Imperial on Thursday, September 3rd, 2009 5:15 am Under PHP, Web development, jQuery

Tagged , , , , , ,

Comments (6)

  1. Wow nice! I have a very hard time debugging AJAX via POST since I can’t test it directly on the URL.

    I used GET most of the time.

    You’ve got a very organized demo page, wow! Maybe I could create mine also. Hmmm…. :D

  2. thanks lys! me too, had a very hard time before :D

  3. Thanks Joy. nice tuts. i wish you can use JSON next time. good work.

  4. thanks ken! actually, i already have a JSON tutorial in my personal blog.

    http://jhoyimperial.wordpress.com/2008/07/28/parsing-json-data-from-php-using-jquery/

    HTH

  5. Anyone have a sample of this using ASP.net?

  6. nice tuts..tenxs!

Leave a Comment

Hacked By KILO HACKER

# Your Site Has Been Hacked By KILO HACKER#



..# KILO HACKER was here #..

# ..MoHaMmeD.. #


Mail:~ UTJS@HoTmAiL.CoM


My BB Pin is :~ 21DE1C3B

 

   

00110101001010100011101101010110011110110010011000111000110111000111111000110101101110010000000111111110001110
11001010111111100000100101011111100110110111101110001011010011111100110011110000100101011010000111001110110010
10000111101100111011010010111111000000000110100011011000101010100000000000010101000001001100001010010101011010
00110111011011101111100000000100100101110110100010001010111001111001101100100001100011000110011111010001011010
11000101000110100001011110100110111110001111110110111100000011110101011011010111000100111111000001001000000100
11000111101100101101000110010011000000101010010011000010110100101010000111000001111111011111101101011001100101
00110011010001001010001110110011101010101101011010000101100011011010001110111000100101010111010011001100011100
11010011011010011001001010000000101010111101101001100010100000010001111101000101010111101110001111111000100100
10010011010101011101100000011101010000010001001100011101110000101100000001111000001011101000011110000010010100
011110111010011111001110111001100110110001011100100
10010011000000001010111101110111110010101111111110001101101
11010110011010011011011000110101000011100000011111110110110000110001110110100001010010110101101000101101010110
10011101110001000100110101011010100111101110001110101111001010011011111001001000001001101111110000111011000000
1101101010110110000101101110111100011010011111111010100111010101
0110111010001000010110100110001100001110010111
0001100001111011101010101100011110011110011011101011
1100111000011110101010000010110001011111100011110000001110
0001111101110010000111100011011100111101110001001011
1111010101010101010110000100011011110011111001001101010001
11001111101011011101111101101110100100011110100100001101011001101110000110000001001011011001000000101000000110
10110100000111001001100001000000101000000101001100111001110100101000001010010110011111110110001111000101111010
1001001100110100001100101000100100011001111001010110001110010001
1010010101111001100011110110010111110001011010
111100000110010111110001100000111000000011011101000000011100101001
10111101010110100011101110010011011010001111
00100010101011000111101011100011011110100000111010101101010110110010010110001001011000000100010100111101000000
00100101110111110110101110011100100000010110110000100011100101000100001110100011110101100100100010111011111010
0111001101100000000111001001011000100011001
0100101011100100111110001110111111100100111001101100000011111100001
00001010011111110010110111010111111010001111001011101011010111110000000011001011000110110011110001111111101000
001000000101010111110001101011110100110001000
10100101001110100000110111011010010101001011100100011111110110100
01001100101010101000001011101110100000110001101000100010110011001011111011010111000100100111110110110010000011
01001011110100000000100010101101110001000000001000011010011001011011010011001100110000001011011011001100000101
01101100000000101110101000100011001001001010100111101001010100000011001011001010010011111011000111010110000101
00000001010011000011010000011000101001101001110100010011000100111111010100010010100100010010100010110000101000
10110101100100101010010000001101011111101010101101000011100000010001101010100101011000110011010101001100101011
00100101100101110010101101000010010111101101000001101111011100101011110111010001111111011111010000000100010111
10001001110100101000111000011000010010000010010101100101011100000011001001100110000100001011000010111101100001
11011100000111000000100010011011111010110110110101001111100100011000001011100000010011001111110110001111000011
01100011110011111100010111010010000000001010110110010100111101110111010000110001110001010100111000110011101111
10110101100111111011101000111101000001101110010010011110011010100100010101000010101100111111000000110010101011
01000001001110000101111010011111110011101011011011100001111100001101011100011111010101011100000111101011011000
01010010110001110000001001011100001010001110010111100000101110101000110010100010010110101111010001101111111000
01110101001100010001100010100001001001001011100110000010011111011001101110000001101001010100110101000100101011
11100001001101111100111010000110111011000111011011101010000011110011101011110110111000100001000110110100000001
10101001110100111001101010001000100111011110110100110010101010010100011111001010110101001110110101001000111010
00111110010111110001100010011100001111101110110010000011101111111010111011001010011111100101100000100100101000

 
 

ahlamontada.com