The tr id element is not working as a destination for links.
I am trying to create the link www.mywebsite.com/page1.asp#row1
Each of these rows has a picture and description that I need to have go to a distinct url.
The code below is the closest that I have gotten, but it is still not working and I do not know why.
I am building this website in Volusion. This HTML is going into a content block within an already built framework.
<table>
<colgroup><col width="30%">
</colgroup>
<tbody>
<tr id = "row1">
<td><div style="text-align: center;"><img src="/img1.JPG" alt="" align="top" border="0px"></div></td>
<td valign="top">1st Image</td>
</tr>
<tr id = "row2">
<td><div style="text-align: center;"><img src="/img2.JPG=" align="top" border="0px"></div></td>
<td valign="top">2nd Image</td>
</tr>
<tr id = "row3">
<td><div style="text-align: center;"><img src="/img3.JPG" alt="" align="top" border="0px"></div></td>
<td valign="top">3rd Image</td>
</tr>
</tbody>
</table>
The path for the image is wrong I guess. Maybe once check the path like there might be another folder you may have forgot to add (like image/img1.jpg). or maybe try ./ instead of /. Also img2 src is wrong. please correct it
Related
Hi im having a issue with a simple problem. because for some reason i dont find anything wrong with my codes. Seems like my code is not reading my colspan. seems like this problem as been mark as duplicate. but i dont want to specify the width of the table since i want the table to be responsive and i use bootstrap table
<div>
<table class="table table-condensed">
<thead>
<tr class="text-uppercase text-contrail table-dark-head">
<th colspan="3">Spillage</th>
<th>Total</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">Material Cost / Kg</td>
<td>
<input></input>
</td>
<td>
<input></input>
</td>
</tr>
<tr>
<td>Spillage at 0.5%</td>
</tr>
</tbody>
</table>
</div>
i put this code inside my template. please see the image for the result. The Total and Remarks should be on the right side. but it end up with balance width.
I have a problem to put the input from user in one line separate by comma.
As below code:
<table width="691" border="0" cellpadding="0" cellspacing="0">
<tr><%do while not rs2.EOF%>
<td width="159" rowspan="2" class="commontextBold"> </td>
<td width="200" rowspan="2" class="commontextBold"> </td>
<td>
<span class="commontextBold"><%=rs2.fields("do1").value%>
<% rs2.movenext
loop%>
</span>
</td>
From line 5 to 10, that is the code using to print the output.
For this code the output will looks like (as can see in attachment image):
1111111 -space- 2222222 : this output look like when using loop it will give to much space between the output
I need the output looks like this,
1111111,2222222
The output may be more that two, depend on user input.
How can i avoid the output print without too many spaces between the value?
FYI, this output will be print in the courier slip.
Code
output
Not quite sure if this is want you want:
<table width="691" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="159" rowspan="2" class="commontextBold"> </td>
<td width="200" rowspan="2" class="commontextBold"> </td>
<td>
<%do while not rs2.EOF%>
<span class="commontextBold"><%=rs2.fields("do1").value%></span>
<%rs2.movenext
loop%>
</td>
How can I format string in graphviz NODE ?
Now I have common styles for NODE
node [ href=\"#\",
shape=box,
style=filled,
fillcolor=azure,
color = lightblue3,
fontname=Helvetica,
center=true,
fontsize=9
]
I want to change date format
Use html label
node[label=<>]
An example
i0[label=<
<TABLE border="0">
<TR>
<TD valign="top" rowspan="2">
I<sub>0</sub>:
</TD>
<TD align="left">
S'→.S<BR ALIGN="LEFT"/>
</TD>
</TR>
<TR>
<TD align="left" bgcolor="#aaaaaa">
S→.SS<BR ALIGN="LEFT"/>
S→.(S)<BR ALIGN="LEFT"/>
S→.a<BR ALIGN="LEFT"/>
</TD>
</TR>
</TABLE>
>];
You should be able to do this with html(-like) labels. Give the table one style and that cell a different style. Keep in mind that this HTML is a very constrained subset of real HTML.
I'll try to explain what I see in a few words.
I use webdriver + testNG on a win7 machine.
I have a table and get a reference to it. When I try to get all the text contained in such table, if it's empty (only header) then there are no problems .
But, if there are more rows, the table.getText() is not working properly and the result is:
A script on this page may be busy, or it may have stopped responding.
You can stop the script now, or you can continue to see if the script will complete.
Script: file:///C:/Users/VM-AUT~1/AppData/Local/Temp/anonymous2085126608473413720webdriver-profile/extensions/fxdriver#googlecode.com/components/command_processor.js:6047
I have tried increasing the timeout but the result is the same. If I decide to continue, getText() returns me all the values and the script continues.
This is a very short description but I don't want to be boring, but if more details are needed just let me know.
A few more infos:
If the table has +-5 records it works fine.
There is a problem if it has +-20 records per page (it's possible to switch between pages)
The problem persists with FF 23 ( looks fine with chrome & IE) but didnt check with previous FF versions
I use java + testNG + selenium grid but have the same problem on my local machine as well
If I select CONTINUE at the "A script on this page may be busy....." message, gettext()returns me the correct values I use the selenium 2.33
Table looks like:
driver.findElement(By.xpath(".//*[#id='smslog_outer_table']")).getText()
<table id="smslog_outer_table" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="left" style="vertical-align: top;">
<table class="table table-condensed" cellspacing="0" cellpadding="0">
<colgroup>
<tbody>
<tr class="gwtutility-table-tr-head">
<tr class="delivered">
<td class="" colspan="1">
<div class="gwt-Label">043081410085553301</div>
</td>
<td class="log_date_time" colspan="1">
<td class="" colspan="1">
<td class="" colspan="1">
<td class="" colspan="1">
<td class="" colspan="1">
<td class="" colspan="1">
<td class="" colspan="1">
<td class="log_status" colspan="1">
<td class="log_date_time" colspan="1">
<td class="log_message" colspan="1">
</tr>
<tr class="delivered">
<tr class="delivered">
</tbody>
</table>
</td>
</tr>
<tr>
</tbody>
</table>
In my asp.net project I need to print a page with some dynamic content.I followed this article http://www.dotnetcurry.com/ShowArticle.aspx?ID=92 to achieve that and it works fine as long as the content I need to print fits in one page.
But in case of lengthy content, when I click on print button I see a print preview with all the content that needs to be printed and when printed it just prints the content that fits into one page.So I think when I call 'window.print()' it just prints whatever that can fit into a page and does not check if there is anymore content left to print on another page.And I am not sure how do I set the page breaks to get the entire content printed,as it is dynamic content.
Could someone please help me with this?
Thanks
Edit:
Here is some sample HTML rendered.
<table class="Main">
<tr>
<td class=”left bold”>
Some text
</td>
<td>
<span id="Label">Label</span>
</td>
</tr>
<tr>
......
......
</tr>
......
......
......
<tr>
<td>
<table class= “productslist”>
<tbody>
<tr>....</tr>
<tr>....</tr>
<tr class=”productTextAlign”> ......</tr>
<tr class=”additionalOptions”> ..... </tr>
<tr class=”additionalOptions”>.....</tr>
<tr class=”additionalOptions”>.....</tr>
<tr class=”additionalOptions”>.....</tr>
<tr class=”additionalOptions”>.....</tr>
<tr>...</tr>
<tr class=”productTextAlign”></tr>
<tr class=”additionalOptions”>.....</tr>
<tr class=”additionalOptions”>.....</tr>
<tr class=”additionalOptions”>.....</tr>
<tr class=”additionalOptions”>.....</tr>
</tbody>
</table>
</td>
<tr>
</table>
the table with class is 'Main' is a html table and inside that there is another table with class 'productslist' which is actually a repeater. I am trying to apply the 'page break before' to this repeater using
table.productslist
{
page-break-before:auto;
}
which doesnt to work in FF6.0 and it seems to work fine in IE8.
You could use an Active X control for this:
http://www.meadroid.com/scriptx/docs/printdoc.asp
Alternatively you could take a CSS approach:
http://davidwalsh.name/css-page-breaks
https://stackoverflow.com/search?q=css+page+break