jquery: load("mydatatable_page.php") not working

jquery: load("mydatatable_page.php") not working

achlanachlan Posts: 20Questions: 0Answers: 0
edited October 2009 in General
Hi,
i´m using this great Tool since a couple of weeks and I really like it! It absolutely fits my needs.
First I need to say thanks for this really good work!!
I´m using server side processing, cause I need to filter from Tables (productdata) with about 3 500 000 of rows inside.
We are optimizing our Database Engine with special caching Tables, so this part will work fine in future ;-)
My problem: when I load a datatable page via "jquery load" into an empty div container like
[code]
$("#mydiv").load("mydatatable_page.php");
[/code]
the tabledata won´t be loaded. It seems hat no code can be executed inside an ajax-loaded script.
The same situation when I load with the ui tabs.
As I´m new to jquery, maybe there are just some things I need to know...
Can anybody help?

Regards,
Achlan.

Replies

  • achlanachlan Posts: 20Questions: 0Answers: 0
    OK,
    found an answer right here:

    http://groups.google.com/group/jquery-en/browse_thread/thread/3d25dc3f469d33b9

    ;-)
  • achlanachlan Posts: 20Questions: 0Answers: 0
    It seems this will just work in Mozilla/FF. IE8 won´t do it...
    any ideas?
  • allanallan Posts: 63,508Questions: 1Answers: 10,471 Site admin
    Hi Achlan,

    I'm afraid I don't know the answer to your question off the top of my head. It sounds like it might be an idea to post back to the thread you've linked to, or create a new one on the jQuery dev list, and ask their advice, as this is more of a general Javascript / jQuery question.

    Regards,
    Allan
  • achlanachlan Posts: 20Questions: 0Answers: 0
    Hi Allan,
    thank you for your fast response!
    Now I found out what´s the problem.
    The $(document).ready (function() inside jquery loaded scripts won´t work. This function just has to be removed and is not necessary.
    My main problem in IE8 was the CSS-part.
    This:
    [code]@import "/inc/css/table.css"[/code]
    will not import a css file into IE8 when the page is loaded via jquery...
    when I use
    [code][/code]
    it works!

    Regards,
    Achlan.
  • jcworxjcworx Posts: 1Questions: 0Answers: 0
    Hi,

    I've done as mentioned above, but my datatable does not function without having the $(document).ready{} function wrapping around the oTable variable. Could there be anything specific that I'm missing? Please let me know.

    Thanks,

    Juan
This discussion has been closed.