The code is supposed to generate this:
PS: This is generated by a PHP Function that the Ajax Load Method Calls.
I got this by looking at the source code in the Firefox without using JQuery.
<div class="banner_div">
<a style="text-decoration:none;" class="ajax_wrapper_of_subpages" href="empresas.php?id=5">
</a>
<a style="text-decoration:none;" class="ajax_wrapper_of_subpages" href="empresas.php?id=2">
<img src="images/banners/19088beb3b6179c9133f4715e3a2ea44.jpg" name="imagem" style="float:left; clear:left; margin-left:1px; margin-top:5px; background-color:background-color:#E4E4E4;" height="175" width="165" />
</a>
<a style="text-decoration:none;" href="Link Yahoo">
<img src="images/banners/af884674833d86799a535fea54bbcd88.gif" name="imagem" style="float:left; clear:left; margin-left:1px; margin-top:5px; background-color:#E4E4E4;" height="175" width="165" />
</a>
</div>
But then it has to update the banners when a link is clicked.
So it calls the JQuery Load Method to reload, but apparently the images don't appear
Since it wasn't appearing the images
I set an alert after the load method is called.
This is my JQuery Load Method
- function atualizarBanners(){
- var full_link = "ajax/header_sidebar1.php";
- $("#banners_left").load(full_link,function(data){
- alert(data);
- });
- }
The Alert Show this ->
And doesn't show the images.
- <div class="banner_div">
- <a style="text-decoration:none;" class="ajax_wrapper_of_subpages" href="empresas.php?id=5">
- </a>
- <a style="text-decoration:none;" class="ajax_wrapper_of_subpages" href="empresas.php?id=2">
- </a>
- <a style="text-decoration:none;" href="Link Yahoo">
- </a>
- </div> <!-- BANNER DIV -->
I've been noticing a lot of problems when loading these stuff, Sometimes I have to remake the HTML Tags because its not showing anything.
Is there any option? I want it to load EXACTLY how it is, I don't know if this is some kind of protection for bad code, but if it is I would like to disable.
But also, this code is really clean. no problem, I don't know.
Thank you in advance.