🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #345522

Re: Delphi Webbrowser JavaScript

#345522
From: zpksoft
Date: Wed, 11 Jan 2017 09:08
27 lines
2054 bytes
W dniu wtorek, 10 stycznia 2017 09:57:36 UTC+1 użytkownik kons...@wp.pl napisał:
> Delphi XE2
> 
> Strona Portal podatkowy MF sprawdzanie VAT
> 
> fragment strony
> https://ppuslugi.mf.gov.pl/
> 
> <li class="SidebarLink"><a title="" class="SidebarLink SidebarLinkChVAT" 
> onclick="FWDC.executeAction(1005, null, 'FLOW');" 
> href="javascript:;">Sprawdź podmiot w VAT</a></li>
> 
> 
> Jak z poziomu Delphi w WebBrowser1DocumentComplete symulować kliknięcie 
> w ten link i przejść do niego?
> 
> ---
> Ta wiadomość została sprawdzona na obecność wirusów przez oprogramowanie antywirusowe Avast.
> https://www.avast.com/antivirus

Myślę, że jest kilka dróg. Najprościej bezpośrednio do html-a przed wczytaniem do webbrowsera wstrzyknąć taki kod (od razu się wykona):

<script>
  FWDC.executeAction(1005, null, 'FLOW'); 
</script>

Paweł
Technical Details
Message-ID: <9f935cd2-1754-4344-ba8b-36664739156d@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news.glorb.com!r185no118912ita.0!news-out.google.com!78ni2383itm.0!nntp.google.com!r185no118802ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <o527lv$cnt$1@portraits.wsisiz.edu.pl>

Show Full Headers
Complete Article Headers
X-Received: by 10.99.102.68 with SMTP id a65mr2702821pgc.122.1484125733057;        Wed, 11 Jan 2017 01:08:53 -0800 (PST)
X-Received: by 10.157.61.131 with SMTP id l3mr598496otc.18.1484125733006; Wed, 11 Jan 2017 01:08:53 -0800 (PST)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news.glorb.com!r185no118912ita.0!news-out.google.com!78ni2383itm.0!nntp.google.com!r185no118802ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.delphi
Date: Wed, 11 Jan 2017 01:08:52 -0800 (PST)
In-Reply-To: <o527lv$cnt$1@portraits.wsisiz.edu.pl>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.27.223.25; posting-account=8ND_mgoAAAD5J9y9fnaTB1Kcu7xKWk7Q
NNTP-Posting-Host: 83.27.223.25
References: <o527lv$cnt$1@portraits.wsisiz.edu.pl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9f935cd2-1754-4344-ba8b-36664739156d@googlegroups.com>
Subject: Re: Delphi Webbrowser JavaScript
From: zpksoft <zpksoft@op.pl>
Injection-Date: Wed, 11 Jan 2017 09:08:53 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit