Loading une page avec jquery
Bonjour,
J'utilise cet script pour charger une page dans un autre page
Code:
1 2 3 4 5 6 7 8 9 10
| $(document).ready(function() {
$.ajax({
url : "http://localhost/monpage.html",
dataType: 'html',
success : function (data) {
$("#mondiv").html(data);
}
});
}); |
ça marche très bien sauf que si je fait CTRL+U j'ai pas la source html de ma page alors que j'en ai besoin pour un autre utilisation
Est ce qu'il existe un moyen de ne pas perdre le source quand on load un page en jquery
j'ai utilisé l'iframe mais c'est la même
J'ai aussi tenter de faire
Code:
1 2 3 4 5
| $('#mondiv').load("http://localhost/monpage.html", function() {
//implementation
}); |
mais je perd la source
Merci pour votre aide