#100968 - 2003-05-14 05:21 PM
Re: Looking for ideas...
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
It is probably hidden away in the GLOBAL.ASA or DBConnect.asp or DBConnect.inc or something like that.. The only thing with that is that you would need how it connects to the database if it uses ODBC itself. However, it maybe using a DBQ connection.
Kent
|
|
Top
|
|
|
|
#100970 - 2003-05-14 11:00 PM
Re: Looking for ideas...
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Allen,
What about this?
IE Window
I know there are other variants of this.
Thanks,
Kent
|
|
Top
|
|
|
|
#100976 - 2003-05-15 04:05 AM
Re: Looking for ideas...
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
hmmm, that looks kinda tough to parse-out. Especially since the data isn't enclosed in anything that has an ID ... think there is a way to index into the DHTML using a statement like "the innerHTML of the third FONT element in document", but not counting that, maybe the easiest thing to do would be to capture the InnerHTML of the entire document (based on your example, it seems small anyway) and parse it out yourself (like in that Stock Quote example), using a statement like this:
$HTML = $IE.Document.Body.InnerHTML
? "HTML=" $HTML
|
|
Top
|
|
|
|
#100977 - 2003-05-15 04:43 AM
Re: Looking for ideas...
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4572
Loc: USA
|
|
|
Top
|
|
|
|
#100982 - 2003-05-16 09:29 PM
Re: Looking for ideas...
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4572
Loc: USA
|
Thanks to some very easy to use UDFs by Sealeopard, I am able to extract the data I need to run my script with no problems. The code below only displays each record in the record set.
code:
break on $objConn = DBConnOpen('DRIVER={Microsoft Access Driver (*.mdb)}; UID=; PWD=; DBQ=f:\nes.mdb') $recordset = DBGetRecordset($objConn,'SELECT Staff.[First Name Initial], Staff.[Last Name],' + ' Staff.[SocialSecurity#], Staff.DOB, Managers.[Department Director],' + ' Staff.[Dept#], Managers.[Department Name], Positions.[Position Title],' + ' Staff.[3/4ID] FROM (Staff INNER JOIN Managers ON Staff.[Dept#]' + ' = Managers.[Dept#]) INNER JOIN Positions ON Staff.[Position#] =' + ' Positions.[Position#] WHERE (((Staff.[SocialSecurity#]) Is Not Null)' + ' AND ((Staff.DOB) Is Not Null) AND ((Staff.[3/4ID]) Is Null) AND' + ' ((Staff.OSHA) Is Not Null)) ORDER BY Staff.[Last Name];')
$colFirstNameInits=0 $colLastNames=1 $colSSNs=2 $colDOBs=3 $colDeptManagers=4 $colDeptNums=5 $colDeptNames=6 $colPositionTitles=7 $col34IDs=8
for $row=0 to ubound($recordset,1) ? "First Name Initial : " + $recordset[$row,$colFirstNameInits] ? "Last Name : " + $recordset[$row,$colLastNames] ? "SSN : " + $recordset[$row,$colSSNs] ? "DOB : " + $recordset[$row,$colDOBs] ? "Dept Manager : " + $recordset[$row,$colDeptManagers] ? "Dept Number : " + $recordset[$row,$colDeptNums] ? "Dept Name : " + $recordset[$row,$colDeptNames] ? "Position Title : " + $recordset[$row,$colPositionTitles] ? "3/4 ID : " + $recordset[$row,$col34IDs] ? "_____________________________________________________________"
next
? @error +":"+ @serror
$retcode = DBConnClose($objConn)
Potentially, once all the data above is entered into the website, the website would return a 3/4ID for each record. I need to update the 3/4ID field in the database for each corresponding record in the recordset. How might I go about doing that? [ 17. May 2003, 01:23: Message edited by: Al_Po ]
_________________________
(... better days ahead)
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 583 anonymous users online.
|
|
|