Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Html object ID
Message
De
16/11/2013 10:27:51
 
 
À
03/11/2013 12:23:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587192
Message ID:
01588151
Vues:
40
>>I have a _webform program that I have used for years but the websites it accesses data from have changed. One of the websites is
>> http://www.jacksoncountytaxcollector.com/Property/SearchSelect?Accept=true
>>This takes you to a form to enter a search request. The program fills in a property number (29-3N-07-0000-0020-0010) and a year (2008) and clicks the search button. So far so good. On the old site a new web page would be returned with the search results and the command
>>
>>o.oleWebBrowser.DOCUMENT.getElementByID("ctl00_ContentPlaceHolder1_grdResults_ctl03_LinkButton1").CLICK
>>
>>was executed. The page with the actual tax bill that I wanted was then returned.
>>
>>On the revised website instead of a new page an array of the search results is created and displayed on a previously hidden part of the original page and you need to click on the property number of your choice. My searches are unique and will always return only 1 result. I have tried many command combinations but cannot find the right one. The only one that doesn't error out is o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table").CLICK
>>but nothing seems to happen.
>>I need for someone to go to the site and view the source code and suggest what command I need. The property number and year above are real. I am certificate holder 0251.
>
>Looks like you need to fire the click on the td element below (class="tax-detail-link")
>
>
<td class="tax-detail-link" taxbillno="54900" rolltype="R" taxyear="2008" data-pq="N" data-st="CI">
><a href="javascript:;">R - 29-3N-07-0000-0020-0010 - 2008</a>
></td>
>
>Maybe : document.getElementsByClassName('tax-detail-link')[0] (untested)
Thanks Viv.
I tried document.getElementsByClassName('tax-detail-link') and get an "Unknown name" error
I think firing the tax-detail-click event will do what I need but I can't figure out how to fire it.
I have tried:

*!* o.oleWebBrowser.DOCUMENT.filter-results-table.getElementByID("PROPERTYNO").CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table.tax-detail-link").CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table.propertynumber").CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table").tax-detail-link.CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table").propertynumber.CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table.tax-detail-link.live").CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("tax-detail-link").CLICK
*!* o.oleWebBrowser.DOCUMENT.getElementByID("FLTax.ResultsList").CLICK
*!* o.oleWebBrowser.DOCUMENT.FLTax.ResultsList.CLICK
*!* o.oleWebBrowser.document.getElementsByClassName('tax-detail-link').click
*!* o.oleWebBrowser.document.getElementsByClassName("filter-results-table").click
*!* o.oleWebBrowser.DOCUMENT.getElementsByClassName("filter-results-table.tax-detail-link.attr('taxbillno'").CLICK
*!* o.oleWebBrowser.DOCUMENT.button pagelinkitem active.click
*!* o.oleWebBrowser.document.getElementsByClassName('tax-detail-link').click

and the only one that doesn't error is o.oleWebBrowser.DOCUMENT.getElementByID("filter-results-table").CLICK so I think the solution is "filter-results-table PLUS adding the property number attribute. The key is identifying how to fire the :
$(".tax-detail-link").live("click", function () {
            mask();
            var form = "<form method='post' action='/Property/TaxBill'><input type='hidden' name='taxbillno' value='" + $(this).attr('taxbillno') + "'/>";
            form += "<input type='hidden' name='rolltype' value='" + $(this).attr('rolltype') + "'/>";
            form += "<input type='hidden' name='taxyear' value='" + $(this).attr('taxyear') + "'/>";
            form += "<input type='hidden' name='pq' value='" + $(this).attr('data-pq') + "'/>";
            form += "<input type='hidden' name='st' value='" + $(this).attr('data-st') + "'/></form>";

            $(form).appendTo('body').submit();
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform