Make a Flash Contact Form Function Correctly

  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Joined: Sep 29, 2008
  • Posts: 44
  • Status: Offline

Post October 3rd, 2008, 7:07 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 3rd, 2008, 7:07 am

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 3rd, 2008, 8:06 am

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?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post October 3rd, 2008, 8:33 am

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 3rd, 2008, 8:40 am

there's a newer version of the fla but I actually just changed the text in the message field to say thanks.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Joined: Sep 29, 2008
  • Posts: 44
  • Status: Offline

Post October 3rd, 2008, 9:17 am

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
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 3rd, 2008, 9:22 am

what fixed it? combo of moving the text in the php and my new fla or just moving the text?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Joined: Sep 29, 2008
  • Posts: 44
  • Status: Offline

Post October 3rd, 2008, 9:43 am

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

Post October 3rd, 2008, 10:01 am

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.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Joined: Sep 29, 2008
  • Posts: 44
  • Status: Offline

Post October 3rd, 2008, 11:18 am

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
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 3rd, 2008, 11:26 am

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?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Joined: Sep 29, 2008
  • Posts: 44
  • Status: Offline

Post October 3rd, 2008, 12:20 pm

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

Post October 3rd, 2008, 1:16 pm

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>
  47.  


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

Post October 3rd, 2008, 1:27 pm

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.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 3rd, 2008, 1:41 pm

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);
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Joined: Sep 29, 2008
  • Posts: 44
  • Status: Offline

Post October 3rd, 2008, 1:54 pm

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:)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 3rd, 2008, 1:54 pm

Post Information

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

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.