This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$.ajax({ | |
type: "GET", | |
url: "http://localhost/MyRESTService/ProductRESTService.svc/GetProductList/", | |
dataType: "xml", | |
success: function (xml) { | |
$(xml).find('Product').each(function () { | |
var id = $(this).find('ProductId').text(); | |
var name = $(this).find('Name').text(); | |
var price = $(this).find('Price').text(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// Encrypt Function | |
function mc_encrypt($encrypt, $mc_key) { | |
$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); | |
$passcrypt = trim(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $mc_key, trim($encrypt), MCRYPT_MODE_ECB, $iv)); | |
$encode = base64_encode($passcrypt); | |
return $encode; | |
} | |
// Decrypt Function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Example | |
* | |
* This is an example of a few basic user interaction methods you could use | |
* all done with a hardcoded array. | |
* | |
* @package CodeIgniter | |
* @subpackage Rest Server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers; | |
import java.util.ArrayList; | |
import org.zkoss.zk.ui.Component; | |
import org.zkoss.zk.ui.util.GenericForwardComposer; | |
import org.zkoss.zul.ListModelList; | |
import org.zkoss.zul.Listbox; | |
import org.zkoss.zul.Listcell; | |
import org.zkoss.zul.Listitem; |
NewerOlder