Migrating a datatable from zope to wordpress

Migrating a datatable from zope to wordpress

ZanaradogZanaradog Posts: 3Questions: 0Answers: 0
edited May 2012 in General
Hi!

I´m migrating a website from an old zope installation to wordpress and I´m having some trouble getting the migrated datatable to post the data. I hope someone can point me in the right direction. After reading several posts on the forum I have a feeling that it might be because of wordpress ajax-handling, but I cant seem to understand how to get around that.

Any tip or help is greatly appreciated!

wp-site: http://wordpress.pht.no/rfe/tilsluttede-foretak2
old site: http://www.eiendomsmeglingsnemnda.no/xp/pub/hoved/tilsluttede_foretak/index.html
Debug code: ujeneh

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    [code]



    Overskrift

    ...
    [/code]

    Just one column there, but in the initialisation for the table you define five columns. That mismatch might well result in the error you are seeing (although it is difficult to say with the minified version of DataTables).

    I'd suggest just removing everything from inside the tag (the thead, tbody etc).

    Allan
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    I just realised that this is thread 10'000 - hooray :-)
  • ZanaradogZanaradog Posts: 3Questions: 0Answers: 0
    Thanks for the reply Allan!

    Since last time I have gotten allot further, altough I havent managed to solve the problem. Some errors have been removed and I can see in firebug that the page is sending requests when I change something. But I am still struggling to display the data.

    oh and I changed the link for the page:
    http://wordpress.pht.no/rfe/tilsluttede-foretak

    I have tried removing everything between the table tags as you suggested, but unfortunately that didn´t change anything.

    I also switched for the full version of datatables instead of the minified one and did the same with jquery.

    Cool with the thread number :-)

    -Thor-
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    You are attempting to load a JSON source with the domain www.eiendomsmeglingsnemnda.no, from your page's host domain of wordpress.pht.no . This is a security violation (XSS) and the browser will block it. If you need to load data from a different domain, have a look at using JSONP.

    Allan
  • ZanaradogZanaradog Posts: 3Questions: 0Answers: 0
    Ah! It all makes more sense to me!
    Hopefully I will be able to find a solution to the problem now.

    Thank you!

    Thor
This discussion has been closed.