having a hard time getting a javascript popup to work in the addon sample module have used the following code
$someVarName = <<<_JSCODE_
<script>function openpopup(){
var popurl="/php/calender/cal.html"
winpops=window.open(popurl,"","width=500,height=400,")
}</script>
_JSCODE_;
Also
HTML_CONTENT tags
and other things have found in the forums I have see that there are numerous posts about it have searched the forums and have not found any code that works they all seen to be for blocks not modules any help would be great ,,,
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Mon Jun 09, 2003 4:50 am
It works in both. As explained in my articles, you need to add an
echo $someVarName;
to get your code passed to the browser.
You also are missing a ; at the end of your var statement inside your function
Just cant seem to get a simple pop up to work grrrr
echo $someVarName = <<<_JSCODE_
<script>function openpopup(){
var popurl="/php/calender/cal.html";
winpops=window.open(popurl,"","width=500,height=400,")
}</script>
_JSCODE_
LINK CODE
echo "<li><a href=\"javascript:popUp('/php/calender/cal.html')\">Calender</a>";
this all works on regular html pages thanks for your response I know you prly get tired of answering the same questions over and over thanks for your time and paitence its much apperciated
Last edited by Raven on Tue Jun 10, 2003 2:02 am; edited 1 time in total
paris Nuke Soldier
Joined: Jun 01, 2003
Posts: 32
Posted:
Mon Jun 09, 2003 8:28 pm
Worked like a charm thanks Raven *hands Raven a case of Pepsi, and I wana say that nuke cops is the most organized most helpful nuke site. Thanks again nuke cops and raven save the day:)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum