I want to load a HTML file in an Iframe dynamically.
I tried the following code:
<script type="text/javascript">
$(document).ready(function () {
$('a').click(function (e) {
e.preventDefault();
filename = "E:\\SVN_HobbyHomes\\HobbyHomesWebApp\\Models\\"+ $(this).text()+".html";
alert(filename);
$('iframe').attr('src', filename);
});
}); </script>
It doesn't load the file in the path inside the Iframe.
No comments:
Post a Comment