我有一个形式的输入按钮:
<input type="submit" value="" class="hidde" name="free" id="helpdiv" onmouseover="this.style.background='url('../images/thank_you/thank.png');'" onmouseout="this.style.background='url('../images/thank_you/thank_you.png');'" style="width: 236px; height: 127px;">
Run Code Online (Sandbox Code Playgroud)
和具有事件的jQuery脚本:
onlike:function(response){
$('.uncontent').hide('fade');
$('input#helpdiv').trigger('click');
}
Run Code Online (Sandbox Code Playgroud)
当该函数触发时,我也希望触发输入按钮。该函数正在工作,因为$('.uncontent').hide('fade');被触发了
有任何想法吗?
编辑:
$('input#helpdiv').trigger('click')
要么
$('input#helpdiv').click()
由于某种原因将无法正常工作
我已为长时间运行的进程编写了此示例代码,但Windows窗体冻结直到该过程完成.如何更改代码以使工作并行运行?
var ui = TaskScheduler.FromCurrentSynchronizationContext();
Task t = Task.Factory.StartNew(delegate
{
textBox1.Text = "Enter Thread";
for (int i = 0; i < 20; i++)
{
//My Long Running Work
}
textBox1.Text = textBox1.Text + Environment.NewLine + "After Loop";
}, CancellationToken.None, TaskCreationOptions.None, ui);
Run Code Online (Sandbox Code Playgroud) 谁能告诉我这段代码有什么问题?
<?php
$feedID = '28241415';
$oddsArray = array();
$source = file_get_contents("https://www.bwin.com/partner/xml/query.aspx?source=events&lid=1&xpath=/ROOT/EVENTS/E[@LID=46%20and%20@RID=14%20and%20@SID=4]");
$xml = simplexml_load_string($source);
$game = $xml->xpath("//G");
foreach ($game as $event)
{
if ($event['DBID'] == $feedID)
{
foreach ($event->children() as $odds)
{
array_push($oddsArray, array('oddsID' => $odds['DBID'], 'odds' => $odds['O']));
}
}
}
foreach ($array as $oddsArray)
{
echo $array['odds'];
echo $array['oddsID'];
}
?>
Run Code Online (Sandbox Code Playgroud)
我收到的错误是:
警告:在/home/pokerint/public_html/test.php中为foreach()提供的参数无效
$('a[@rel$='external']').click(function(){
this.target = "_blank";
});
Run Code Online (Sandbox Code Playgroud)
这@意味着什么?为什么@rel而不仅仅是rel?我想提交一个代码更正,我实际上并不知道这是否是一个错字.
有没有办法在没有从Magento管理员创建新订单的情况下编辑Magento中的订单?我怎么能做到这一点?
$.cookie("matrizTela", null);
objCookie = {};
for(var i = 1; i<vList.length;i++){
for(var z=0;z<vList[i].length;z++){
listaY = vList[i][z].childNodes[0].attributes;
listaX = vList[i][z].style;
$.each(listaY,function(key,val){
objCookie[val.nodeName] = val.nodeValue;
});
$.each(listaX,function(key,val){
metodo = "listaX."+val;
propValue = eval(metodo);
objCookie[val] = propValue;
});
console.log(objCookie);
//Need now add objCookie in my cookie in list form!
}
};
Run Code Online (Sandbox Code Playgroud)
OBS: vList是DOM对象列表的矩阵
如何objCookie在我的cookie中动态添加列表表单?
例:
$.cookie("matrizTela", ["objCookie", "objCookie","objCookie"]);
Run Code Online (Sandbox Code Playgroud) 有没有办法使用FormHelper执行此操作:
<button type="submit" class="btn"><i class="icon-search"></i> Sign in</button>
Run Code Online (Sandbox Code Playgroud)
我尝试使用$this->Form->end();它,但它不能按我的意愿工作.
实例化的通常情况是new MyClass(arg1).
当MyClass值是仅在运行时可用的变量时,如何编写情境?
我正在尝试生成一个链接列表,每月一个,从当月开始,向后工作X个月.
我有一些大部分工作,除了它是"跳过"2013年2月.这是我现在拥有的截图:

以下是生成该列表的视图模板中的代码:
<?php for( $i = 1; $i <= 8; $i++ ): ?>
<li>
<?php $prior_time = strtotime( "-$i month" ); ?>
<?php $month = date( 'm', $prior_time ); ?>
<?php $year = date( 'Y', $prior_time ); ?>
<?php $day = date( 't', mktime( 0, 0, 0, $month, 1, $year ) ); ?>
<?php $prior_month_string = date( 'F', $prior_time ); ?>
<?php $prior_month_from = date( 'm/01/Y', $prior_time ); ?>
<?php $prior_month_to = date( "m/$day/Y", $prior_time ); ?>
<?php if( …Run Code Online (Sandbox Code Playgroud) 我的查询必须在特定日期之间获取客户的陈述和某些数据.出于测试目的,我创建了一些测试帐户并使用了完整查询.
现在我需要在日期之间进行过滤.这是我目前的查询:
SELECT
FechaDeSistema,
Code,
CASE
WHEN DR_Socio = @SocioNum THEN cast(Cantidad as decimal(19,2))
END as Debit,
CASE
WHEN CR_Socio = @SocioNum THEN cast(Cantidad as decimal(19,2))
END AS Credit,
CASE
WHEN DR_Socio = @SocioNum THEN cast(BalanceDebito as decimal(19,2))
WHEN CR_Socio = @SocioNum THEN cast(BalanceCredito as decimal(19,2))
END AS Balance
FROM Ledger
WHERE (Debito_Cuenta = @Acct)
OR (Credito_Cuenta = @Ncct)
AND (FechaDeSistema BETWEEN @Start AND @Final)
ORDER BY FechaDeSistema DESC";
Run Code Online (Sandbox Code Playgroud)
日期的参数由我设置的两个日历给出.但是,当我生成报告时,它仍然显示整个数据范围,从不在我选择的日期之间进行选择.我究竟做错了什么?