Home > Web Front-end > HTML Tutorial > Adding iframe to div can realize Ajax function_html/css_WEB-ITnose

Adding iframe to div can realize Ajax function_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:54:21
Original
1088 people have browsed it

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>
Copy after login


......

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