;

PDA

Click to See Complete Forum and Search --> : getURL without http:// ?


ant_Z
08-19-2006, 12:23 PM
hi. i dont know what the final adress of site will be, so i would like to use adress like ./rejestracja/index.php

ive made some buttons and i would like to make action getURL

on (release)
{
getURL('./rejestracja/index.php?adres=news.php', '_blank');
}

gives me error "expecting a >>}<<". so how can i use getURL without http:// ?

w.brants
08-19-2006, 12:44 PM
You probably did something else wrong because the code you posted doesn't generate an error when I try it.

ant_Z
08-19-2006, 12:54 PM
hm... everything looks good - there isnt antything to do wrong :)

w.brants
08-19-2006, 01:20 PM
I thought you used a button object but it's a button component you used.
You have to use the button component without the on (release). Use only the getURL and it should work fine.getURL('./rejestracja/index.php?adres=news.php', '_blank');

ant_Z
08-19-2006, 01:52 PM
yes, this works. Thans brants :]