1
mistik
Having trouble with javascript in my content module!
  • 2005/12/4 6:51

  • mistik

  • Just popping in

  • Posts: 24

  • Since: 2005/11/27


Ok so i am tryin to have a javascript popup a new window when a user clicks on a cam link. <.a href="javascript:newWindow('http://www.joyourself.com/freechat3.php?psid=intrin&pstour=t2&psprogram=REVS')">
Is what it's supposed to be ....just popping a new window and using that url. Instead it's tryin to pull that url outta my /modules/content/ folder and I don't understand why. I can show you further coding if required...Please ive been racking my brain for an answer and can't seem to come up with one.

2
wtravel
Re: Having trouble with javascript in my content module!

As part of the admin section in one module I use:
onClick="window.open('".XOOPS_URL."/modules/".$moddir."/admin/extensionmanager.php','ext_window','width=480,height=600')"


I defined $moddir as the current module name using $xoopsModule->getVar('name').

'ext_window' = the name of the new window for future reference.

Login

Who's Online

343 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

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

Latest GitHub Commits