Home > Article > Web Front-end > Adding iframe to div can realize Ajax function_html/css_WEB-ITnose
Adding an iframe to the div can implement the Ajax function. If you query, for example, city selection, use Ajax to implement it.
In .net, you can consider using UpdatePanel. But when I clicked the query, the originally selected city was cleared.
Using iframe can effectively solve the problem.
<script type="text/javascript"> function searchSupplier(id) { document.getElementById('iframe1').src = 'supplier_detail.aspx?id=' + id; } </script>
9d6f9f11d3a3289dbb089f36a9b9efec
9e594c3ba529efead5d685308f3b2362
3df10c4fed5fbf35b500cf7d8888c957700?fdh:700)">065276f04003e4622c4fe6b64f465b883b3768cc036292c07e16615fdd165c97 here, it must be It needs to be written as 065276f04003e4622c4fe6b64f465b88, otherwise the following html content will not be displayed... maybe the browser thinks it is not over yet. -->16b28748ea4df4d9c2150843fecfba68
......
16b28748ea4df4d9c2150843fecfba68