AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Sonstige Fragen zu Delphi Delphi read javascript select options into Delphi
Thema durchsuchen
Ansicht
Themen-Optionen

read javascript select options into Delphi

Ein Thema von FranzM · begonnen am 27. Jan 2008
Antwort Antwort
FranzM

Registriert seit: 27. Jan 2008
1 Beiträge
 
#1

read javascript select options into Delphi

  Alt 27. Jan 2008, 21:19
I receive a web page which has javascript in it.

<select name="region52708" class="popup" onchange="javascript:selectRegion(5270">
<option value=""></option>
<option selected value="N America">N America</option>
<option value="Asia">Asia</option>
<option value="Europe">Europe</option>
<option value="Global">Global</option>
<option value="S America">S America</option>
<option value="Africa">Africa</option>
</select>

I want to copy the select option values from the select statement in javascript using IE as browser. I use Delphi 7 and TWebBrowser.

ovElements.item(i).name points at the select belonging to region52708

I try this:

for j := 0 to ovElements.item(i).options.length-1 do begin
Memo1.lines.add('option ' + inttostr(j) + ' ' + ovElements.item(i).options[j].value;
end;

The syntax is not correct.
Is someone able to point me at the correct way to make the options from the script visible in Delphi?

Thanks in advance.

Regards,

Franz
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz