Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery
Majid Lot..
datatables inside tab with a theme
in
Using jQuery
•
6 years ago
Hi,
I have a problem using a jquery datatable inside a tab, here is what I did :
<link rel="stylesheet" href="css/jquery-ui-1.10.4.css">
<link rel="stylesheet" href="css/jquery-ui-Redmond.css">
<script src="js/jquery-1.10.2.js"></script>
<script src="js/jquery-ui-Redmond.js"></script>
<script src="js/jquery.cookie.js"></script>
<script>
$(function() {
$("#tabs").tabs({
activate: function (e, ui) {
$.cookie('selected-tab', ui.newTab.index(), { path: '/' });
},
active: $.cookie('selected-tab')
});
});
</script>
<div id="tabs">
<ul>
<li><a href="/Grouping/listSAIAdminsAgency.do">SAI Admins</a></li>
<li><a href="/Grouping/listSAIAdminsIFenv.do">Environments</a></li>
<li><a href="/Grouping/listSAIAdminsIFtype.do">Transfer Types</a></li>
</ul>
</div>
listSAIAdminsAgency.do is a server side action that forward to a jsp file called : listSAIAdmins.jsp :
<H1><bean:message key="tablecaption.adminList" /></H1>
<div id="saiAdminList" >
<table id="saiAdminListTable" class="display" width="90%" border="0" >
<thead>
<tr>
<th><bean:message key="label.name" /></th>
<th><bean:message key="label.emailAddress" /></th>
</tr>
</thead>
<tbody>
<logic:iterate id="admin" name="adminList">
<tr>
<td><bean:write name="admin" property="fName"/> <bean:write name="admin" property="lName"/></td>
<td><bean:write name="admin" property="email"/></td>
</tr>
</logic:iterate>
</tbody>
</table>
</div>
<script type="text/javascript" src="js/enhance.js"></script>
<script type="text/javascript">
enhance({
loadScripts: [
'js/jquery-1.10.2.js',
'js/jquery.dataTables -1.10.3.js',
'js/onload.listSAIAdmins.js',
'js/jquery.cookie.js',
'js/loadhelp.js'
],
loadStyles: [
'css/jquery-ui-1.10.4.css',
'css/jquery.dataTables -1.10.3.css',
'css/jquery-ui-Redmond.css'
]
});
</script>
and this is the result :
http://s29.postimg.org/jg5o05fd3/sai_Admin.png
Thanks, your help is appreciated.
1
Reply
Replies(7)
jakecigar
Re: datatables inside tab with a theme
6 years ago
You have a CSS problem. It looks like your table is being centered. Use your web inspector to see where the space comes from.
JΛ̊KE
Leave a comment on jakecigar's reply
Majid Lot..
Re: datatables inside tab with a theme
6 years ago
I found out that there is :
width="90%" and style="width: 90%;"
when I delete style="width: 90%;" from the inspector, the left and right spaces disapear,
But don't know where style="width: 90%;" come from .
Leave a comment on Majid Lotfi's reply
jakecigar
Re: datatables inside tab with a theme
6 years ago
On the right you get several views (in chrome). If you select Styles, you get to see where it came from.
JΛ̊KE
Leave a comment on jakecigar's reply
Majid Lot..
Re: datatables inside tab with a theme
6 years ago
I have already looked in the style, did not see anything that has that width.
Leave a comment on Majid Lotfi's reply
jakecigar
Re: datatables inside tab with a theme
6 years ago
I see that it’s in the HTML, not the CSS. Is it from the data tables plugin?
JΛ̊KE
Leave a comment on jakecigar's reply
Majid Lot..
Re: datatables inside tab with a theme
6 years ago
Here is what I found, but it does not say which file it is located :
It works fine
when I comment from the inspector this :
element.style
{
width
:
90%
;
}
but I don't know where to locate this element.style .
please your help is appreciated.
Thanks
Leave a comment on Majid Lotfi's reply
jakecigar
Re: datatables inside tab with a theme
6 years ago
All the pictures in the world will not help. When you make a demo or share a link, we can take a look,
JΛ̊KE
Leave a comment on jakecigar's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to Majid Lotfi's question
Top
Reply
{"z26393570":[14737000005808844,14737000005810685,14737000005813018,14737000005812636],"z2950240":[14737000005806976,14737000005812058,14737000005812090,14737000005812724]}
Statistics
7
Replies
4239
Views
1
Followers
Tags
Cancel
datatables
tabs
theme
Actions
Permalink