I am working to create a connector app between a client database and an external web system. This will prevent daily double entry of notes to the web page. The external system is an old asp site. I do not have acces to their code. They do not offer an API.
I have all of the connecter app working with the exception of clicking the link associated with the "Notes" that need updating.
Basically, if you picture an HTML table that looks like this:
[3/3/2017][category][ Notes ]
[2/5/2015][category][ correspondence ]
[1/5/2013][category][ records ]
The HTML link is on the date, not on the word "Notes" nor "correspondence", or "records". Some tables have up to 8 rows. The notes row isn't always on top. There is no way to sort it to the top. Since the
I want to click the date link that corresponds to the word "Notes"
I have tried countless regex queries on the underlying HTML code with no luck. Anyone have any suggestions on how I can get this done?
Here is the HTML as requested:
10/26/2016
</td>
<td height="20" align="center" nowrap> Open</td>
<td height="20" align="center" nowrap>10/26/2016</td>
<td height="20" align="center" nowrap></td>
<td height="20" width="331">Notes<br>
</td>
</tr>
<tr >
1/13/2017
<td height="20" align="center" nowrap> Open</td>
<td height="20" align="center" nowrap>10/26/2016</td>
<td height="20" align="center" nowrap></td>
<td height="20" width="331">Correspondence<br>
</td>
</tr>
Related
I want to browse the object returned by the controller and display data in the web using th:each then th:text ="${object.attribut}"
but I get nothing is there a fault in the code bellow
<tr>
<th:block th:each="sb : ${results}">
<td th:text="${sb.issuenum}"></td>
<td th:text="${sb.assignee}"></td>
<td th:text="${sb.summary}"></td>
<td th:text="${sb.created}"></td>
<td th:text="${sb.resolutiondate}"></td>
</tr>
PS: when I use only th:text="${sb}" I get the whole data that means that the object is received by the view
You're missing the </th:block> -- and I'm not really sure what you're trying to accomplish. Do you want a row for each object, or a single row with every object and attribute in a different column -- which appears to be what you have now.
Does this work for you?
<tr th:each="sb: ${results}">
<td th:text="${sb.issuenum}" />
<td th:text="${sb.assignee}" />
<td th:text="${sb.summary}" />
<td th:text="${sb.created}" />
<td th:text="${sb.resolutiondate}" />
</tr>
i am trying to parse some text from bibliographic database which contains not standard tables. specifications of articles may or may not exist, bu if exist they have same tags for their specifications. For example; all articles have title but only some of them have keywords section. but when they have that section it shown with standard tags like that:
<tr>
<td align="right" valign="top" nowrap="nowrap">Database Name: </td>
<td>Social Science Database</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">Journal: </td>
<td>Social Science and Education, 2011,8(4):29-42</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">Author: </td>
<td>James H.; Chaomei C.</td>
<td align="right" valign="top" nowrap="nowrap">Type: </td>
<td>Journal</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">Article Type: </td>
<td>Research Article</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">Retrieve Type: </td>
<td>Bibliographic</td>
</tr>
<tr><td align="right" valign="top" nowrap="nowrap">Language: </td>
<td>En</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">Abstract Language: </td>
<td>En</td>
</tr>
Here is my question. I am trying to parse text with Knime using Xpath but i couldn't achieve anything i want. I want to find <tr>'s that contains specific text and take second <td>'s of that section. For example:
for "Database Name:" Xpath must get "Social Science Database".
I tried this code:
.//dns:tr//text()[contains(., 'Database Name:')]
But result contains just first , i need second one.I tried to that code, but it brings nothing.
.//dns:tr//text()[contains(., 'Database Name:')]/dns:td[*]
You can try this:
.//dns:tr//text()[contains(., 'Database Name:')]/../../dns:td[2]
.. takes you to the parent. You need to traverse 2 levels up and get the 2nd td.
I have create a lots of HTML for a client.
We are both using Chrome but the images of my HTML are displaying normally but not for my client.
We clean our cash, I checked 100 times the path, name and extensions of my images and everything seems good to me.
Is there something that can blocked the images on the desktop of my client ?
Thank you very much for your time !
I add an example of my code here :
<table cellpadding="0" cellspacing="0" border="0" width="750" class="devicewidth" align="right">
<tbody>
<tr>
<td class="webonly"><img src="./img/banner-1-FR.png" alt="banner" width="100%" style="display:block;min-width:100%; " class="webonly" /></td>
<td class="mobonly"><img src="./img/banner-2-FR.png" alt="banner-2" width="100%" style="display:none;min-width:100%; " class="mobonly" /></td>
</tr>
</tbody>
</table>
My images are all in the file : img
I just can't see where's the problem is.
I am working on Siebel Smartscript. I want to show the radio button side by side, but by default they are coming after a line break as shown below:
The html is dynamically generated via swt. The part of the section where radio button is present is below:
<swe:control id="SSQuestion">
<table valign="top" width="100%" cellpadding="2" cellspacing="0" border="0" class="AppletBack">
<tr>
<td width=20%> </td>
<td width=75%>
<span class="questLabel" align="swe:this.TextAlignment">
<swe:this property="DisplayName"/>
<swe:this property="RequiredIndicator"/>
</span><br>
<span class="scField" align="swe:this.TextAlignment">
<swe:this property="FormattedHtml"/></span>
</td>
<td width="5%"> </td>
</tr>
</table>
</swe:control>
The below is what the above is looking like at runtime:
<SPAN id=SSQuestionList><TABLE class=AppletBack border=0 cellSpacing=0 cellPadding=2 width="100%" valign="top">
<TBODY>
<TR>
<TD width="20%"> </TD>
<TD width="75%"><SPAN class=questLabel><SPAN id=s_2_1_7_0_d><B>Date of Birth<B></B></B></SPAN><SPAN id=s_2_1_7_0_r> </SPAN></SPAN><BR><SPAN class=scField>
<DIV id=s_2_1_7_0_ss>
<OBJECT style="HEIGHT: 49px" id=s_2_1_7_0 tabIndex=2997 classid=CLSID:07903935-5554-4827-87bf-f195bef987f7 width=500 height=20></OBJECT></DIV></SPAN></TD>
<TD width="5%"> </TD></TR></TBODY></TABLE>
<SCRIPT defer>
SWEWriteInnerHTML(this.document.getElementById('s_2_1_7_0_ss'),'<object id=s_2_1_7_0 CLASSID="CLSID:07903935-5554-4827-87bf-f195bef987f7" HEIGHT=20 WIDTH=500></object>');
</SCRIPT>
</SPAN>
This is the line which is selecting the area of radio button:
SWEWriteInnerHTML(this.document.getElementById('s_2_1_7_0_ss'),'<object id=s_2_1_7_0 CLASSID="CLSID:07903935-5554-4827-87bf-f195bef987f7" HEIGHT=20 WIDTH=500></object>');
But i am not sure how to alter it. I have tried css property inline, but to no avail. Please suggest.
The HTML you see is generated inside the Siebel HI application. It uses Active X controls to show the UI objects such as the radio button. I know of no way to alter the positioning of the options while remaining within the confines of Siebel HI. The newer Open UI framework generates standard HI for smart scripts which would in turn allow you to achieve your requirement.
Here is the code for the table:
<table align="center" width="303" height="740" border="1" cellpadding="10">
<tr>
<th width="130" height="41" scope="col">URL1 - Normal</th>
<th width="121" scope="col">URL2 - Hover</th>
</tr>
<tr>
<td height="94"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-green.png"/></td>
<td><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-green-h.png" alt=""/></td>
</tr>
<tr>
<td height="124"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-blue.png" alt=""/></td>
<td><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-blue-h.png" alt=""/></td>
</tr>
<tr>
<td height="147"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-grey-h.png" alt=""/></td>
<td><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-grey.png" alt=""/></td>
</tr>
<tr>
<td height="137"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-pink.png" alt=""/></td>
<td><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-pink-h.png" alt=""/></td>
</tr>
<tr>
<td height="132"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-red.png" alt=""/></td>
<td><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-red-h.png" alt=""/></td>
</tr>
<tr>
<td height="132"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-black.png" alt=""/></td>
<td><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-black-h.png" alt=""/></td>
</tr>
</table>
When I insert the table, it leaves a gap in-between the table and the text. If I remove the table, then everything is fine. What's going wrong here?
Blogspot inserts line breaks for you... and they push the table down. (I haven't found a workaround yet.)
If you view the source, you can see them:
<table align="center" width="303" height="740" border="1" cellpadding="10"><br />
<tr><br />
<th width="130" height="41" scope="col">URL1 - Normal</th><br />
<th width="121" scope="col">URL2 - Hover</th><br />
</tr><br />
<tr><br />
<td height="94"><img src="http://i1018.photobucket.com/albums/af309/5416339/ad-green.png"/></td><br />
...
Because the BRs are invalid when directly inside a TABLE, TR, or after a TH or TD, the browser pushes those elements out of and above the table when rendering the DOM.
If you take a look at the source of the page, you'll notice a TON of <br/> tags interspersed with your table (but not contained in cell elements). They are rendered above the table.
It looks like your HTML is being parsed by something, and your line-breaks are being replaced with BR tags.
Quick solution: remove all linebreaks and just have the table code on one line :)
It has nothing to do with the table. It's the fact that there are 31 <br> (line break) tags before the table (which are what are creating the huge gap.
It sounds like BlogSpot (or whatever blog service you are using) is adding extra <br> tags based on how you're formatting the rest of your content. Edit the source of the page if possible and manually remove them...otherwise it becomes a support issue with whatever blog platform you're on.
This has nothing to do with anything in your table markup. Viewing the HTML source of that page shows about 30 <br> tags ahead of the table. They are obviously responsible for the extra space.
Why you get 30 <br> tags when inserting a table must have something to do with how blogspot.com is formatting your content. Your best bet is to try editing the HTML by hand to remove the <br> tags. If you can't do that, or if the <br> tags don't show up when editing the HTML, it's a question for customer service at Blogspot.