Including Model windows

Including Model windows

virusvirus Posts: 21Questions: 0Answers: 0
edited September 2010 in General
Hi all..

I am having a datatable, which retrieves vales from the sever .By using "sAjaxSource": "server_processing.php", i got the values. In this I added Edit link to edit the data. Now I need to open the edit window as a model window. How it can be possible??

I tried to add thickbox.js in server_processing.php file. At that time it showing
" DataTables warning: JSON data from server failed to load or be parsed. This is most likely to be caused by a JSON formatting error."
help me plzz to solve this..
Thanks

Replies

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Have a look at the JSON that is returned from your server and run it through http://jsonlint.com - that will tell you where any error might be in the JSON.

    Allan
  • virusvirus Posts: 21Questions: 0Answers: 0
    Hai allan..

    How i can include a .css or .js file inside the file which i had mentioned above?
  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Not sure quite what you mean. If you run Firefox with Firebug and have a look at the console, you'll see the XHR coming back from the server. That will tell you want the response is. Then you can use jsonlint to validate it - my guess is that there is either an error message in the response or an unescaped string.

    Allan
  • keyrochekeyroche Posts: 4Questions: 0Answers: 0
    My comment is a little late, but all you would do is add the css and js files as you normally would in the file that will display the table - not the processing one - and then in the processing file add the rel value to class value to each link that you want to use the thickbox. I don't know how you do it in thickbox, but shadowbox you do
    [code]Link to open in model[/code]

    Hope that helps!
This discussion has been closed.