column with link and the browser back button, static table binding.
column with link and the browser back button, static table binding.
pro_trades
Posts: 1Questions: 0Answers: 0
Hello,
This is the first time I use DataTables and it's awesome. Great work. I have a couple of questions. I'm setting up a table and load the data into it with sAjaxSource. I'm also defining the columns with the table initialization. So:
- Can I define a static table and then use it with DataTable? kind of like a table template of how I want it coded and then DT will use this template to build the table with sorting, filtering and the whole nine yard. something like this:
I'm using bootstrap as well, I followed the posts on your site and got it to work and display fine.
[code]
Id
Account
Status
Action
[/code]
Second question is with the column defs. I have one of the colums as an account that uses the fnRender method to build an href link. Something like this:
[code]
fnRender: function (o) {
var code = $.trim(o.aData.Account);
return "" + code + "";
}
[/code]
everything works fine and the lines are generated but when i click on one account and go to the account page to look at that account and then I hit the back button, the table is displayed without the links. I have to refresh the page for the links to show up again. so:
- Why the links are disappearing when I hit the back button?
- Is there a work around?
Thank you in advance
This is the first time I use DataTables and it's awesome. Great work. I have a couple of questions. I'm setting up a table and load the data into it with sAjaxSource. I'm also defining the columns with the table initialization. So:
- Can I define a static table and then use it with DataTable? kind of like a table template of how I want it coded and then DT will use this template to build the table with sorting, filtering and the whole nine yard. something like this:
I'm using bootstrap as well, I followed the posts on your site and got it to work and display fine.
[code]
Id
Account
Status
Action
[/code]
Second question is with the column defs. I have one of the colums as an account that uses the fnRender method to build an href link. Something like this:
[code]
fnRender: function (o) {
var code = $.trim(o.aData.Account);
return "" + code + "";
}
[/code]
everything works fine and the lines are generated but when i click on one account and go to the account page to look at that account and then I hit the back button, the table is displayed without the links. I have to refresh the page for the links to show up again. so:
- Why the links are disappearing when I hit the back button?
- Is there a work around?
Thank you in advance
This discussion has been closed.