Grid inside div

QuestionsGrid inside div
Miguel asked 7 years ago

Hi Abu,

I am trying to load grid php file inside div, my configuration:

Main page with link:

<a class="ajax-link" class="waves-effect" href="clientes.php"><i class="fa fa-tachometer"></i>Revendedores</a>

Main page with div

<div class="container" id="loaded_content" width="100%" height="100%"></div>

Main page with javascript

<script>
$(function() {
$("a.ajax-link").on("click", function(e) {
e.preventDefault();
$("#loaded_content").load(this.href);
});
});
</script>

If i try to load clientes.php from browser it loads perfect, showing all records, when i try inside div no records shown.

What i'm doing wrong?

thanks in advance

Mike

3 Answers
Mike answered 7 years ago

Hi Abu,

I have test inside iframe and works fine, same as your samples. I dont know why didnt work inside div, maybe jquery limitations. Any help is appreciate.

Thanks in advance

Mike

Abu Ghufran answered 7 years ago

Emailing you working demo.

Mike answered 7 years ago

Thanks Abu,

Working!

regards

Mike

Your Answer

5 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?