1
Elektron
How to open an aditional window with the xoops-url?
  • 2005/11/4 6:46

  • Elektron

  • Just popping in

  • Posts: 5

  • Since: 2005/11/4


This is mi code..


i want to replacehttp://osimzt.no-ip.info/portal
whit XOOPS_URL, because in a future.. i'll change my address
How can i put XOOPS_URL in window.open

echo "<SCRIPT language='JavaScript'>";
echo "window.open('http://orsimzt.no-ip.info/portal/modules/usr_admon/', target='_parent')";
echo "</script>";

i try this..

echo "window.open('XOOPS_URL/modules/usr_admon/', target='_parent')";

but it does not work.



My English is not to good.. sorry

[Edit by Bender]Topic changed

2
Ronaldus
Re: Newbie Question..
  • 2005/11/4 8:45

  • Ronaldus

  • Friend of XOOPS

  • Posts: 389

  • Since: 2004/5/8 1


Hai,

I'm a coder, but just a guess:

echo "window.open('{XOOPS_URL}/modules/usr_admon/', target='_parent')";

Good luck!!

3
Elektron
Re: Newbie Question..
  • 2005/11/4 16:31

  • Elektron

  • Just popping in

  • Posts: 5

  • Since: 2005/11/4


Quote:

Ronaldus wrote:
Hai,

I'm a coder, but just a guess:

echo "window.open('{XOOPS_URL}/modules/usr_admon/', target='_parent')";

Good luck!!



It doesn't work.. any ideas?
Thanks.

4
Elektron
Re: Newbie Question..
  • 2005/11/4 16:49

  • Elektron

  • Just popping in

  • Posts: 5

  • Since: 2005/11/4


I found a Solution...


$path = XOOPS_URL;

echo "window.open('$path/modules/usr_admon/', target='_parent')";

Thanks...

5
chapi
Re: Newbie Question..
  • 2005/11/4 17:34

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


This snippet should do the trick too.

echo "window.open('".XOOPS_URL."/modules/usr_admon/', target='_parent')";

Login

Who's Online

183 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits