0

Possible Duplicate:
jQuery .load() call doesn't execute javascript in loaded html file

on the page loading with .load(), can not be using jQuery? do will re-load files js to page loading with .load()? How can load once js file in page header? This is content page that is loaded with .load()

<script type="text/javascript" src="files/js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="files/js/ok.js"></script>
// not want this js files (jquery-1.6.min.js - ok.js) load  here 
//i once they to page original load, with this load is twice load
<div class="insert">
    <form action="" method="post">
        <table class="servicesT" cellspacing="1">
            <tr>
                <td colspan="2" class="servHd">
                   hello
                </td>
            </tr>
            <tr>
                <td>
                    <input type="text" name="name" placeholder="name" title="name">
                </td>
                <td class="servBodL">
                </td>
                <td class="servBodL">
                </td>
            </tr>
        </table>
    </form>
</div>
Community
  • 1
  • 1
meti
  • 11
  • 3

1 Answers1

0

perhaps you meant this:

$("#someDiv").load("sompage.html .insert")

should load someDiv with the content of the div with class insert. An ID would possibly be better and I do not know if the scripts are loaded, firebug would see if they were

mplungjan
  • 169,008
  • 28
  • 173
  • 236