function MakeRequest(action, data)
{
lastAction = action;
frmUM = '/ajaxaction.php?';
var xmlHttp = getXMLHttp();
xmlHttp.onreadystatechange = function()
{
if(xmlHttp.readyState == 4)
{
buildTable( xmlHttp.responseXML, action );
}
}
xmlHttp.open("POST", frmUM.action+action+'/', true);
xmlHttp.send(data);
}
function toServer() {
inpPwd = document.getElementById('inp_pwd');
pwdTxt = inpPwd.value;
inpPwd.value = '';
divId = document.getElementById('div_id');
userid = divId.innerHTML;
MakeRequest('cng_pw', 'id=' + userid + ';new=' + pwdTxt);
}
$menu = $this->actionIndex();
$menu = $menu['menu'];
<?php
class Page_Portfolio extends Page_Basic{
private $menu;
public function actionIndex() {
$this->menu;
}
public function actionHtml(){
$this->menu;
}
}
<?php
class Page_Portfolio extends Page_Basic{
public function actionIndex() {
}
public function actionHtml(){
$this->actionIndex();
}
}
$('.js-menu-item').click(function(event) {
image = $(this).attr('href');
$mainImg = $('.js-main-image').find('img');
if ($mainImg.attr('src') != image) {
$(".js-gallery-list-link").parent().removeClass('js-selected');
$(this).parent().addClass('js-selected');
$mainImg.animate({
opacity: 0
}, 400, function() {
$mainImg.attr('src', image);
$mainImg.one("load", function() {
$mainImg.animate({
opacity: 1
}, 400);
});
});
}
event.preventDefault();
});
public $db = '';
...
$this->db = new mysqli(...
$testConnect->db->...
$links = function($url) {
preg_match_all("~<img src=\"(.*)\"~Uis", file_get_contents($url), $parsed, PREG_PATTERN_ORDER);
return $parsed[1];
};
foreach($links('http://vk.com/id1') as $link) echo $link."<br>\n";