Note that there are some explanatory texts on larger screens.

plurals
  1. POAJAX/DHTML/LIGHT BOXES
    primarykey
    data
    text
    <p>here is my js code</p> <pre><code>&lt;script type='text/javascript'&gt; // Browser safe opacity handling function function setOpacity( value ) { document.getElementById("popup").style.opacity = value / 10; document.getElementById("popup").style.filter = 'alpha(opacity=' + value * 10 + ')'; } function fadeInMyPopup() { for( var i = 0 ; i &lt;= 100 ; i++ ) setTimeout( 'setOpacity(' + (i / 10) + ')' , 8 * i ); } function fadeOutMyPopup() { for( var i = 0 ; i &lt;= 100 ; i++ ) { setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 8 * i ); } setTimeout('closeMyPopup()', 800 ); } function closeMyPopup() { document.getElementById("popup").style.display = "none" } function fireMyPopup() { setOpacity( 0 ); document.getElementById("popup").style.display = "block"; fadeInMyPopup(); } &lt;/script&gt; </code></pre> <p>this code works fine. i am using this code to pop-up a light box for emailing friends. what i am stuck with, once i submit the i will like to say thank you on the same pop-up. right now here is how i am saying thank you: this goes to a new window. but i want it on the same light box window.</p> <pre><code>&lt;SCRIPT language="JavaScript"&gt; &lt;!-- window.location="thanks.php"; //--&gt; &lt;/SCRIPT&gt; </code></pre> <p>here is how i call my light box in my other code:</p> <pre><code>&lt;div id="popup" name="popup"&gt;&lt;?php include ("email.php"); ?&gt;&lt;/div&gt; </code></pre> <p>any ideas on achieving this. many thanks.</p> <hr> <p>ok here is more explanation</p> <p>I have 3 events that i want ro call for one form:</p> <p>in my form, i am using an image for the submit button. so to pass the value of the submit, here is what i do and it works fine in all browsers:</p> <p> &lt; input type="image" onclick="this.form.select.value = this.value" ></p> <p>now i want to call another events, after the form has been submitted.</p> <p> &lt; input type="image" onclick="this.form.select.value = this.value; javascript:thanks()" ></p> <p>now when i put the second event in, my form doesnt validate or submit the values.</p> <p>and when i placed that event in the form tag, it doesnt work either.</p> <p>here is my js function for thanks(): function thanks() { setOpacity( 0 ); document.getElementById("popup").innerHTML = "Thank You!!" closeMyPopup();</p> <pre><code> } </code></pre> <p>i am using the code from this link: <a href="http://dhtmlpopups.webarticles.org/fade-effects.php" rel="nofollow noreferrer">http://dhtmlpopups.webarticles.org/fade-effects.php</a>; i have a registration form for the fade effects, and once the form get submitted, i want a thank-you to appear, but it doesnt seem to be working well.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload