-1
With this jquery I am importing the whole page, but I can’t put html Divs in the middle of the query, only at the end.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Getting Started with jQuery</title>
<script src="Scripts/jquery-3.0.0.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#divteste').load('AdminPagina.aspx')
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="divteste">
<span>Test inside div</span>
</div>
</form>
</body>
**texto em negrito**</html>
Dude is very confused your question. You want to import html at the top, on the left and at the footer is this?
– LeAndrade
The import (black) I managed to do, through the import of another page (what I want is the same Dashboard on all pages), I made a jquery where I care the whole page. Only now I wanted to write where is the green (inside the import) only, I can only write underneath all import, where is the red. But yes basically what I want to do is what you said, getting by some gridviwes where the green is , thanks
– Pedro Cardoso
Maybe the best thing is a framework that does this for you, like Vue.js, for example. Structuring code based on jQuery often gets disorganized
– Costamilam
But then in case you wouldn’t have to separate the Imports. Make a html to top, side and footer and so do the import separately, leaving the middle free?
– LeAndrade
Guilherme , I think this is not so difficult to do so to the point of using framework , I say. But if I have no other option I’ll try thank you
– Pedro Cardoso
Leandrade , yes my question was this , I will have to divide the Imports to be able to write among them ?
– Pedro Cardoso
Can you import the parts together tbm, since on this page you already leave a separate space in the middle that in case it would be the html of the page (green part) that will receive the import, understood?
– LeAndrade
I think I realized , but then on the page I want, I call jquery with all the import together, already with the green space ready to put whatever you want , but and then how do I put there a div if I imported everything together ? how do I write in the middle of jquery ? you can call a div that is inside jquery ?
– Pedro Cardoso
The green part you write normally, with Divs, and everything else.
– LeAndrade
If you notice the code above, I write the jquery and put it inside the <div id="divteste"> but then I can’t write anything else inside that div, I have to create another one and then this one writes me under all import (red zone). My question is what I call to write in the green part, thank you
– Pedro Cardoso