Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 5 Jahren, 2 Monaten
Letzter Beitrag:
vor 5 Jahren, 2 Monaten
Beteiligte Autoren:
steve erts, Fabrice Harari, Alexandre Leclerc

WB 15- How to create link to external website

Startbeitrag von steve erts am 01.05.2013 16:12

Hi All,

I need to create a link to an external site with the URL coming from a field in my database. I can get it to work from the URL HTTP example if the website is hard coded but if I try to pick up URL from DB I get a context error. Any tips on how to do this? It seems to me that it really shouldn't be so complicated.

Thanks!

steve

Antworten:

Hi Steve

it's not

just do a:
scriptExecute(MyVariableContainingTheURL)

Best regards

von Fabrice Harari - am 01.05.2013 18:26
Funny, that doesn't seem to work for me. Just opens a new window with current page in it.

I put the code

ScriptExecute(Prospect.WEBSITE)

in the server code section of the link control and set the destination target to be New Browser.

I prefaced the call with an info box to see if the variable was being populated correctly and it is. Anything else you can think of that I might be missing?

von steve erts - am 01.05.2013 21:26
Hi Steve

Please check and see what the ACTION for your link is (in its properties)... It should be "run the server code of link"

Best regards

von Fabrice Harari - am 02.05.2013 12:31
Hi Fabrice,

That's what I have.

This is what I see there.

Runs the server click code of '' and displays the result in a new browser (that will be opened).

Is this normal? I can not figure out what I am doing wrong?

Steve

von steve erts - am 02.05.2013 15:20
Hi Steve,

Simply use the ..URL property of the Link to set / change it. This works without any special modifications.

If you have a looper control with a Link control, use an attribute pointing to the Link control's URL action. There is nothing else to do. You can change the text of the link independently.

Hope this helps.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 02.05.2013 17:09
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.