我有以下法典:
<a onclick="removeCart( <?php echo $product[ key ]; ?> );" name="remove[<?php echo $product[ key ]; ?>]" class="button"><span>Remove</span></a>
当我点击上述法典所示的“清除”纽芬兰时,我希望将“立克”处决(处决),之后,该页将复读。 任何想法?
感谢。
我有以下法典:
<a onclick="removeCart( <?php echo $product[ key ]; ?> );" name="remove[<?php echo $product[ key ]; ?>]" class="button"><span>Remove</span></a>
当我点击上述法典所示的“清除”纽芬兰时,我希望将“立克”处决(处决),之后,该页将复读。 任何想法?
感谢。
用java字母重新上载:
window.location.href=window.location.href
因此,在浮标后再卸载只会增加浮点末点,即:
onclick="removeCart( <?php echo $product[ key ]; ?> );window.location.href=window.location.href;"
编辑:立即正式编码
<a onclick="removeCart( <?php echo $product[ key ]; ?> );setTimeout( window.location.href=window.location.href , 100)" name="remove[<?php echo $product[ key ]; ?>]" class="button"><span>Remove</span></a>
第一个答案是正确的,也可以使用。
window.location.reload();
you can resubmit the page to itself by triggering the submit of an input field for instance. Assuming that your hyperlink got the id nextLink and you got an input with id submitMe you can do :
$("#nextLink").click(function () {
//setting the url of the action target (your page or controller)
$( #submitMe ).attr( action , /MySection/MyPage.php );
$("#submitMe").submit();
});
The thing is I load context menu items dynamically and it takes time to load, so context menu appears with default values the first time. But if you right-click again, yo see the loaded values. Is ...
I am new to WPF, so I thought this was simple. I have a form with a listbox and a button. In the click handler for the button I do something iteratively that generates strings, which I want to put in ...
I have some code like: header( Refresh: 15; url= . $url); This works fine, except when people are visiting this url via Twitter (posted from a Hootesuite client). Apparently, in all browsers other ...
我正试图将我的q子的最新版本推到我的装置上,迄今为止,除了每次重新命名外,没有找到其他办法。 斜线(待定) 页: 1
I have a ul list that is loaded by an included PHP file. Those items have a "Delete" link that removes them from the list and the database. When an item is removed from the center of the list using ...
Usually, when a refresh is made on an HTML page, the values for input fields are kept (unless you do Ctrl+F5). Is there a header or other type of setting than can change this behavior, without ...
I use the following code to bind an arraylist to a datagrid //fill datagrid public DataTable configData { get { DataSet dsTemp = new DataSet(); ...
I am trying to save updated Forex ticker data from this website: http://forex.offers4u.biz/TickDBReadDB.php?p=EURUSD just hit refresh to update the ticker. when I use my little python script, it ...