Make a Flash Contact Form Function Correctly

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

Post 3+ Months Ago

Hey guys,

I'm really new to this flash world!

I have purchased a template and I need to modify my contact box so that the messages come to my business address.

Also I know its possible, but how hard would it be to have an automatic response to people who leave a message in my contact box such as:

"Thank you
We have recieved your email and we will get back to you shortly."


Below is a screen shot of my contact box


Image


Here is the code for my reset button
Code: [ Select ]
on (rollOver){this.gotoAndPlay("s1");}
on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
on (release) { 
    _parent.t1_2 = "Your full name:";
    _parent.t2_2 = "E-mail address:";
    _parent.t3_2 = "Your telephone:";
    _parent.t4_2 = "Message:";
}
  1. on (rollOver){this.gotoAndPlay("s1");}
  2. on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
  3. on (release) { 
  4.     _parent.t1_2 = "Your full name:";
  5.     _parent.t2_2 = "E-mail address:";
  6.     _parent.t3_2 = "Your telephone:";
  7.     _parent.t4_2 = "Message:";
  8. }




Here is the code for my send button
Code: [ Select ]
on (rollOver){this.gotoAndPlay("s1");}
on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
on (release) { 
    _parent.getURL ("contact.php","_blank","GET");
    _parent.t1_2 = "Your full name:";
    _parent.t2_2 = "E-mail address:";
    _parent.t3_2 = "Your telephone:";
    _parent.t4_2 = "Message:";
}
  1. on (rollOver){this.gotoAndPlay("s1");}
  2. on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
  3. on (release) { 
  4.     _parent.getURL ("contact.php","_blank","GET");
  5.     _parent.t1_2 = "Your full name:";
  6.     _parent.t2_2 = "E-mail address:";
  7.     _parent.t3_2 = "Your telephone:";
  8.     _parent.t4_2 = "Message:";
  9. }



As far as I know everything is right in it, but please don't hesitate to prove me wrong...I just want to get this box working!

And after doing a billion searches I came across a few people who said that I need to make a txt file with this code in it

Code: [ Select ]
<?php
 
    $your_name = $_GET[ ‘name’ ];
    $your_email = $_GET[ ‘email’ ];
    $your_phone = $_GET[ ‘phone’ ];
    $your_message = $_GET[ ‘message’ ];
 
    $recipient_mail = “iputmyemailaddresshere@mail.com”;
 
    $subject = “from” . $your_email;
    $headers = “From: “ . $your_email . “ <” . $your_email . “>\n”;
    $headers .= ‘Content-type: text/html; charset=iso-8859-1’;
 
    $content = “<html><head><title>Contact letter<title></head><body><br>”;
    $content .= “Name: <b>” . $your_name . “</b><br>”;
    $content .= “Email: <b>” . $your_email . “</b><br><hr><br>”;
    $content .= “phone: <b>” . $your_phone . “</b><br>”;
    $content .= $your_message;
    $content .= “<br></body><html>”;
 
    mail ($recipient_email,$subject,$content,$headers) ;
?>
<html>
    <body bgcolor=”#282E2C”>
        <div align=”center” style=”margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold”>
            Your message was sent. Thank you.
        </div>
    </body>
</html>
<script>resizeTo(300, 300)</script>
 
  1. <?php
  2.  
  3.     $your_name = $_GET[ ‘name’ ];
  4.     $your_email = $_GET[ ‘email’ ];
  5.     $your_phone = $_GET[ ‘phone’ ];
  6.     $your_message = $_GET[ ‘message’ ];
  7.  
  8.     $recipient_mail = “iputmyemailaddresshere@mail.com”;
  9.  
  10.     $subject = “from” . $your_email;
  11.     $headers = “From: “ . $your_email . “ <” . $your_email . “>\n”;
  12.     $headers .= ‘Content-type: text/html; charset=iso-8859-1’;
  13.  
  14.     $content = “<html><head><title>Contact letter<title></head><body><br>”;
  15.     $content .= “Name: <b>” . $your_name . “</b><br>”;
  16.     $content .= “Email: <b>” . $your_email . “</b><br><hr><br>”;
  17.     $content .= “phone: <b>” . $your_phone . “</b><br>”;
  18.     $content .= $your_message;
  19.     $content .= “<br></body><html>”;
  20.  
  21.     mail ($recipient_email,$subject,$content,$headers) ;
  22. ?>
  23. <html>
  24.     <body bgcolor=”#282E2C”>
  25.         <div align=”center” style=”margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold”>
  26.             Your message was sent. Thank you.
  27.         </div>
  28.     </body>
  29. </html>
  30. <script>resizeTo(300, 300)</script>
  31.  


...I'm guessing then I need to upload that file to my website??

Any help with this is really appreciated!!

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

Post 3+ Months Ago

I think I'm in the right direction, but when I hit the send button, it opens up a blank page!!

Heeelllp me....i'm melting...no but seriously help a brotha out!!

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

Post 3+ Months Ago

I've updated my code, but I'm still missing something. I keep getting a blank page

here's the code for my reset button
Code: [ Select ]
on (rollOver){
    gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
    gotoAndPlay("s2");
}
on (release) { 
    _parent.name="Your full name:";
    _parent.email="E-mail address:";
    _parent.phone="Your telephone:";
    _parent.message="Message:";
 
}
  1. on (rollOver){
  2.     gotoAndPlay("s1");
  3. }
  4. on (rollOut, releaseOutside) {
  5.     gotoAndPlay("s2");
  6. }
  7. on (release) { 
  8.     _parent.name="Your full name:";
  9.     _parent.email="E-mail address:";
  10.     _parent.phone="Your telephone:";
  11.     _parent.message="Message:";
  12.  
  13. }



Here is the code for my submit button
Code: [ Select ]
on (rollOver) {
    gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
    gotoAndPlay("s2");
}
on (release) { 
    _parent.getURL ("contact.php","_blank","GET");
    _parent.name="Your full name:";
    _parent.email="E-mail address:";
    _parent.phone="Your telephone:";
    _parent.message="Message:";
}
  1. on (rollOver) {
  2.     gotoAndPlay("s1");
  3. }
  4. on (rollOut, releaseOutside) {
  5.     gotoAndPlay("s2");
  6. }
  7. on (release) { 
  8.     _parent.getURL ("contact.php","_blank","GET");
  9.     _parent.name="Your full name:";
  10.     _parent.email="E-mail address:";
  11.     _parent.phone="Your telephone:";
  12.     _parent.message="Message:";
  13. }


I also upload a file by the name of "contact.php"

here's the code I have in that file
Code: [ Select ]
<?php
 
    $your_name = $_GET[ ‘name’ ];
    $your_email = $_GET[ ‘email’ ];
    $your_phone = $_GET[ ‘phone’ ];
    $your_message = $_GET[ ‘message’ ];
 
    $recipient_mail = “myemail@mymail.com”;
 
    $subject = “from” . $your_email;
    $headers = “From: “ . $your_email . “ <” . $your_email . “>\n”;
    $headers .= ‘Content-type: text/html; charset=iso-8859-1’;
 
    $content = “<html><head><title>Contact letter<title></head><body><br>”;
    $content .= “Name: <b>” . $your_name . “</b><br>”;
    $content .= “Email: <b>” . $your_email . “</b><br><hr><br>”;
    $content .= “phone: <b>” . $your_phone . “</b><br>”;
    $content .= $your_message;
    $content .= “<br></body><html>”;
 
    mail ($recipient_email,$subject,$content,$headers) ;
?>
<html>
    <body bgcolor=”#282E2C”>
        <div align=”center” style=”margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold”>
            Your message was sent. Thank you.
        </div>
    </body>
</html>
<script>resizeTo(300, 300)</script>
 
  1. <?php
  2.  
  3.     $your_name = $_GET[ ‘name’ ];
  4.     $your_email = $_GET[ ‘email’ ];
  5.     $your_phone = $_GET[ ‘phone’ ];
  6.     $your_message = $_GET[ ‘message’ ];
  7.  
  8.     $recipient_mail = “myemail@mymail.com”;
  9.  
  10.     $subject = “from” . $your_email;
  11.     $headers = “From: “ . $your_email . “ <” . $your_email . “>\n”;
  12.     $headers .= ‘Content-type: text/html; charset=iso-8859-1’;
  13.  
  14.     $content = “<html><head><title>Contact letter<title></head><body><br>”;
  15.     $content .= “Name: <b>” . $your_name . “</b><br>”;
  16.     $content .= “Email: <b>” . $your_email . “</b><br><hr><br>”;
  17.     $content .= “phone: <b>” . $your_phone . “</b><br>”;
  18.     $content .= $your_message;
  19.     $content .= “<br></body><html>”;
  20.  
  21.     mail ($recipient_email,$subject,$content,$headers) ;
  22. ?>
  23. <html>
  24.     <body bgcolor=”#282E2C”>
  25.         <div align=”center” style=”margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold”>
  26.             Your message was sent. Thank you.
  27.         </div>
  28.     </body>
  29. </html>
  30. <script>resizeTo(300, 300)</script>
  31.  


Please Help:)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

Well, there's really no need to actually "display" the php page at all. The attached zip file contains a form contact page I use at work. It's a little more complex than your basic form but contains all the necessary elements to a good working form using a php mailer. (I've altered this a bit from the original, but credit to UNFLUX who designed the original page)
Attachments:
contactForm.zip

(130.97 KiB) Downloaded 1067 times

Includes FLA and php scrip for generalContact.



When you open the FLA in your actions panel, in the left pane expand formGeneral and take a look at the submit button code.

Code: [ Select ]
on (release) {
    if (name eq "" or email eq "" or message eq "") {
        error.gotoAndPlay("error");
    } else {
        loadVariablesNum("contactGeneral.php", 0, "POST");
        error.gotoAndPlay("sent");
        name = "";
        company = "";
        phone = "";
        email = "";
        message = "";
    }
}
 
  1. on (release) {
  2.     if (name eq "" or email eq "" or message eq "") {
  3.         error.gotoAndPlay("error");
  4.     } else {
  5.         loadVariablesNum("contactGeneral.php", 0, "POST");
  6.         error.gotoAndPlay("sent");
  7.         name = "";
  8.         company = "";
  9.         phone = "";
  10.         email = "";
  11.         message = "";
  12.     }
  13. }
  14.  


Lets break that down. When we release the button the first thing we do is check to see if all required fields are completed. It's always a good idea to require at least some if not all fields to avoid getting empty emails.
Code: [ Select ]
if (name eq "" or email eq "" or message eq "")

*note - name, company, phone, email, and message are the variable names given to the respective text input fields. The code above then uses those variables to pass to your php script.

If any of the required fields is empty we send the user an error message
Code: [ Select ]
error.gotoAndPlay("error");


the first "error" in the code above is the instance name of a movie clip called error which basically contains two messages. One is a sent successfully message, the other is an error message telling them to complete all required fields. In the attached FLA you can see the error movie clip by selecting it from the library to edit.

The second "error" in parenthesis is the label assigned to the error message.
If all required fields are met, then we're going to load contactGeneral.php which is my mail script
Code: [ Select ]
loadVariablesNum("contactGeneral.php", 0, "POST");


Here we use loadVariablesNum instead of getUrl which simply loads the Variables into the php script and we do this by the POST method vs the GET method.
The variables we are loading are
Code: [ Select ]
name = "";
        company = "";
        phone = "";
        email = "";
        message = "";
  1. name = "";
  2.         company = "";
  3.         phone = "";
  4.         email = "";
  5.         message = "";


Essentially it's identical to your fields except I have a company field in mine.
Then to give them a success message we send them back to the "error" movieClip at the label "sent" which displays the success message, which in your case is where you could have:
"Thank you
We have recieved your email and we will get back to you shortly."
Code: [ Select ]
error.gotoAndPlay("sent");


The included php file, now is pretty self explanatory:
Code: [ Select ]
<?
 
   if (isset($HTTP_POST_VARS)) {
               
                $name = $HTTP_POST_VARS["name"];
                $company = $HTTP_POST_VARS["company"];
                $phone = $HTTP_POST_VARS["phone"];
                $email = $HTTP_POST_VARS["email"];
                $message = $HTTP_POST_VARS["message"];
                }
 
   $to = "generalContact@alaron-nuclear.com";
     $from = "webmaster@alaron-nuclear.com";
   $subject = "Alaron General Contact Form";
   $msg .= "Senders Name: " ."$name\n\n";
   $msg .= "Company: " ."$company\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 Alaron-Nuclear Contact Request Form.\n\n";
     $msg .= "Do not reply to this email directly.";
 
  mail($to, $from, $subject, $msg, "From: Alaron Web Site\nReply-To: $email\n");
 
?>
  1. <?
  2.  
  3.    if (isset($HTTP_POST_VARS)) {
  4.                
  5.                 $name = $HTTP_POST_VARS["name"];
  6.                 $company = $HTTP_POST_VARS["company"];
  7.                 $phone = $HTTP_POST_VARS["phone"];
  8.                 $email = $HTTP_POST_VARS["email"];
  9.                 $message = $HTTP_POST_VARS["message"];
  10.                 }
  11.  
  12.    $to = "generalContact@alaron-nuclear.com";
  13.      $from = "webmaster@alaron-nuclear.com";
  14.    $subject = "Alaron General Contact Form";
  15.    $msg .= "Senders Name: " ."$name\n\n";
  16.    $msg .= "Company: " ."$company\n\n";
  17.    $msg .= "Phone: " ."$phone\n\n";
  18.    $msg .= "Email: " ."$email\n\n";
  19.    $msg .= "Message: " ."$message\n\n";
  20.      $msg .= "This message was sent to you from Alaron-Nuclear Contact Request Form.\n\n";
  21.      $msg .= "Do not reply to this email directly.";
  22.  
  23.   mail($to, $from, $subject, $msg, "From: Alaron Web Site\nReply-To: $email\n");
  24.  
  25. ?>



Hope that helps and doesn't confuse you more.
  • spork
  • Brewmaster
  • Silver Member
  • spork
  • Posts: 6299
  • Loc: Seattle, WA

Post 3+ Months Ago

PHP Code: [ Select ]
$recipient_mail = <!-- e -->ebrown@2duce2.com<!-- e -->;

should be
PHP Code: [ Select ]
$recipient_mail = <!-- e -->'ebrown@2duce2.com<!-- e -->';


Note the quotes.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I really appreciate all the help!! You're officially my new hero:)

Oh and sorry for duplicate post!!

Heres where I'm at now!!

When I leave all the text fields in my contact box empty and click the submit button two things happen!!
There is no error message and I get a blank email

I'm guessing that I'm missing some code and thats why I don't have the error message.

As far as the email goes I'm glad I'm finally getting emails, but I only get them when I leave the fields blank.

Here's the email I get
    Senders Name:

    Email:

    Phone:

    Message:

    This message was sent to you from 2Duce2 Wedding videos Contact Request Form.

    Do not reply to this email directly.

    2Duce2 Wedding Videos


Here is the code of my submit button
Code: [ Select ]
on (rollOver) {
    gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
    gotoAndPlay("s2");
}
on (release) { 
    if (name eq "" or email eq "" or message eq "") {
        error.gotoAndPlay("error");
    } else {
        loadVariablesNum("contactGeneral.php", 0, "POST");
    error.gotoAndPlay("sent");
        name = "";
        company = "";
        phone = "";
        email = "";
        message = "";
    }
}
  1. on (rollOver) {
  2.     gotoAndPlay("s1");
  3. }
  4. on (rollOut, releaseOutside) {
  5.     gotoAndPlay("s2");
  6. }
  7. on (release) { 
  8.     if (name eq "" or email eq "" or message eq "") {
  9.         error.gotoAndPlay("error");
  10.     } else {
  11.         loadVariablesNum("contactGeneral.php", 0, "POST");
  12.     error.gotoAndPlay("sent");
  13.         name = "";
  14.         company = "";
  15.         phone = "";
  16.         email = "";
  17.         message = "";
  18.     }
  19. }



And here is my PHP file
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 .= "Email: " ."$email\n\n";
   $msg .= "Phone: " ."$phone\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");
 
?>
 
  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 .= "Email: " ."$email\n\n";
  16.    $msg .= "Phone: " ."$phone\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.  


Once again I want to thank you for all of your help and patients with me!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

check each of your input text fields properties. I'm pretty sure you've already assigned each of them an instance name, but make sure in the variable box you've included the variable name.

In other words for your Senders Name input box, the variable should be "name" for the email input box the variable should be "mail", etc. You can also lose company = ""; from your ActionScript since you aren't using a Company input box.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Here are screen shots of each of my text field settings

Name

http://2duce2.com/forumpics/name.tiff

Email

http://2duce2.com/forumpics/email.tiff

Telephone

http://2duce2.com/forumpics/telephone.tiff

Message

http://2duce2.com/forumpics/message.tiff



Also I went ahead and took out the company = "";

I'm getting emails when I leave the form blank, but I'm also getting emails when I fill out the information, but the emails I get are still blank emails

Image


Also my reset button now resets everything besides the email address
Code: [ Select ]
on (rollOver){
    gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
    gotoAndPlay("s2");
}
on (release) { 
    _parent.name="Your full name:";
    _parent.email="E-mail address:";
    _parent.phone="Your telephone:";
    _parent.message="Message:";
 
  1. on (rollOver){
  2.     gotoAndPlay("s1");
  3. }
  4. on (rollOut, releaseOutside) {
  5.     gotoAndPlay("s2");
  6. }
  7. on (release) { 
  8.     _parent.name="Your full name:";
  9.     _parent.email="E-mail address:";
  10.     _parent.phone="Your telephone:";
  11.     _parent.message="Message:";
  12.  
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

I think you're almost there!

The blank emails are being caused because you didn't set a maximum characters for your input fields. They are all set to a maximum of "0" characters (it's probably also why when you leave them blank it's allowing those to be sent also).

For example I have my max characters set to the following:
name = 25
phone = 25
email = 45
message = 500

You can adjust those numbers to anything you like.
From your images it looks like you also have the option to "render textas HTML" turned on. That's the greater than less than <> button to the left of your variable field. I would recommend turning that off on all fields or you might get html code in your email if you are set to receive mail as text only.

Fix that and you should solve the remainder of your issues. However, I am uncertain why your reset button is not resetting your email field. I don't have an answer for you on that one.

*note for reference, posting tiff images inline at OZZU doesn't work with the bbCode as tiff isn't supported. In the future save them as jpg images and they'll display.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I'm still getting blank emails

Here is another set of code that came with the contact box. Maybe there is a bit of code thats not set right?
Code: [ Select ]
t1.onSetFocus = function() {
    if (t1_2 == "Your full name:") {
        t1_2 = "";
    }
    // end if
};
t2.onSetFocus = function() {
    if (t2_2 == "E-mail address:") {
        t2_2 = "";
    }
    // end if
};
t3.onSetFocus = function() {
    if (t3_2 == "Your telephone:") {
        t3_2 = "";
    }
    // end if
};
t4.onSetFocus = function() {
    if (t4_2 == "Message:") {
        t4_2 = "";
    }
    // end if
};
t1.onKillFocus = function() {
    if (t1_2 == "") {
        t1_2 = "Your full name:";
    }
    // end if
};
t2.onKillFocus = function() {
    if (t2_2 == "") {
        t2_2 = "E-mail address:";
    }
    // end if
};
t3.onKillFocus = function() {
    if (t3_2 == "") {
        t3_2 = "Your telephone:";
    }
    // end if
};
t4.onKillFocus = function() {
    if (t4_2 == "") {
        t4_2 = "Message:";
    }
    // end if
};
 
  1. t1.onSetFocus = function() {
  2.     if (t1_2 == "Your full name:") {
  3.         t1_2 = "";
  4.     }
  5.     // end if
  6. };
  7. t2.onSetFocus = function() {
  8.     if (t2_2 == "E-mail address:") {
  9.         t2_2 = "";
  10.     }
  11.     // end if
  12. };
  13. t3.onSetFocus = function() {
  14.     if (t3_2 == "Your telephone:") {
  15.         t3_2 = "";
  16.     }
  17.     // end if
  18. };
  19. t4.onSetFocus = function() {
  20.     if (t4_2 == "Message:") {
  21.         t4_2 = "";
  22.     }
  23.     // end if
  24. };
  25. t1.onKillFocus = function() {
  26.     if (t1_2 == "") {
  27.         t1_2 = "Your full name:";
  28.     }
  29.     // end if
  30. };
  31. t2.onKillFocus = function() {
  32.     if (t2_2 == "") {
  33.         t2_2 = "E-mail address:";
  34.     }
  35.     // end if
  36. };
  37. t3.onKillFocus = function() {
  38.     if (t3_2 == "") {
  39.         t3_2 = "Your telephone:";
  40.     }
  41.     // end if
  42. };
  43. t4.onKillFocus = function() {
  44.     if (t4_2 == "") {
  45.         t4_2 = "Message:";
  46.     }
  47.     // end if
  48. };
  49.  


I'm sorry I keep bugging you!! I really appreciate your help though!!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'm not certain where the t1-t4 are coming from. At first I thought they were the instance names of your text input fields but I noticed in your images that you didn't give them instance names.


Can you include a link to your current FLA?
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I didn't have instance names but after seeing the code in my previous post, I went ahead and added the t1-t4 in the instance name fields!!

I think this is the link you want

//link available via PM for trusted members - removed because it's a template.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

Got the FLA. However I'm leaving work shortly and won't be able to look at it until tomorrow. There's a couple of good Flash people here that might catch it in the meantime so be patient and keep plugging away. You're making progress.

//I removed the FLA link since it was a purchased template. If someone else wants to take a look I'll provide it in PM. I know the members I can trust with it.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

hey thanks man!!

hopefully i'll make some progress:)

Take care!!
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

I haven't been following this to closely but I wonder if the loadVarsNum is the issue. I wasn't aware that you could do outward communication with that. Instead I would use the SendandLoad() command.

Here's an example of the usage. I can't tell you exactly how to implement without seeing your code and I don't have time to dig into it tonight, but at least its a place to start tracking down issues tomorrow.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Thanks I'll check it out
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'll send you his FLA tomorrow in PM graphixboy if he hasn't got it by then. I think I ended up using loadVarsNum because I run a Windows server, but it works for me perfectly. The code I posted is the code currently in place at my Alaron site in my sig.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

hmmmmm sandbox security rule? http://www.ultrashock.com/forums/flash- ... 76238.html
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

another thought and this could well be the reason it works for me and not geno. Using loadVarsNum is typically used when loading vars into a different level which I'm doing. so graphixboy's suggestion of sendAndLoad might be the better alternative.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

This is the code thats in the example graphicboy gave me. where would I put this code? would I make another PHP file to put it in or what!!


Code: [ Select ]
var emailServer:String = "http://server.com/email.php"
 
var request:LoadVars = new LoadVars();
var response:LoadVars = new LoadVars();
    response.onLoad = showResult;
 
/************************
Server Request
************************/
function sendEmail():Void{
    request.name = "chrisaiv";
    request.email = "blah@blah.com";
    request.url = "http://sendtoafriend";
    request.sendAndLoad(emailServer + "?clearCache=" + new Date().getTime(), response, "GET");
 
    //Show data sent
    for (var prop in request){
        //trace( request[prop] + newline);
    }
}
 
/************************
Server Response
************************/
function showResult():Void{
    if (this.success) {
        trace("File path: " + this.success);
    }
}
 
sendEmail();
  1. var emailServer:String = "http://server.com/email.php"
  2.  
  3. var request:LoadVars = new LoadVars();
  4. var response:LoadVars = new LoadVars();
  5.     response.onLoad = showResult;
  6.  
  7. /************************
  8. Server Request
  9. ************************/
  10. function sendEmail():Void{
  11.     request.name = "chrisaiv";
  12.     request.email = "blah@blah.com";
  13.     request.url = "http://sendtoafriend";
  14.     request.sendAndLoad(emailServer + "?clearCache=" + new Date().getTime(), response, "GET");
  15.  
  16.     //Show data sent
  17.     for (var prop in request){
  18.         //trace( request[prop] + newline);
  19.     }
  20. }
  21.  
  22. /************************
  23. Server Response
  24. ************************/
  25. function showResult():Void{
  26.     if (this.success) {
  27.         trace("File path: " + this.success);
  28.     }
  29. }
  30.  
  31. sendEmail();
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

no don't use that. That's ASP code. you are using php. I'll look at your FLA in the AM and send the link for it to graphixboy in case he wants to check it out. Can't do it now cause I saved it to a network drive which I don't have access to at the moment.

//edit strike that - it's not ASP code but sure looked like it at a glance, but it'll just mess up your template. so still don't use it. I just looked at the example link he posted. It'll confuse the hell out of everything you've got going. Good code, but you can work around it I'm sure.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

okay!! I'm gonna call it a night then!!

Have a good night!!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

This is probably a better example of how sendAndLoad works considering your form
http://www.emanueleferonato.com/2008/06 ... ndandload/

Don't even think about copying that into your form. It's just a better example that demonstrates the use, but it has nothing to do with emailing - just educational.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

thanks for the link!! Definitely helpful!!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

I did look at it this morning and can't put my finger on why mine works and yours doesn't. Unfortunately I'm too busy at work today to give it any more attention and might not get back to this until the weekend. I just sent the link to your FLA to graphixboy in PM in case he has a moment to check it out.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Thanks! I really appreciate it man!!
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

This is drivin' me crazy!! Anyone else have any advice?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23473
  • Loc: Woodbridge VA

Post 3+ Months Ago

graphixboy told me he's taking a look at it. Be patient.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I don't know if its worth mentioning, but I host my website on yahoo. Could that be affecting my contact box?
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

I"m finally getting emails...but no confirmation...Wayyyy better than yesterday!!

Thanks Graphixboy and ATNO/TW

you guys are the best ever in the world:)
  • 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:)
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • 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: 23473
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 1827
  • 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: 23473
  • 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.
  • geno369329
  • Beginner
  • Beginner
  • User avatar
  • Posts: 44

Post 3+ Months Ago

Still no luck! I think I"m gonna call it quits on this one! I just hate that some people might not see the full website!!
  • densityofsouls
  • Born
  • Born
  • densityofsouls
  • Posts: 1

Post 3+ Months Ago

Hey guys,

I have the same problem, exact same code. Was there ever a solution found?

Cheers,
Richard

rhl@richardhlowe.com

Post Information

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

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