Jump to content


- - - - -

[POPUP] Help.


  • Please log in to reply
1 reply to this topic

#1 Temp2

Temp2

    Novice

  • Members
  • PipPip
  • 12 posts
  • Real Name:Fukn Lolcna
  • IPB Version:v2.3.x

Posted 17 July 2011 - 08:40 PM

Hey guys, So actually I need help. I made my POPUP which apparently does a simple form and outside the form we got the opacity set to .5 to show its a kind of message in a popup.

Well it doesnt work with Iframe I guess, So Ive put the few javascripts and its content into the "Board Header and Footer Wrapper" in your ACP.

Everything works unless one thing. I would need a kind of javascript for cookies. My popup comes back each time we refresh. What I would like is something to get some cookies set so that the Popup shows the number of times it is set.

Can anyone help me?

#2 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 18 July 2011 - 07:52 PM

You don't need to set a cookie, just close the popup window.

<script language="javascript" type="text/javascript">
<!--
window.opener.location.href="index.php; 
window.close();
-->
</script>

Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users