` Assign URL to a button (Gavin Halliday ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Assign URL to a button
1999-11-11 -- Gavin Halliday
 
I can think of a simple solution, but unfortunately it requires a bug fix that didn't get in the first beta. (It should work with isapi, but not the beta stand alone broker). Try some code like: CASE ACCEPTED() OF ?MyButton WebServer.Client.TakePage('http://topspeed.com/page',false) WebServer.TakePageSent() If the URL is absolute (starts with / or http: or https:) then it should redirect correctly. Steve Parker adds: Then, the following should also work: CASE ACCEPTED() OF ?MyButton WebServer.Client.TakePage( CLIP(myLinkVariable) ,false) WebServer.TakePageSent() where a locally assembled variable contained the url.


Today is April 24, 2024, 4:51 am
This article has been viewed 35108 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: