我有一个提交表单,供我的客户使用跟踪代码跟踪他们的订单。我想显示从船公司网站查询的订单状态结果。如何在新div中显示提交表单的HTML页面
input[type=text],
select,
textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
margin-top: 0px;
margin-bottom: 5px;
resize: vertical;
font-family: "Comic Sans MS", cursive, sans-serif;
font-size: 14px;
font-weight: bold;
}
input[type=submit] {
background-color: #000;
color: white;
padding: 10px 20px;
border: none;
border-radius: 20px;
font-weight: bold;
cursor: pointer;
}
input[type=submit]:hover {
color: #FFF;
background-color: #dd0017;
}
input[type=submit]:active {
box-shadow: inset 0px 0px 10px #000;
color: #FFF;
background-color: #dd0017;
}
.container {
border-radius: 5px;
background-color: rgba(241, 98, 114, 0.25);
padding: 0px;
margin-bottom: 20px;
}
<div class="container">
<div align="left" style="background-color:rgba(241, 98, 114, 0.25);padding:15px 0px 15px 5px;border-radius: 5px; border:1px solid #ff60cd;"><img align="left" alt="Sürat Kargo Takip" src="image\PNGLER\surat-kargo-takip-icon-200x40.png" style="float:none;" /></div>
<form action="http://www.suratkargo.com.tr/kargoweb/bireysel.aspx" align="left" onsubmit="window.open('','top','resizable=1, scrollbars=1,width=790,left=25,top=25')" target="top">
<h2><label for="takipnoalani">Takip NO :</label></h2>
<input id="takipnoalani" name="no" placeholder="Kargo Takip Numaranızı Yazınız..." type="text" />
<input name="action" style="font-size:16px;float:right;" type="submit" value="Getir" /> </form>
</div>
<div id="show_result" style="border:2px solid red;">
I want to show the result of query here<br/>But I couldn't :(<br/> And it would be better if this red bordered div is not shown until the customer click the "Getir" button.
</div>
我的代码是在新页面中打开它。但是,我想在同一个页面上显示它,并使用新的(或现有的但隐藏的)div。我不知道这是否可能。我查看了与此类似的所有问题,但无法找到解决方案。
如果有人能帮助我,我将不胜感激。
你总是可以张贴到同一页的形式,并根据条件的ASPX里面然后输出数据。 –
感谢您的快速回答,@Obsidian Age。对不起,我无法理解......“基于ASPX内的条件”。我的网站基于opencart。我对编程非常陌生。 – ironicskymoon
不幸的是我对ASPX本人不太熟悉 - 我刚刚注意到'