Make a Flash Contact Form Function Correctly

  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

So now my contact box sends me then information that gets filled in, but because there is no confirmation, I've been getting 10 emails from one person because they don't think the message sends!!

here's my php file..maybe i've left something out?
Code: [ Select ]
<?
 
   if (isset($HTTP_POST_VARS)) {
               
                $name = $HTTP_POST_VARS["name"];
                $phone = $HTTP_POST_VARS["phone"];
                $email = $HTTP_POST_VARS["email"];
                $message = $HTTP_POST_VARS["message"];
                }
 
   $to = "ebrown@2duce2.com";
     $from = "info@2duce2.com";
   $subject = "2Duce2 Wedding Videos";
   $msg .= "Senders Name: " ."$name\n\n";
   $msg .= "Phone: " ."$phone\n\n";
   $msg .= "Email: " ."$email\n\n";
   $msg .= "Message: " ."$message\n\n";
     $msg .= "This message was sent to you from 2Duce2 Wedding videos Contact Request Form.\n\n";
     $msg .= "Do not reply to this email directly.";
 
  mail($to, $from, $subject, $msg, "From: 2Duce2 Wedding Videos\nReply-To: $email\n");
 
?>
success
 
  1. <?
  2.  
  3.    if (isset($HTTP_POST_VARS)) {
  4.                
  5.                 $name = $HTTP_POST_VARS["name"];
  6.                 $phone = $HTTP_POST_VARS["phone"];
  7.                 $email = $HTTP_POST_VARS["email"];
  8.                 $message = $HTTP_POST_VARS["message"];
  9.                 }
  10.  
  11.    $to = "ebrown@2duce2.com";
  12.      $from = "info@2duce2.com";
  13.    $subject = "2Duce2 Wedding Videos";
  14.    $msg .= "Senders Name: " ."$name\n\n";
  15.    $msg .= "Phone: " ."$phone\n\n";
  16.    $msg .= "Email: " ."$email\n\n";
  17.    $msg .= "Message: " ."$message\n\n";
  18.      $msg .= "This message was sent to you from 2Duce2 Wedding videos Contact Request Form.\n\n";
  19.      $msg .= "Do not reply to this email directly.";
  20.  
  21.   mail($to, $from, $subject, $msg, "From: 2Duce2 Wedding Videos\nReply-To: $email\n");
  22.  
  23. ?>
  24. success
  25.  


Please Help again:)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

so the problem is that Flash is looking for a response from the php script. It should have everything it needs to deal with that response (show a message) but it doesn't seem to be getting anything back from the php.

Can someone more versed in PHP look at this and get the above php to send a response back to the page (any response, text doesn't matter).

Geno, in the mean time can you try moving the "success" word above the php close "?>" instead of below and test the form again?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Haven't had the chance to look at your revision yet graphixboy but the original FLA I saw and worked with doesn't have an error/success clip built into it, unless you added it. If you didn't add one, then that's probably the reason.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

there's a newer version of the fla but I actually just changed the text in the message field to say thanks.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

This problem is solved!! Thank you guys for dealing with such an amateur and having patients to deal with me:)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

what fixed it? combo of moving the text in the php and my new fla or just moving the text?
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I did both at once so I'm not sure which one fixed it!!
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

ok here's how to get the fullscreen thing.

Ok then you need to add this inside the head tags of your home page (just copy and paste)
Code: [ Select ]
<script type="text/javascript">
        function openFull(targ){
            var urlTarg = targ;
            newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no');
            newWin.resizeTo();
            newWin.resizeTo(screen.availWidth,screen.availHeight);
        }
    </script>
  1. <script type="text/javascript">
  2.         function openFull(targ){
  3.             var urlTarg = targ;
  4.             newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
  5. status=no,menubar=no,scrollbars=no,resizable=no');
  6.             newWin.resizeTo();
  7.             newWin.resizeTo(screen.availWidth,screen.availHeight);
  8.         }
  9.     </script>


and then you need to replace the first part of the link to your flash with
Code: [ Select ]
<a href="#" onclick="openFull('url');">
Make sure to replace the 'url' with the page you want to link to but keep the '' around it. That should get what you need.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

When I uploaded the index.html and went to the site it was a page of just all of the code

Did i add the code at the right place?

Code: [ Select ]
<!--$sitebuilder version="2.6" extra="Java(1.6.0_05-ea)" md5="7e471e5817095a05fdaa3444b9c05165"$-->
<!--$templateKey Blank||1.0.0$-->
<html>
  <head>
    <title>2Duce2 Wedding Videos</title>
    <meta name="generator" content="Yahoo! SiteBuilder/2.6/1.6.0_05-ea">
    <!--$page size 1000, 768$-->
    <!--$page margin 0, 0, 0, 0$-->
    <!--$centered$-->
    <!--$fontFamily Arial$-->
    <!--$fontSize 14$-->
    <style type="text/css"><!--
      BODY {font-family:"Arial"; font-size:14;margin:0px;padding:0px;text-align:center;min-width:1000px;}
      P {font-family:"Arial"; font-size:14;}
      FORM {margin:0;padding:0;}
      #centerwrapper {text-align:left;width:1000px;margin-left:auto;margin-right:auto;}
    --></style>
    <script type="text/javascript">
            function openFull(targ){
                var urlTarg = targ;
                newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
    status=no,menubar=no,scrollbars=no,resizable=no');
                newWin.resizeTo();
                newWin.resizeTo(screen.availWidth,screen.availHeight);
            }
    </script>
  </head>
  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0">
 
<!--$begin exclude$-->
    <div id="centerwrapper">
      <div id="root" style="position:absolute;width:1000px;height:768px;">
<!--$end exclude$-->
        <div id="e0" style="position:absolute;left:0;top:0;width:1000;height:768;"><img src="images/mainmenu.jpg" width="1000" height="768" alt=""></div>        <div id="e1" style="position:absolute;left:378;top:443;width:250;height:109;">
          <table border="0" cellspacing="0" cellpadding="0" width="250">
            <tr>
              <td nowrap height="109" align="center" valign="top"><span class="text"><font face="Verdana" size="4"><span style="font-size:22px;line-height:28px;">Please press the F11 <br soft>key on your keyboard <br soft>for better viewing<br soft></span></font></span></td>
            </tr>
          </table>
        </div>
        <div id="e2" style="position:absolute;left:304;top:228;width:153;height:101;"><a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-153x101.png" width="153" height="101" border="0" alt=""></a></div>        <div id="e3" style="position:absolute;left:350;top:344;width:56;height:19;"> <a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-56x19.png" width="56" height="19" border="0" alt=""></a></div>        <div id="e4" style="position:absolute;left:544;top:227;width:139;height:107;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-139x107.png" width="139" height="107" border="0" alt=""></a></div>        <div id="e5" style="position:absolute;left:599;top:348;width:30;height:18;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-30x18.png" width="30" height="18" border="0" alt=""></a></div><!--$begin exclude$-->
      </div>
    </div>
<!--$end exclude$-->
  </body>
</html>
 
  1. <!--$sitebuilder version="2.6" extra="Java(1.6.0_05-ea)" md5="7e471e5817095a05fdaa3444b9c05165"$-->
  2. <!--$templateKey Blank||1.0.0$-->
  3. <html>
  4.   <head>
  5.     <title>2Duce2 Wedding Videos</title>
  6.     <meta name="generator" content="Yahoo! SiteBuilder/2.6/1.6.0_05-ea">
  7.     <!--$page size 1000, 768$-->
  8.     <!--$page margin 0, 0, 0, 0$-->
  9.     <!--$centered$-->
  10.     <!--$fontFamily Arial$-->
  11.     <!--$fontSize 14$-->
  12.     <style type="text/css"><!--
  13.       BODY {font-family:"Arial"; font-size:14;margin:0px;padding:0px;text-align:center;min-width:1000px;}
  14.       P {font-family:"Arial"; font-size:14;}
  15.       FORM {margin:0;padding:0;}
  16.       #centerwrapper {text-align:left;width:1000px;margin-left:auto;margin-right:auto;}
  17.     --></style>
  18.     <script type="text/javascript">
  19.             function openFull(targ){
  20.                 var urlTarg = targ;
  21.                 newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
  22.     status=no,menubar=no,scrollbars=no,resizable=no');
  23.                 newWin.resizeTo();
  24.                 newWin.resizeTo(screen.availWidth,screen.availHeight);
  25.             }
  26.     </script>
  27.   </head>
  28.   <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0">
  29.  
  30. <!--$begin exclude$-->
  31.     <div id="centerwrapper">
  32.       <div id="root" style="position:absolute;width:1000px;height:768px;">
  33. <!--$end exclude$-->
  34.         <div id="e0" style="position:absolute;left:0;top:0;width:1000;height:768;"><img src="images/mainmenu.jpg" width="1000" height="768" alt=""></div>        <div id="e1" style="position:absolute;left:378;top:443;width:250;height:109;">
  35.           <table border="0" cellspacing="0" cellpadding="0" width="250">
  36.             <tr>
  37.               <td nowrap height="109" align="center" valign="top"><span class="text"><font face="Verdana" size="4"><span style="font-size:22px;line-height:28px;">Please press the F11 <br soft>key on your keyboard <br soft>for better viewing<br soft></span></font></span></td>
  38.             </tr>
  39.           </table>
  40.         </div>
  41.         <div id="e2" style="position:absolute;left:304;top:228;width:153;height:101;"><a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-153x101.png" width="153" height="101" border="0" alt=""></a></div>        <div id="e3" style="position:absolute;left:350;top:344;width:56;height:19;"> <a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-56x19.png" width="56" height="19" border="0" alt=""></a></div>        <div id="e4" style="position:absolute;left:544;top:227;width:139;height:107;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-139x107.png" width="139" height="107" border="0" alt=""></a></div>        <div id="e5" style="position:absolute;left:599;top:348;width:30;height:18;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-30x18.png" width="30" height="18" border="0" alt=""></a></div><!--$begin exclude$-->
  42.       </div>
  43.     </div>
  44. <!--$end exclude$-->
  45.   </body>
  46. </html>
  47.  
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

nope thats the correct places. It makes me think sitebuilder is some how messing with the code at run time and also makes me worry that you might not be able to do that kind of a change.

Anyone know how to get yahoo sitebuilder to give you access to the html?
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I'm on hold to talk to the people at yahoo...It's prolly gona take forever...hahaha;)
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Okay so I figured out how to edit the html with yahoo site builder but with the new code inserted, when I click on the picture to go to my main website, it doesn't open at all.

The URL changes though to: http://2duce2.com/

so I have to be messin up the coding or something
Code: [ Select ]
<!--$sitebuilder version="2.6" extra="Java(1.6.0_05-ea)" md5="7e471e5817095a05fdaa3444b9c05165"$-->
<!--$templateKey Blank||1.0.0$-->
<html>
  <head>
    <title>2Duce2 Wedding Videos</title>
    <meta name="generator" content="Yahoo! SiteBuilder/2.6/1.6.0_05-ea">
    <!--$page size 1000, 768$-->
    <!--$page margin 0, 0, 0, 0$-->
    <!--$centered$-->
    <!--$fontFamily Arial$-->
    <!--$fontSize 14$-->
    <style type="text/css"><!--
      BODY {font-family:"Arial"; font-size:14;margin:0px;padding:0px;text-align:center;min-width:1000px;}
      P {font-family:"Arial"; font-size:14;}
      FORM {margin:0;padding:0;}
      #centerwrapper {text-align:left;width:1000px;margin-left:auto;margin-right:auto;}
    --></style>
<script type="text/javascript">
        function openFull(targ){
            var urlTarg = targ;
            newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no');
            newWin.resizeTo();
            newWin.resizeTo(screen.availWidth,screen.availHeight);
        }
    </script>
  </head>
  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0">
 
<!--$begin exclude$-->
    <div id="centerwrapper">
      <div id="root" style="position:absolute;width:1000px;height:768px;">
<!--$end exclude$-->
        <div id="e0" style="position:absolute;left:0;top:0;width:1000;height:768;"><img src="images/mainmenu.jpg" width="1000" height="768" alt=""></div>        <div id="e1" style="position:absolute;left:378;top:443;width:250;height:109;">
          <table border="0" cellspacing="0" cellpadding="0" width="250">
            <tr>
              <td nowrap height="109" align="center" valign="top"><span class="text"><font face="Verdana" size="4"><span style="font-size:22px;line-height:28px;">Please press the F11 <br soft>key on your keyboard <br soft>for better viewing<br soft></span></font></span></td>
            </tr>
          </table>
        </div>
        <div id="e2" style="position:absolute;left:304;top:228;width:153;height:101;"><a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-153x101.png" width="153" height="101" border="0" alt=""></a></div>        <div id="e3" style="position:absolute;left:350;top:344;width:56;height:19;"> <a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html);"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-56x19.png" width="56" height="19" border="0" alt=""></a></div>        <div id="e4" style="position:absolute;left:544;top:227;width:139;height:107;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-139x107.png" width="139" height="107" border="0" alt=""></a></div>        <div id="e5" style="position:absolute;left:599;top:348;width:30;height:18;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-30x18.png" width="30" height="18" border="0" alt=""></a></div><!--$begin exclude$-->
      </div>
    </div>
<!--$end exclude$-->
  </body>
</html>
  1. <!--$sitebuilder version="2.6" extra="Java(1.6.0_05-ea)" md5="7e471e5817095a05fdaa3444b9c05165"$-->
  2. <!--$templateKey Blank||1.0.0$-->
  3. <html>
  4.   <head>
  5.     <title>2Duce2 Wedding Videos</title>
  6.     <meta name="generator" content="Yahoo! SiteBuilder/2.6/1.6.0_05-ea">
  7.     <!--$page size 1000, 768$-->
  8.     <!--$page margin 0, 0, 0, 0$-->
  9.     <!--$centered$-->
  10.     <!--$fontFamily Arial$-->
  11.     <!--$fontSize 14$-->
  12.     <style type="text/css"><!--
  13.       BODY {font-family:"Arial"; font-size:14;margin:0px;padding:0px;text-align:center;min-width:1000px;}
  14.       P {font-family:"Arial"; font-size:14;}
  15.       FORM {margin:0;padding:0;}
  16.       #centerwrapper {text-align:left;width:1000px;margin-left:auto;margin-right:auto;}
  17.     --></style>
  18. <script type="text/javascript">
  19.         function openFull(targ){
  20.             var urlTarg = targ;
  21.             newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
  22. status=no,menubar=no,scrollbars=no,resizable=no');
  23.             newWin.resizeTo();
  24.             newWin.resizeTo(screen.availWidth,screen.availHeight);
  25.         }
  26.     </script>
  27.   </head>
  28.   <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0">
  29.  
  30. <!--$begin exclude$-->
  31.     <div id="centerwrapper">
  32.       <div id="root" style="position:absolute;width:1000px;height:768px;">
  33. <!--$end exclude$-->
  34.         <div id="e0" style="position:absolute;left:0;top:0;width:1000;height:768;"><img src="images/mainmenu.jpg" width="1000" height="768" alt=""></div>        <div id="e1" style="position:absolute;left:378;top:443;width:250;height:109;">
  35.           <table border="0" cellspacing="0" cellpadding="0" width="250">
  36.             <tr>
  37.               <td nowrap height="109" align="center" valign="top"><span class="text"><font face="Verdana" size="4"><span style="font-size:22px;line-height:28px;">Please press the F11 <br soft>key on your keyboard <br soft>for better viewing<br soft></span></font></span></td>
  38.             </tr>
  39.           </table>
  40.         </div>
  41.         <div id="e2" style="position:absolute;left:304;top:228;width:153;height:101;"><a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-153x101.png" width="153" height="101" border="0" alt=""></a></div>        <div id="e3" style="position:absolute;left:350;top:344;width:56;height:19;"> <a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html);"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-56x19.png" width="56" height="19" border="0" alt=""></a></div>        <div id="e4" style="position:absolute;left:544;top:227;width:139;height:107;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-139x107.png" width="139" height="107" border="0" alt=""></a></div>        <div id="e5" style="position:absolute;left:599;top:348;width:30;height:18;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-30x18.png" width="30" height="18" border="0" alt=""></a></div><!--$begin exclude$-->
  42.       </div>
  43.     </div>
  44. <!--$end exclude$-->
  45.   </body>
  46. </html>


Once we get this figured out, I'll be out of your hair:)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Code: [ Select ]
<a href="#" onclick="openFull(http://2duce2.com/Welcome/weddingvideos.html);
is the problem. You need single quotes around the url so:
Code: [ Select ]
<a href="#" onclick="openFull('http://2duce2.com/Welcome/weddingvideos.html');
If that doesn't work you can pull out the href but the problem with that is that your mouse won't show the hand anymore.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Oops I saw one other error i my code.. At the top
Code: [ Select ]
newWin.resizeTo();
newWin.resizeTo(screen.availWidth,screen.availHeight);
  1. newWin.resizeTo();
  2. newWin.resizeTo(screen.availWidth,screen.availHeight);
should be
Code: [ Select ]
newWin.moveTo(0,0);
newWin.resizeTo(screen.availWidth,screen.availHeight);
  1. newWin.moveTo(0,0);
  2. newWin.resizeTo(screen.availWidth,screen.availHeight);
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

still no luck!

I was looking at a code from another site and they have something referencing a pop up

Code: [ Select ]
<script language="javascript">
function popup(url){
    var win_w, win_h;
    win_w = screen.availWidth;
    win_h = screen.availHeight;
    myWindow = window.open(url, "", "top=1, left=1, width=" + win_w + ", height=" + win_h + ", toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");
    if (!myWindow.opener) myWindow.opener = self;

    
    //window.close();
    
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function popupold(Ie,other){
    //Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
    x=screen.availWidth;
    y=screen.availHeight;
    target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
    // if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
    // window.open(other,"sub",'scrollbars=no');
    if (target >= 4){
        if (navigator.appName=="Netscape"){
        var MachakFull=window.open(other,"MachakFull",'scrollbars=no','width='+x+',height='+y+',top=0,left=0');
        MachakFull.moveTo(0,0);
        MachakFull.resizeTo(x,y);}
    if (navigator.appName=="Microsoft Internet Explorer")
        window.open(Ie,"MachakFull","fullscreen=yes,scrollbars=no");
        }
        else window.open(other,"sub",'scrollbars=no');
}
</script>
  1. <script language="javascript">
  2. function popup(url){
  3.     var win_w, win_h;
  4.     win_w = screen.availWidth;
  5.     win_h = screen.availHeight;
  6.     myWindow = window.open(url, "", "top=1, left=1, width=" + win_w + ", height=" + win_h + ", toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");
  7.     if (!myWindow.opener) myWindow.opener = self;
  8.     
  9.     //window.close();
  10.     
  11. }
  12. function MM_swapImgRestore() { //v3.0
  13. var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  14. }
  15. function MM_findObj(n, d) { //v4.01
  16. var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  17.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  18. if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  19. for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  20. if(!x && d.getElementById) x=d.getElementById(n); return x;
  21. }
  22. function MM_swapImage() { //v3.0
  23. var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  24. if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  25. }
  26. function popupold(Ie,other){
  27.     //Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
  28.     x=screen.availWidth;
  29.     y=screen.availHeight;
  30.     target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
  31.     // if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
  32.     // window.open(other,"sub",'scrollbars=no');
  33.     if (target >= 4){
  34.         if (navigator.appName=="Netscape"){
  35.         var MachakFull=window.open(other,"MachakFull",'scrollbars=no','width='+x+',height='+y+',top=0,left=0');
  36.         MachakFull.moveTo(0,0);
  37.         MachakFull.resizeTo(x,y);}
  38.     if (navigator.appName=="Microsoft Internet Explorer")
  39.         window.open(Ie,"MachakFull","fullscreen=yes,scrollbars=no");
  40.         }
  41.         else window.open(other,"sub",'scrollbars=no');
  42. }
  43. </script>


would this be something missing...i don't know...my brain hurts:)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Nope shouldn't be any different. popup is just the name of the javascript function (name of a command) It can be anything so that's not it. There is a difference here though...

Try changing
Code: [ Select ]
<script type="text/javascript">
        function openFull(targ){
            var urlTarg = targ;
            newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no');
            newWin.resizeTo();
            newWin.resizeTo(screen.availWidth,screen.availHeight);
        }
    </script>
  1. <script type="text/javascript">
  2.         function openFull(targ){
  3.             var urlTarg = targ;
  4.             newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
  5. status=no,menubar=no,scrollbars=no,resizable=no');
  6.             newWin.resizeTo();
  7.             newWin.resizeTo(screen.availWidth,screen.availHeight);
  8.         }
  9.     </script>

to
Code: [ Select ]
<script type="text/javascript">
function openFull(targ){
var urlTarg = targ;
var win_w = screen.availWidth;
var win_h = screen.availHeight;
newWin = window.open(urlTarg,"Flash Site","top=1, left=1, width=" + win_w + ", height=" + win_h + ","fullscreen=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no");
}
</script>
  1. <script type="text/javascript">
  2. function openFull(targ){
  3. var urlTarg = targ;
  4. var win_w = screen.availWidth;
  5. var win_h = screen.availHeight;
  6. newWin = window.open(urlTarg,"Flash Site","top=1, left=1, width=" + win_w + ", height=" + win_h + ","fullscreen=yes,toolbar=no,location=no,directories=no,
  7. status=no,menubar=no,scrollbars=no,resizable=no");
  8. }
  9. </script>
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

still the only thing that changes is the url at the top! Am I supposed to have a link to my site somewhere that I'm not seeing?

Code: [ Select ]
<html>
<head>
    <title>2Duce2 Wedding Videos</title>
    <meta name="generator" content="Yahoo! SiteBuilder/2.6/1.6.0_05-ea">
    <!--$page size 1000, 768$-->
    <!--$page margin 0, 0, 0, 0$-->
    <!--$centered$-->
    <!--$fontFamily Arial$-->
    <!--$fontSize 14$-->
    <style type="text/css"><!--
     BODY {font-family:"Arial"; font-size:14;margin:0px;padding:0px;text-align:center;min-width:1000px;}
     P {font-family:"Arial"; font-size:14;}
     FORM {margin:0;padding:0;}
     #centerwrapper {text-align:left;width:1000px;margin-left:auto;margin-right:auto;}
    --></style>
<script type="text/javascript">
function openFull(targ){
var urlTarg = targ;
var win_w = screen.availWidth;
var win_h = screen.availHeight;
newWin = window.open(urlTarg,"Flash Site","top=1, left=1, width=" + win_w + ", height=" + win_h + ","fullscreen=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no");
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0">

<!--$begin exclude$-->
    <div id="centerwrapper">
     <div id="root" style="position:absolute;width:1000px;height:768px;">
<!--$end exclude$-->
        <div id="e0" style="position:absolute;left:0;top:0;width:1000;height:768;"><img src="images/mainmenu.jpg" width="1000" height="768" alt=""></div>      <div id="e1" style="position:absolute;left:378;top:443;width:250;height:109;">
         <table border="0" cellspacing="0" cellpadding="0" width="250">
            <tr>
             <td nowrap height="109" align="center" valign="top"><span class="text"><font face="Verdana" size="4"><span style="font-size:22px;line-height:28px;">Please press the F11 <br soft>key on your keyboard <br soft>for better viewing<br soft></span></font></span></td>
            </tr>
         </table>
        </div>
        <div id="e2" style="position:absolute;left:304;top:228;width:153;height:101;"><a href="#" onclick="openFull('http://2duce2.com/Welcome/weddingvideos.html'); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-153x101.png" width="153" height="101" border="0" alt=""></a></div>      <div id="e3" style="position:absolute;left:350;top:344;width:56;height:19;"> <a href="#" onclick="openFull('http://2duce2.com/Welcome/weddingvideos.html');"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-56x19.png" width="56" height="19" border="0" alt=""></a></div>      <div id="e4" style="position:absolute;left:544;top:227;width:139;height:107;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-139x107.png" width="139" height="107" border="0" alt=""></a></div>      <div id="e5" style="position:absolute;left:599;top:348;width:30;height:18;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-30x18.png" width="30" height="18" border="0" alt=""></a></div><!--$begin exclude$-->
     </div>
    </div>
<!--$end exclude$-->
</body>
</html>
  1. <html>
  2. <head>
  3.     <title>2Duce2 Wedding Videos</title>
  4.     <meta name="generator" content="Yahoo! SiteBuilder/2.6/1.6.0_05-ea">
  5.     <!--$page size 1000, 768$-->
  6.     <!--$page margin 0, 0, 0, 0$-->
  7.     <!--$centered$-->
  8.     <!--$fontFamily Arial$-->
  9.     <!--$fontSize 14$-->
  10.     <style type="text/css"><!--
  11.      BODY {font-family:"Arial"; font-size:14;margin:0px;padding:0px;text-align:center;min-width:1000px;}
  12.      P {font-family:"Arial"; font-size:14;}
  13.      FORM {margin:0;padding:0;}
  14.      #centerwrapper {text-align:left;width:1000px;margin-left:auto;margin-right:auto;}
  15.     --></style>
  16. <script type="text/javascript">
  17. function openFull(targ){
  18. var urlTarg = targ;
  19. var win_w = screen.availWidth;
  20. var win_h = screen.availHeight;
  21. newWin = window.open(urlTarg,"Flash Site","top=1, left=1, width=" + win_w + ", height=" + win_h + ","fullscreen=yes,toolbar=no,location=no,directories=no,
  22. status=no,menubar=no,scrollbars=no,resizable=no");
  23. }
  24. </script>
  25. </head>
  26. <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" topmargin="0" leftmargin="0">
  27. <!--$begin exclude$-->
  28.     <div id="centerwrapper">
  29.      <div id="root" style="position:absolute;width:1000px;height:768px;">
  30. <!--$end exclude$-->
  31.         <div id="e0" style="position:absolute;left:0;top:0;width:1000;height:768;"><img src="images/mainmenu.jpg" width="1000" height="768" alt=""></div>      <div id="e1" style="position:absolute;left:378;top:443;width:250;height:109;">
  32.          <table border="0" cellspacing="0" cellpadding="0" width="250">
  33.             <tr>
  34.              <td nowrap height="109" align="center" valign="top"><span class="text"><font face="Verdana" size="4"><span style="font-size:22px;line-height:28px;">Please press the F11 <br soft>key on your keyboard <br soft>for better viewing<br soft></span></font></span></td>
  35.             </tr>
  36.          </table>
  37.         </div>
  38.         <div id="e2" style="position:absolute;left:304;top:228;width:153;height:101;"><a href="#" onclick="openFull('http://2duce2.com/Welcome/weddingvideos.html'); target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-153x101.png" width="153" height="101" border="0" alt=""></a></div>      <div id="e3" style="position:absolute;left:350;top:344;width:56;height:19;"> <a href="#" onclick="openFull('http://2duce2.com/Welcome/weddingvideos.html');"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-56x19.png" width="56" height="19" border="0" alt=""></a></div>      <div id="e4" style="position:absolute;left:544;top:227;width:139;height:107;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-139x107.png" width="139" height="107" border="0" alt=""></a></div>      <div id="e5" style="position:absolute;left:599;top:348;width:30;height:18;"><a href="http://2duce2weddingvideos.blogspot.com/" target="_blank"><!--$img %ImageAssetImpl:/images/button.png$--><img src="sitebuilder/images/button-30x18.png" width="30" height="18" border="0" alt=""></a></div><!--$begin exclude$-->
  39.      </div>
  40.     </div>
  41. <!--$end exclude$-->
  42. </body>
  43. </html>
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

the url goes from http://2duce2.com/

to http://2duce2.com/#
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

When I change the single quotes to double quotes it actually opened another window.
Code: [ Select ]
<a href="#" onclick="openFull("http://2duce2.com/Welcome/weddingvideos.html"); target="_blank">


but it still doesn't actually go to the flash it goes to http://2duce2.com/# just in a new window
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

well its opening another window because you have _blank in there

Its not doing it with the javascript. I think you should not open a new window and just make the current window go to the correct location and expand the current to be full screen...
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

oh okay...I'll take the _blank out then

should I take out this whole part?
Code: [ Select ]
target="_blank"


I took that code out, but even still its not actually going to the main site when I click on website!
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I'm off!! We'll give it a go later
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I've been trying to get this fullscreen deal to work all weekend, and still no luck!! I know one of you geniuses know how to make this happen!! :)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Someone else want to take a shot at this? I'm not getting anywhere. Goal is to pop a new window full screen. I can't for the life of me figure out why its not working. Geno what browser are you using?
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Right now I"m on Safari 3.1.2

Let me ask you this

In this code what does the word "targ" mean? Am I suposed to put my target link in place of the word targ?

Just wondering if thats the whole problem!

wow...I'll feel like an idiot!

Code: [ Select ]
<script type="text/javascript">
         function openFull(targ){
             var urlTarg = targ;
             newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
 status=no,menubar=no,scrollbars=no,resizable=no');
             newWin.resizeTo();
             newWin.resizeTo(screen.availWidth,screen.availHeight);
         }
     </script>
  1. <script type="text/javascript">
  2.          function openFull(targ){
  3.              var urlTarg = targ;
  4.              newWin = window.open(urlTarg,'Flash Site','fullscreen=yes,toolbar=no,location=no,directories=no,
  5.  status=no,menubar=no,scrollbars=no,resizable=no');
  6.              newWin.resizeTo();
  7.              newWin.resizeTo(screen.availWidth,screen.availHeight);
  8.          }
  9.      </script>
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Well no not really. Stop me if this gets way too crazy but I'm going to give you a quick programming overview so what you're seeing makes some sense.

In javascript and a lot of other languages code is split into reusable chunks called functions. Functions only run when called by name so in reality they can be used over and over again.

Typical Function
Code: [ Select ]
functionName (Parameters) {
Stuff that happens when the function runs
}
  1. functionName (Parameters) {
  2. Stuff that happens when the function runs
  3. }

So then if we use this code again and again it might not be helpful if it always does the exact same thing. So inside of the parenthesis we have the option to pass Parameters to the function. Parameters can really be just about anything but in your case its the url of the link we want to open. The goal of this specific function is to have the function open a new window, make the window fullscreen and move it to the top left of the screen. Then we want the new window to display what ever url we send it. It could be google. It could be your website or my website, etc.

So that was a long explanation of the "targ" So further down on the page when you call the function "onClick = functionName(targ)" Your also providing the targ in the form of your url and javascript replaces the word targ with the url your passing.

I have some ideas on how to get this working, but I need to play with them a bit.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Oh...wow!! that helps a ton!! I've been trying to figure out what this stuff meant!!

Great help!!
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Ok so I think I found the problem. Its been ages since I did this and I apparently forgot how it works :-)

Replace the entire <a> (from open bracket to close bracket)
Code: [ Select ]
<a href="#" onclick="openFull("http://2duce2.com/Welcome/weddingvideos.html"); target="_blank">

with this:
Code: [ Select ]
<a HREF="javascript&#058;void(0)" onclick="openFull('http://2duce2.com/Welcome/weddingvideos.html')">
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

arg ozzu is replacing the colon with : so you need to change it back it should read javascript:void(0)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Sorry I haven't been able to get back to help any here. Too busy to really look at it.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 62 posts
  • Users browsing this forum: No registered users and 19 guests
  • 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 post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.