Recent

Author Topic: [solved] calling a site "http://mysite?help@MitAlles" by IPHtml or CEF  (Read 402 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1324
Has anybody code snippets calling a site "http://mysite?help@MitAlles"
in 2 ways:

1)
by
IpHtmlPanel1

2)
by
c:/mySimpleBrowser.exe

thanks


================

for CEF as such I added:

https://forum.lazarus.freepascal.org/index.php/topic,72468.0.html
« Last Edit: October 13, 2025, 10:12:31 am by Nicole »

Thaddy

  • Hero Member
  • *****
  • Posts: 19241
  • Glad to be alive.
Re: calling a site "http://mysite?help@MitAlles" by IPHtml or CEF
« Reply #1 on: October 04, 2025, 09:34:37 am »
2):
Code: Pascal  [Select][+][-]
  1. program ww;
  2. {$ifdef fpc}{$mode objfpc}{$endif}
  3. uses lclintf;
  4. begin
  5. // open website in default browser
  6.  openurl('https://freepascal.org')
  7. end.
   
objects are fine constructs. You can even initialize them with constructors.

paweld

  • Hero Member
  • *****
  • Posts: 1637
Re: calling a site "http://mysite?help@MitAlles" by IPHtml or CEF
« Reply #2 on: October 04, 2025, 09:49:26 am »
Generally, it does not matter whether the URL contains parameters or not, because this is handled by the web server. The browser simply downloads and displays what the web server returns.
For IPro (IpHtmPanel), an example - browser.lpi - is located in the Lazarus directory in the subdirectory: components\turbopower_ipro\examples\
As for CEF, the example from this post allows you to enter your own URL: https://forum.lazarus.freepascal.org/index.php/topic,71856.msg566025.html#msg566025 or samples from the CEF4Delphi component
Best regards / Pozdrawiam
paweld

 

TinyPortal © 2005-2018