How to pass a value to two actions at the same time? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:00
Original
1678 people have browsed it

<a href = "GetBasForm.action?formId=${formId}></a>
Copy after login

<a href = "BasForm.action?formId=${formId}></a>
Copy after login


How to click it and pass values ​​to two actions at the same time? (The values ​​are the same~)


Reply to discussion (solution)

Call js to do it

<td><a href = javascript:user(${formId})>姓名</a></td> 
Copy after login

function user(formId) {        ???//这里怎么写?}
Copy after login

function user(formId) {
window.open('BasForm.action?formId=' formId);
location='GetBasForm.action?formId=' formId;
}

ajax.....

Use two ajax to transfer values ​​at the same time

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!