Links not appearing in ie 8 but they do appear in chrome - html

I have some regular garden variety links (this is asp.net MVC 2 so the routing might be a little weird) that appear in chrome but not ie 8. How the heck does that happen?
And here the Link does show up in chrome...
The links that I am refering to are the Add Patient and Add Encounter links on the bottom left hand corner of the page.
Here is the garden variety anchor tag that generates the link...
<a class="AddPatDlg" href="/PatientACO/AddPatient?PopID=1" title="Add Patient ACO Data">Add Patient</a>
<a class="AcoData" href="/PatientACO/AddEncounter?PopID=1" title="Add New Patient Encounter">Add Encounter</a>
Am I losing my mind? How on earth is this possible?
* I just noticed that if I scroll up to a place where I can't see the link and scroll back down the links will appear. When I mouse over them, they will disappear... Help*
update 2: more code
<div id="countdownDiv" style="display:none" align="left">
<p><font color="#990000"><b>This session has expired. Please Refresh the page</b> </font></p>
<form action="/PatientACO/TemplateInfo?PopulationID=1&ActiveAll=1" method="post"> <input type="submit" value="Refresh" id="test" /></form></div>
<div id="frReloadDiv" align="right">
<form action="/PatientACO/TemplateInfo?PopulationID=1&ActiveAll=0" method="post">
<input type="submit" value="Show All" id="test1" /></form><form action="/PatientACO/TemplateInfo?PopulationID=1&ActiveAll=1" method="post">
<input type="submit" value="Active Only" id="Submit1" style="display:none"/></form>
</div>
<div id="tempplateInfo">
<div id="templateResult" class="scroll"></div>
<table id="table1" class="scroll" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>Edit</th>
<th>MRN</th>
<th>Hospital Fin</th>
<th>First Name</th>
<th>Last Name</th>
<th>Date of birth</th>
<th>Completed Pathway</th>
<th>Completed Pathway Reason</th>
<th>PCP Appointment</th>
<th>Specialist Appointment</th>
<th>Admit Date</th>
<th>Discharge Date</th>
<th>Discharge Disposition</th>
<th>Discharge To</th>
<th>Discharge Advocate Call</th>
<th>Home Health Care Accepted</th>
<th>Safe Landing Accepted</th>
<th>PCP Name</th>
<th>PCP Phone</th>
<th>PCP Appointment Location</th>
<th>Specialist Name</th>
<th>Specialist Phone</th>
<th>Specialist Appointment Location</th>
<th>Comments</th>
<th>Patient Room Phone</th>
<th>Phone</th>
<th>Payor</th>
<th>MRN Type</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<a class="AddPatDlg" href="/PatientACO/AddPatient?PopID=1" title="Add Patient ACO Data">Add Patient</a>
<a class="AcoData" href="/PatientACO/AddEncounter?PopID=1" title="Add New Patient Encounter">Add Encounter</a>
<p style="text-align:left">
<b>
</b>
</p>
</div>
Maybe that table align left is throwing me for a loop.
UPDATE: the align left doesn't appear to be doing anything... It seems as though "text-align:right" didn't fix anything
I also noticed that in compatibility mode that issue doesn't appear at all.

Trying wrapping an element around your anchors:
<p class="action">
<a class="AddPatDlg" href="#">Add Patient</a>
<a class="AcoData" href="#">Add Encounter</a>
</p>
Then style the element accordingly:
.action {
clear: both;
display: block;
}

Related

HTML Table wrap col data to fit to the view

Have a question about the HTML view related to the table.
In my HTML view, I have a table.
This is worked in a responsive way when changing the view.
Here I want to change the view that the responsive view comes with a scroll bar.
I want to change it to fit all columns to the view and wrap the column contents.
Any suggestions to do it?
<div class="col-md-12 col-sm-12 grid-margin stretch-card">
<div class="card shadow-card-l">
<div class="card-body">
<center><h4 class="card-title">Task Related Documents</h4></center>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Document Type</th>
<th>Document Note</th>
<th>File Name</th>
<th></th>
</tr>
</thead>
<tbody>
#foreach (var item in Model.TaskFilesHistoryViewModel.OrderByDescending(x => x.Id))
{
<tr class="even pointer">
<td>#item.File_Type</td>
<td>#item.Note</td>
<td>#item.File_Name</td>
<td>
<a href="#Url.Action("DownloadTaskImage","Ajax", new { id = item.Id})" target="_blank" rel="publisher tag" class="btn btn-outline-info ti-import" />
<a href="#Url.Action("RetrieveTaskImage","Ajax", new { id = item.Id})" target="_blank" rel="publisher tag" class="btn btn-outline-success fa ti-eye" />
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
</div>

Ngbpopover is not taking the external css that is define in ng-template when container="body" is used in ngbpopover

I want my ngbpopover to appear at the top of the parent element as it is appearing below the parent element. I had put container="body" in ngbpopover that fix the given issue but somehow the external css is not appearing that I had defined in ng-template.
<mat-tab-group animationDuration="0ms">
<div *ngFor="let sampleData of sampleDataInfo[j]; let i=index">
<mat-tab label="{{targetData[j][i].fullName}}">
<table class="source-target-Info-table">
<tr class="source-target-Table">
<th><img data-toggle="tooltip" data-placement="bottom" title="Sub1"></th>
<th>row2</th>
<th>row3</th>
<th>row4</th>
<th>row5</th>
<th>row6</th>
<th>row7</th>
<th>row8</th>
<th>row9</th>
<th>row10</th>
</tr>
<tr *ngFor="let target of targetData[j][i].files; let file=index">
<td>
<a class="info-link" href="javascript:;" title=" Log-{{sampleData?.sessionId}}" (click)="openDexLog(j,i)">
{{(1)}}
</a>
</td>
<td *ngIf="target.qualityLevel > 0; else negativeQuality">
**<a class="info-link" href="javascript:;" title="Click to see Quality result files" href="javascript:;" placement="top-left" popoverClass="popover-class" [ngbPopover]="popContentQuality" container="body">{{target.qualityLevel}}</a>**
</td>
**
<ng-template class="quality-popover" #popContentQuality>**
<h1 class="quality-heading">Quality Results for</h1>
<h3 class="file-name">{{target.name}}</h3>
<table class="source-target-Info-table">
<tr class="source-target-Table">
<th>FILE NAME</th>
<th>SIZE</th>
<th>DESCRIPTION</th>
</tr>
<tr *ngFor="let tq of tqData; let i=index">
<td>
<a class="info-link" href="javascript:;">{{tq.name}}</a>
</td>
<td>{{tq.size/1000}} KB</td>
<td>{{tq.description}}</td>
</tr>
</table>
</ng-template>
</tr>
</table>
</mat-tab>
</div>
</mat-tab-group>
It is only taking the css if is defined in inline format ( using style). Is there any to make the external css working when container="body" for ngbpopover in ng-template? I had also tried to define the external css in the component that consist of body tag but that doesn't work for me. Any suggestions regarding this will be helpful.
Probably styles incapsulated in :host selector. Input container="body" makes you tooltip content not inside host component.

Bootstrap styles are not rendering in asp.net gridview and showing some other class

I am revamping my old asp.net web application and making it responsive. I used ace-master template which uses bootstrap. I have a gridview in my page. I changed my gridview code like this
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div>
<div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
<asp:GridView ID="dgTradename" runat="server" Width="100%" DataKeyNames="TradeNameId" CssClass="table table-striped table-bordered table-hover dataTable no-footer"
AutoGenerateColumns="False" OnRowDataBound="dgTradename_RowDataBound" AlternatingRowStyle-CssClass="even" RowStyle-CssClass="odd"
AllowPaging="True" OnPageIndexChanging="dgTradename_PageIndexChanging" OnRowCommand="dgTradename_RowCommand"
UseAccessibleHeader="true" GridLines="Both">
<Columns>
<asp:BoundField DataField="TradeNameNo" HeaderText="Trade Name No" ItemStyle-HorizontalAlign="Left">
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:BoundField>
<asp:TemplateField HeaderText="Owner Name" ItemStyle-HorizontalAlign="Left">
<ItemTemplate><%#DataBinder.Eval(Container.DataItem, "dtoOwner.NameEn")%></ItemTemplate>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</div>
<!-- PAGE CONTENT ENDS -->
</div>
</div>
But while rendering the code, html code for table is showing a css class 'GridView' and the required bootstrap css is not rendered
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div>
<div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
<div>
<table class="GridView" id="ctl00_PageBody_ctlSearchTradeName1_dgTradename" style="border-style:None;width:100%;border-collapse:collapse;" cellspacing="0" border="0">
<thead>
<tr class="Header">
<th scope="col">Trade Name No</th><th scope="col">Owner Name</th>
</tr>
</thead><tbody>
<tr class="Row">
<td align="left">114</td><td align="left">Honj</td>
</tr><tr class="AlternatingRow">
<td align="left">909</td><td align="left"> Internet Cafe Tr</td>
</tr><tr class="Pager">
<td colspan="6"><table border="0">
<tbody><tr>
<td><span class="editBox" style="display:inline-block;border-style:Solid;width:200px;">1</span></td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td>
</tr>
</tbody></table></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- PAGE CONTENT ENDS -->
</div>
</div>
I tried
Removing all other css class from the application
Removing all cache from the browser
Clean and rebuild the solution
Please don't consider this as a duplicate question as i have tried all answers from different stackoverflow questions
After spending a week, I found the issue.
I have some skins added in my solution. Even if it is not referred anywhere, its using from back. I removed that skins from my solution and now the bootstrap styles are rendered

Bootstrap: center <h3> underneath table

Link
Heres the website containing the full html rendered Link
Here's my code:
<template name="activeOrderTable"><table class="table">
<thead>
<tr>
<th>Commodity</th>
<th>Quantity</th>
<th>Price (High Quality Metal)</th>
<th>Order Type</th>
<th>Merchant</th>
<th>Location</th>
<th>Date Added</th>
</tr>
</thead>
<tbody>
{{#each activeOrders}}
<tr>
<td>{{prettifyCommodity commodity}}</td>
<td>{{quantity}}</td>
<td>{{price}}</td>
<td>{{prettifyOrderType orderType}}</td>
<td>{{merchant}}</td>
<td>{{location}}</td>
<td>{{prettifyDate createdAt}}</td>
<td><button type="button" class="btn btn-danger btn-xs" data-id="{{_id}}"><span class="glyphicon glyphicon-remove-sign"></span></button></td>
</tr>
{{else}}
<h3>You have no active orders</h3>
{{/each}}
</tbody>
</table>
I would like to center the You have no active orders
I've tried class text-center but its not working.
Your H3 element is inside the table so the browser is trying to 'fix it'.
You should wrap your H3 tag in <tr><td colspan="6"><td></tr> tags and then apply class="text-center" to H3
Just add a text-center class on your h3 tag directly, not on it's parent divs like this:
{{else}}
<h3 class="text-center">You have no active orders</h3>
{{/each}}
Here's a jsfiddle with the above codes: http://jsfiddle.net/AndrewL32/65sf2f66/26/
You must try applying vanilla CSS to the above code.
table.table h3 {
text-align:center;
}

CSS dropdown menu Relative to a TD in a table

I have a table of records which is displayed nicely in a HTML Table.
The last column of this table displays a icon when hovering the row. When the user hovers the icon a drop down menu appears for all actions related to that row.
Currently I have the td that Icon is in set to Position:absolute and the div of the drop down menu is also set to Position Absolute.
This means I can align the Dropdown Menu Div to align nicely against the row it relates.
Firstly im not totally sure why this is the case. I would have thought I would need the TD as Absolute and the Menu Div as Relative but this just isnt the case.
The actual issue I am currently having (as the way I have it works across all browser) is that when the row is expanded to be double the height from text in other columns. The TD with absolute positioning applied does not expand to be 100% height of the TR. Which causes issues when trying to hover the tr and you move over where the last TD which should have expanded to the row height and it registers it as a hover out on the TR.
Any ideas to get around this?
The problem with putting the icon in a div which is relative is that I need the div to be 100% height/width of the td to be able to align the menu correct to the row!
EDIT:
As requested Some Html... This is a mustache template. Shouldn't be to hard to follow even if you have never used it
<table>
<thead>
<tr>
<th style="width:15px"><input type="checkbox" class="GridSelectAll" onclick="GridSelectAll(this);" /></th>
<th class="tar" style="width:30px">
<a href="javascript:SortGrid('EmployeeId')" id="headerEmployeeId">
<%= GetTranslation("EmployeeId") %><span class="sortArrow ui-icon"></span>
</a>
</th>
<th style="width:120px">
<a href="javascript:SortGrid('FirstName')" id="headerFirstName">
<%= GetTranslation("FirstName") %><span class="sortArrow ui-icon"></span>
</a>
</th>
<th style="width:120px">
<a href="javascript:SortGrid('LastName')" id="headerLastName">
<%= GetTranslation("LastName") %><span class="sortArrow ui-icon"></span>
</a>
</th>
<th>
<a href="javascript:SortGrid('CompanyName')" id="headerCompanyName">
<%= GetTranslation("PrimayCompanyName") %><span class="sortArrow ui-icon" ></span>
</a>
</th>
<th style="width:55px">
<a href="javascript:SortGrid('EmployeeRowStatus')" id="headerEmployeeRowStatus">
<%= GetTranslation("EmployeeRowStatus") %><span class="sortArrow ui-icon"></span>
</a>
</th>
<th style="width:60px">
<a href="javascript:SortGrid('IsLocked')" id="headerIsLocked">
<%= GetTranslation("IsLocked") %><span class="sortArrow ui-icon"></span>
</a>
</th>
<th style="width:15px"></th>
</tr>
</thead>
<tbody>
{{#EmployeeSummaries}}
<tr>
<td><input type="checkbox" class="chkRowId" value="{{EmployeeId}}" /></td>
<td class="tar">{{EmployeeId}}</td>
<td>{{FirstName}}</td>
<td>{{LastName}}</td>
<td>{{PrimaryCompanyName}}</td>
<td>{{EmployeeRowStatus}}</td>
<td>{{IsLocked}}</td>
<td style="position:absolute;">
<a class="optlink"><span class="ui-icon ui-icon-triangle-1-s"></span></a>
<div class="optmenu">
<ul>
<li><a onclick="UpdateEmployee_LoadDialog({{EmployeeId}});"><%= GetTranslation("ManageEmployee")%></a></li>
<li><a onclick="showLoading();" href="../Core/AuditItem.aspx?{{ItemTypeItemIdQuerystring}}"><%= GetTranslation("ViewHistory")%></a></li>
<li><a onclick="showLoading();" href="UserGroupsEvo.aspx#/?PageIndex=0&Filter=EmployeeId~EqualTo~{{EmployeeId}}"><%= GetTranslation("ViewUserGroups")%></a></li>
<li><a onclick="showLoading();" href="UserGroup_Employees.aspx?{{EmployeeIdQuerystring}}"><%= GetTranslation("ManageUserGroups")%></a></li>
<li><a onclick="showLoading();" href="../Employee/EmployeePreferences.aspx?{{EmployeeIdQuerystring}}"><%= GetTranslation("ManagePreferences")%></a></li>
<li><a onclick="ResetPasswords_LoadDialog({{EmployeeId}});"><%= GetTranslation("ResetPassword")%></a></li>
<li><a onclick="SendWelcomeEmails_LoadDialog({{EmployeeId}});"><%= GetTranslation("SendWelcomeEmail")%></a></li>
<li><a onclick="AddEmployee_Company_LoadDialog({{EmployeeId}}, {{PrimaryCompanyId}});"><%= GetTranslation("AddToCompany")%></a></li>
<li><a onclick="LoginAsUser({{EmployeeId}});"><%= GetTranslation("LoginAsUser") %></a></li>
{{#HasOtherCompanies}}
<li class="subheader"><%= GetTranslation("ManageOtherCompanies") %></li>
{{/HasOtherCompanies}}
{{#Companies}}
<li>
<span style="vertical-align:top;" class="hh ui-icon ui-icon-circle-close" onclick='RemoveEmployeeFromCompany_LoadDialog(this, {{EmployeeId}}, {{CompanyId}}, "{{CompanyName}}");return false;' title="<%= GetTranslation("Remove") %>"></span>
<a onclick="ManageEmployee_Company_LoadDialog({{EmployeeId}}, {{CompanyId}});">
{{CompanyName}}
</a>
</li>
{{/Companies}}
</ul>
</div>
</td>
</tr>
{{/EmployeeSummaries}}
</tbody>
</table>
I would get rid of the table all together. I would then use divs with table behavior. This will give you much more control over how each element works, each row, and each column.
This link explains the concept quite well: http://snook.ca/archives/html_and_css/getting_your_di
You might try this::
<!DOCTYPE html>
<html>
<head>
<style>
body{font-family:arial;}
table{font-size:80%;background:black}
a{color:black;text-decoration:none;font:bold}
a:hover{color:#606060}
td.menu{background:lightblue}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script>
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible";
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden";
}
</script>
</head>
<body>
<h3>Drop down menu</h3>
<table width="100%">
<tr bgcolor="#FF8080">
<td onmouseover="showmenu('tutorials')" onmouseout="hidemenu('tutorials')">
Tutorials<br>
<table class="menu" id="tutorials" width="120">
<tr><td class="menu">HTML</td></tr>
<tr><td class="menu">CSS</td></tr>
<tr><td class="menu">XML</td></tr>
<tr><td class="menu">XSL</td></tr>
</table>
</td>
<td onmouseover="showmenu('scripting')" onmouseout="hidemenu('scripting')">
Scripting<br>
<table class="menu" id="scripting" width="120">
<tr><td class="menu">JavaScript</td></tr>
<tr><td class="menu">VBScript</td></tr>
<tr><td class="menu">DHTML</td></tr>
<tr><td class="menu">ASP</td></tr>
<tr><td class="menu">ADO</td></tr>
</table>
</td>
<td onmouseover="showmenu('validation')" onmouseout="hidemenu('validation')">
Validation<br>
<table class="menu" id="validation" width="120">
<tr><td class="menu">Validate HTML</td></tr>
<tr><td class="menu">Validate XHTML</td></tr>
<tr><td class="menu">Validate CSS</td></tr>
<tr><td class="menu">Validate XML</td></tr>
<tr><td class="menu">Validate WML</td></tr>
</table>
</td>
</tr>
</table>
<p>Mouse over these options to see the drop down menus</p>
</body>
</html>