CFHTTP Parse page for the last row of the table
OK, so I need to analyze the page returned from a cfhttp call and select the last row in a table. I then take the value of this line and run another cfhttp to another page. This returns an html page where I'll need to parse for extr the img tag. Any thoughts?Here is a code:
"" < cfhttp url = ' http://SERVERNAME/GetPhotoEncounters.cgi ' method = 'post' resolveurl = "yes" >
< name cfhttpparam = 'TXTBox' type = "formfield" value = "17133804" >
< / cfhttp >
He returns (at the source):
"< form method = post name ="EncounterInfo"action =" http://SERVERNAME/GeneratePhotos.cgi "> "
< table border units is relative width is 0.9 colspec "C2 C1 C1 C1 C1 C1 C1 C1 C1" = >
< th align = center > < view h3 > < / h3 >
< th align = center > < No. h3 > < / h3 >
< th align = center > < ID h3 > < / h3 >
< th align = center > < Type of encounter h3 > < / h3 >
< th align = center > < h3 > Date & time < / h3 >
< th align = center > < Type h3 > < / h3 >
< th align = center > < system indicator X h3 > < / h3 >
< th align = center > < location Images h3 > < / h3 >
< th align = center > < h3 database Ind > < / h3 >
<! - data - >
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "36659622; 02/06/05 13:31:29 ">
< td align = center > 36659622
< td align = center > 17133804
< td align = center > BP
< td align = center > 02/06/05 13:31:29
< td align = center > F
< td align = center > ENF
< td align = center > 967
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "37070943; 09/06/05 14:28:28 ">
< td align = center > 37070943
< td align = center > 17133804
< td align = center > BP
< td align = center > 09/06/05 14:28:28
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "38114421; 23/06/05 19:03:50 ">
< td align = center > 38114421
< td align = center > 17133804
< td align = center > BP
< td align = center > 23/06/05 19:03:50
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "38216303; 24/06/05 22:30:42 ">
< td align = center > 38216303
< td align = center > 17133804
< td align = center > BP
< td align = center > 24/06/05 22:30:42
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "41424139; 04/08/05 22:48:21 ">
< td align = center > 41424139
< td align = center > 17133804
< td align = center > BP
< td align = center > 04/08/05 22:48:21
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "42971024, 19/08/05 11:59:35" >
< td align = center > 42971024
< td align = center > 17133804
< td align = center > BP
< td align = center > 19/08/05 11:59:35
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "43676008, 15/09/05 00:43:33" >
< td align = center > 43676008
< td align = center > 17133804
< td align = center > BP
< td align = center > 15/09/05 00:43:33
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "51501911; 20/02/06 01:17:16 ">
< td align = center > 51501911
< td align = center > 17133804
< td align = center > BP
< td align = center > 20/02/06 01:17:16
< td align = center > R
< td align = center > ENF
< td align = center > 970
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "52543143; 20/03/06 06:06:56 ">
< td align = center > 52543143
< td align = center > 17133804
< td align = center > BP
< td align = center > 20/03/06 06:06:56
< td align = center > R
< td align = center > ENF
< td align = center > 971
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "52812077, 30/03/06 08:36:15" >
< td align = center > 52812077
< td align = center > 17133804
< td align = center > BP
< td align = center > 30/03/06 08:36:15
< td align = center > R
< td align = center > ENF
< td align = center > 971
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "52983796; 07/04/06 15:15:32 ">
< td align = center > 52983796
< td align = center > 17133804
< td align = center > BP
< td align = center > 07/04/06 15:15:32
< td align = center > R
< td align = center > ENF
< td align = center > 971
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "53243687; 23/04/06 14:58:23 ">
< td align = center > 53243687
< td align = center > 17133804
< td align = center > BP
< td align = center > 23/04/06 14:58:23
< td align = center > R
< td align = center > ENF
< td align = center > 972
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "54447246; 24/06/06 00:46:23 ">
< td align = center > 54447246
< td align = center > 17133804
< td align = center > BP
< td align = center > 24/06/06 00:46:23
< td align = center > R
< td align = center > ENF
< td align = center > 973
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "56717661; 05/07/06 06:45:19 ">
< td align = center > 56717661
< td align = center > 17133804
< td align = center > BP
< td align = center > 07/05/06 06:45:19
< td align = center > R
< td align = center > ENF
< td align = center > 973
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "61073876; 28/08/06 02:13:33 ">
< td align = center > 61073876
< td align = center > 17133804
< td align = center > BP
< td align = center > 28/08/06 02:13:33
< td align = center > R
< td align = center > ENF
< td align = center > 974
< td align = center > R
< /table >
< /Center >
< p align = "left" > < input type = "checkbox" name = "photoOnly" > < p >
< INPUT TYPE = "SUBMIT" NAME = 'SUBMIT_BUTTON' VALUE = 'Show the photo (s)' >
< INPUT TYPE = "BUTTON" NAME = "SELECT_ALL_BUTTON" VALUE = "Select all" onClick = "doSelectAll (15)" >
< INPUT TYPE = "RESET" NAME = "CLEAR_ALL_BUTTON" VALUE = "Remove all" >
< input type = "hidden" name = 'TXTBox' value = "17133804" >
< br >
< / make >
I need the last row of the table checbox value. In this way, I can present this value on the next page via cfhttp. That would return:
border = 1 >
< b >
< td align = "center" > < font color = 'blue' size = 4 > EID < / make >
< td align = "center" > < font color = 'blue' size = 4 > Date < / make >
< td align = "center" > < font color = 'blue' size = 4 > picture < / make >
< td align = "center" > < font color = 'blue' size = 4 > picture < / make >
< td align = "center" > < font color = 'blue' size = 4 > picture < / make >
< b >
< td > < b > < /b > 61073876
< td > < b > 28/08/06 < /b > < br > < b > < /b > 02:13:33
< td >
< img src = "" / image_cache/61073876.jpeg ' height width 200 = 200 = > "
< td >
< img src = "" / image_cache/61073876_F2.gif ' height width 200 = 200 = > "
< td >
< img src = "" / image_cache/61073876_F7.gif ' height width 200 = 200 = > "
< /table >
On this basis, I need to the variable value, CBC three img tags. Then I can insert these values into a local database.
Help me please, because I'm drowning on this one!
Thank you all.
You could loop on the content of the file and then parsing each line using a regular expression to extract your checkbox values and image. This is code that I wrote which gets the last box and a panoply of images based on your example. You may need to adjust the regular expression a bit if your example is not the same as the HTML code that you are monitoring.
Tags: ColdFusion
Similar Questions
-
CS6 - assign a different page for the table of contents start on
I have a table of contents in a document ID CS6 page current 1 TOC starts on the actual coverage. I want to do the introduction and about me listed as names of page not page 1 or 2. I want to page 1 or 2 to start on what is now page 6. I know that there is a tute for any of this help?
RD
Select the 6 page in the Pages panel, right-click and choose numbering and Section Options.
Start a new section and then change the 1 bib, say OK. ID complain of duplicate page numbers, so do the same for the first page of the document, but this time change the numbering style. It is a tradition to use lowercase Roman numerals for the preliminary pages.
-
I just noticed that (in comparison to Internet Explorer): in IE, when you preferred a Web page, it uses the actual name of the Web page (for example, for this page, it would be "Ask a Question Firefox Help" as the name of the bookmark), but in Mozilla, it uses the URL as the name of the bookmark. I was wondering if it was possible to change my Mozilla settings so that it uses the name of the Web page as the bookmark name instead of the URL? I hope that everyone understands what I am getting? If anyone can help me, I would really appreciate it. Thank you.
Firefox uses the tag title for the name of the newly saved bookmark.
When I bookmark on this forum page I get this for the 'name' of the bookmark.
How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page | Firefox Support Forum | Firefox help
-
Satellite P200D-128: Toshiba has a Web page for the graphics card drivers?
Hi I want to update the driver for my card graphics ATI Mobility Radeon 2400HD with the updated driver, Toshiba has a Web page for the graphics card drivers?
Concerning the best and warm
Adrian WainerHello
All Toshiba drivers for European notebook series can be found on the European driver Toshiba page:
You can find it here:
http://EU.computers.Toshiba-Europe.com-> support Download Center &-> Download driversYou will find all the latest drivers published by Toshiba
-
MMC hangs with print server when I try to print a test page for the server.
Windows Server 2008R2
Printer HP1606n
Signature of the problem:
Problem event name: BEX64
Application name: mmc.exe
Application version: 6.1.7600.16385
Application timestamp: 4a5bc808
Fault Module name: hp1100su.dll
Fault Module Version: 0.3.1.36655
Timestamp of Module error: 4dba6516
Exception offset: 00000000000159bd
Exception code: c0000409
Exception data: 0000000000000000
OS version: 6.1.7601.2.1.0.272.7
Locale ID: 1033
Information additional 01:00 c 6
More information 2: 00c62f6d4134d9a2c3306d7c5b5b94b0
3 more information: c9eb
Additional information 4: c9eba0fb841db4dab90b359385c03455The module that seems to be the cause of the accident is the hp1100su.dll:
Fault Module name: hp1100su.dll
Fault Module Version: 0.3.1.36655The hp1100su.dll is a part of the driver for the printer.
What you could try is uninstalling and reinstalling the driver of printer using the version of HP.
I believe that the following may be the printer:
http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&DLC=en&lang=en&LC=en&product=4110410
-
Is Acrobat Pro just for us. We have an employee handbook that needs editing. A part is current pdf, some of an earlier version. You want to get all in a manual, the table of contents automatically adjust and links to specific pages of the table of contents.
Acrobat Pro is certainly not the right tool for editing. You want to change the manual using the source - MS Word files for example. Once you have the full changes including OCD work as you want, Acrobat Pro is the tool to convert the source document to PDF format, and ensure the accessibility requirements of 508 - and preferably ISO 14289 (PDF/UA) - are met.
-
Pass the product ID through the URL of the payment page for the 'reception - buy' landing page. is this possible?
You can just the module module_shoppingcartsummary and liquid, you can return the items in the basket to.
-
Hi all.
I do not know English and perkladayu your question in the Google Translator
Sorry for the typos
Is it possible to Adobe Muse
create a page for the Tablet (not a site, but only one page)
This page is having a video background
widget that I used for the video backgrounds
https://creative.Adobe.com/addons/products/2604#.u93-4_l_t8E
My Web site
a link to a video setting
http://skajiprobleme.NET/tips-Alla.html
I just created a page with a video background to the Tablet, and coming on the site of a tablet that fell on the video backgrounds and not on the main site
Duplicate Page with video calling Tablet - locking
-
Is it possible to disable the "edit layout" link on the Details page for the record
Is it possible to disable the "edit layout" link on the Details page for the record? Not home pages, I know there is a switch for that, but I thought that it was one for the detail pages?
I want to disable what I don't want users who record their own layouts, they stick to the related sections defined in the default layout. The problem is that if they want to have access to some lists associated with when the opportunity is of a certain type, but NOT other types. If they saved the page layout (using the "Change layout" link) and change the record type, they will see the related provisions that were set to "Not available" in the default layout (IE step 4) for this 'type '.Robbo, for now it is not possible to disable the page layout to change the Registration Details page.
-
Iterator for the table and form is a problem during the cleaning of the records
Hello
I use JDev 12.1.2.
I have an object of the detail view. I represent a part of its fields in a table and the rest in a form. I use the same iterator. Basically, I dragged and dropped the object even from the view of the data control and created a table and form layout with the fields I wanted in each provision. I put in place a clear feature for the rows in the table with a clear"" key. -on click I delete the line of the iterator in the managed bean. When I do this the selected record is deleted and the next record is displayed. But fields entered in the form layout also gets deleted. (the form should also be showing the record currently selected - it shows but entrable fields in the form are deleted because of claire that I did on the previous line.) If anyone can help get this resolved?
Not use the same iterator for the tables and forms here? The links are in the row (row.bindings...) for the table, but for the form it is (links...). The Delete on the current row operation is causing the iterator delete all fields of links instead of from the line? Please shed some light.
Thank you
UMA
How do you rank on the iterator compensation?
use resetActionListener in your clear button and let us know what is happening?
Ashish
-
Master Pages are part of each document.
You can import master pages from another document (i.e. a ' model') in your current document using the file > import > Formats... option and select layout from the list (deselect all others).
If you have changed the current TOC for the problem of the Page Master on the left, then simply save the file and use the Edit > update book option for that OCD regenerated by using the new page templates.
-
Hello
I am trying to install OSB in a different domain. I already have a suite of soa running.
This is the directory structure
Middleware/user_projects/domains
(a) soa_domain
(b) osb_domain
Who, from the administration server for the BSO, I get error below.
Error: -.
< server failed. Reason: Last forest resource [JTAExceptions:119002] failed during initialization. The server cannot start unless all configured logging last resource (LLRs) initialize. Fault reason:
javax.transaction.SystemException: weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: check table JDBC LLR, failed for the table "WL_LLR_ADMINSERVER", line ' JDBC LLR field / / server ' record had an unexpected value ' soa_domain / / AdminServer' expected ' osb_domain / / AdminServer'* ONLY the domain and the server that creates a table original LLR can access *.
I see the solution in https://blogs.oracle.com/epc/entry/technical_table_verify_failed_for but I have no doubt here.
When I run
Select RECORDSTR in the WL_LLR_ADMINSERVER where
XIDSTR = "field of LLR JDBC / / server ';"
I get the result like-> soa_domain / / AdminServer
If I change it to osb_domain / / this AdminServer, will affect my soa_domain server... ? Please advice
Published by: user10720442 on December 11, 2012 11:54Hello
There are two possible solutions to this problem:
Solution 1:
To solve this problem reconfigures the basic information database of Point differently for each domain, if you have more than one domain. That, to change the port of the database and the name below two files in the field
In the setDomainEnv.cmd (or .sh) file inside directory change DOMAIN_HOME/bin Point base port number and the name of the comic.
Set POINTBASE_PORT = 9094
Set POINTBASE_DBNAME = weblogic_eval2JDBC:PointBase:server://localhost:9094 / weblogic_eval2
In the file wlsbjmsrpDataSource - jdbc.xml inside change DOMAIN_HOME/config/jdbc directory under entries with port of pointbase database updated and the name (this will be in two places in the file).
Solution 2:
If the domain name has been changed and do not want to change the database properties, then an update to the WL_LLR_ADMINSERVER table is possible:
that is to say:
Update SCHEMA_SAMPLE. Set RECORDSTR = WL_LLR_ADMINSERVER ' base_domain / / AdminServer' where XIDSTR = "JDBC LLR field / / server ';"Kind regards
Kal -
How can I exclude a level for the table of contents, but this amount as a bookmark?
I know how to exclude a level for the table of contents (or rather include only levels I want to be included) and also how to create bookmarks from the table of contents entries, but how can I exclude a level for the table of contents, but always include it as a bookmark?
Make 2 toc styles. One for the entries in the Bookmarks panel, you can generate a table of contents on the side of any page, and you must score in its definition to create bookmarks and other things that you use to build the table of contents for the visible part of your document to print. This should have unchecked the option create a bookmark in its definition.
-
JDev11g - prevention of query for the table running until ExecWithParams press
JDev 11 g ADF-Faces with task flow creation web app - test a single page.
I have five variable bind I have installed with reference LOV to display the name return ID's, two are dates that work now! I have the ExecWithParams button, then on a table that uses a VO with a custom query with the dregs.
I need links to be filled, but the page takes a while to load, and my guess is that the request for the table tries to run, but does not receive all the data since the lie is empty at the start. The query runs great once I have complete binding and press the ExecWithParams button.
How can I stop the query in the table to run until the ExecWithParams button is pressed? I'm guessing that this is the problem since it takes several minutes when the link to the browser is launched and makes the page actually. All requests for links are very simple, while the request of VO is very complex. Or maybe something else wrong that I'm not getting?
Thank you, KenSomething that I use occasionally is the substitution of the VO executeQuery method.
public void executeQuery() { if (getWhereClause() == null){ setWhereClause("1=2"); } super.executeQuery(); }
It works for running dynamic bind variable.
For your case, you could do something like...
public void executeQuery() { if (getNamedWhereClauseParam("YOUR_BIND_VARIABLE") == null){ setWhereClause("1=2"); } super.executeQuery(); }
-
I have a Gr_order table that was settled long ago, and now he needs to be filled
with some more search data.
"Orderid" is a primary key for the table, but the question is how can I insert "orderid" in the insert statement in the procedure. I couldn't find any name sequence. There are 1230
documents that must be inserted.
Desc Gr_order Orderid Number Primary key Desc Varchar2
Thank youINSERT INTO gr_order (orderid,desc) VALUES (???, upper(each_pom.desc);
SandyYou can find the code that inserts into the table and see if it uses the sequence ;-). A sequence is not 'attached' to a particular table - this is the insert statement to determine whether a sequence should be used.
You can check if the table has a trigger - some developers like to emulate the behavior of MS - sql server by having a trigger on the table that selects in a sequence. If it has such a release, then you just do your insertions without specifying order_id. But if the table does not have such a release, then you cannot know if the table was originally filled using a sequence or not (unless you can find the instructions for inserting somewhere).
Maybe you are looking for
-
Update disk on Satellite C660D
Hi all I'm new to this forum,I would like to upgrade my hard drive but I don't know what to choose.Nothing too fancy, I would like to know how to find the right one.Is there a way that tells you that compatible, as it is for the RAM? Help, pleaseThan
-
Need a complete list of shortcuts FF4.
I'm very keyboard oriented. I would like a complete list of the keyboard shortcuts for FireFox 4. Thank you Jeff from Cleveland
-
Last screen family vista premium causes the update of death blue
I am currently under the 64-bit version of vista Home premium, SP 1. It has worked wonderfully for the sixth month, until yesterday. The automatic update downloaded 3 updates, I installed before stopping. After rebooting, my computer allowed me to
-
neighbors of receipt of print jobs
Hello I have received various print jobs that have not been requested by me or someone in my family. I have a secure, wireless network, or at least I thought. I think it's maybe my neighbor. How can I get him to stop? I tried implementing a diretly
-
Why invite them private for an administrator password or a confirmation character Editor?
Why? This post is for Matthew Cenance.