Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default email form

    Hi people

    Can anyone tell me why my email form will work fine when I preview it
    seperatly but not when embedded within my site, I mean check out [L=On its
    own]http://www.clearworld.co.uk/mail2/movie5.swf[/L] that works fine

    Now check out [L=Embedded within the rest of the
    site]http://www.clearworld.co.uk/ims27/[/L] the email gets sent but it doesn't
    display a message

    Both are the same swf file, I think it has something to do with how I am
    loading the external swf files into the main one

    Here is the code for loading my external movies

    stop()
    //loadMovie("movie0.swf", "paper")
    loadMovieNum("home_4.swf", 1)
    dummy._visible = false
    mcArray = [mc0, mc1, mc2, mc3, mc4, mc5]
    // mcArray[0].number_txt.text = "HOME
    // mcArray[1].number_txt.text = "WHO WE ARE
    // mcArray[2].number_txt.text = "WHAT WE DO
    // mcArray[3].number_txt.text = "WHY CHOOSE US
    // mcArray[4].number_txt.text = "RESOURCE CENTRE
    // mcArray[5].number_txt.text = "CONTACT US
    onEnterFrame = function ()
    mcArray[5].box._alpha = 100
    // transparency setting for Contact U
    mcArray[4].box._alpha = 90
    // transparency setting for Resource Centr
    mcArray[3].box._alpha = 80
    // transparency setting for Why Choose U
    mcArray[2].box._alpha = 70
    // transparency setting for What We D
    mcArray[1].box._alpha = 60
    // transparency setting for Who We Ar
    mcArray[0].box._alpha = 50
    // transparency setting for Hom
    }
    bgd._alpha = 1
    endX = 0
    paper._x = 3
    paper._y = 20
    paper._yscale = 80
    mcArray[0].gotoAndStop(5)
    for (i=0; i<6; i++)
    mcArray[i].onRollOver = function()
    this.gotoAndStop(10)
    }
    mcArray[i].onRollOut = function()
    this.gotoAndStop(1)
    }

    MovieClip.prototype.slideTo = function(y, speed, callbackObj, callbackFunc)
    if (this.slideControl)
    var control_mc = this.slideControl
    } else
    var control_mc = this.createEmptyMovieClip("slideControl", this.depth++)

    control_mc.targetY = y
    control_mc.speed = speed
    control_mc.callBackObj = callBackObj
    control_mc.callBackFunc = callBackFunc
    control_mc.onEnterFrame = function()
    this._parent._y += (this.targetY-this._parent._y)/this.speed
    if (Math.abs(this.targetY-this._parent._y)<0.2)
    this._parent._y = this.targetY
    this.callBackObj[this.callBackFunc](this._parent)
    this.removeMovieClip()

    }
    }
    mcArray[0].onPress = function()
    for (i=0; i<6; i++)
    mcArray[i].enabled = false

    mcArray[0].gotoAndStop(5)
    mcArray[5].gotoAndStop(1)
    mcArray[1].gotoAndStop(1)
    mcArray[2].gotoAndStop(1)
    mcArray[3].gotoAndStop(1)
    mcArray[4].gotoAndStop(1)
    _level1.unloadMovie()
    if (this._y>200)
    mc0.starty = 0
    mc1.starty = 20
    mc2.starty = 40
    mcArray[0].slideTo(mcArray[0].starty, 4, _root, "slideDone0")
    } else
    this.startY = 0
    mc1.starty = 343
    mc2.starty = 363
    mc3.starty = 383
    mc4.starty = 403
    mc5.starty = 423
    this.slideTo(this.starty, 4, _root)
    mcArray[1].slideTo(mcArray[1].starty, 4, _root, "slideDone0")
    mcArray[2].slideTo(mcArray[2].starty, 4, _root)
    mcArray[3].slideTo(mcArray[3].starty, 4, _root)
    mcArray[4].slideTo(mcArray[4].starty, 4, _root)
    mcArray[5].slideTo(mcArray[5].starty, 4, _root)

    }
    mcArray[1].onPress = function()
    for (i=0; i<6; i++)
    mcArray[i].enabled = false

    mcArray[1].gotoAndStop(5)
    mcArray[0].gotoAndStop(1)
    mcArray[5].gotoAndStop(1)
    mcArray[2].gotoAndStop(1)
    mcArray[3].gotoAndStop(1)
    mcArray[4].gotoAndStop(1)
    _level1.unloadMovie()
    if (this._y>300)
    mc0.starty = 0
    mc1.starty = 20
    mcArray[1].slideTo(mcArray[1].starty, 4, _root, "slideDone1")
    mcArray[0].slideTo(mcArray[0].starty, 4, _root)
    } else
    this.starty = 20
    mc2.starty = 363
    mc3.starty = 383
    mc4.starty = 403
    mc5.starty = 423
    this.slideTo(this.starty, 4, _root)
    mcArray[2].slideTo(mcArray[2].starty, 4, _root, "slideDone1")
    mcArray[3].slideTo(mcArray[3].starty, 4, _root)
    mcArray[4].slideTo(mcArray[4].starty, 4, _root)
    mcArray[5].slideTo(mcArray[5].starty, 4, _root)

    }
    mcArray[2].onPress = function()
    for (i=0; i<6; i++)
    mcArray[i].enabled = false

    mcArray[2].gotoAndStop(5)
    mcArray[0].gotoAndStop(1)
    mcArray[1].gotoAndStop(1)
    mcArray[5].gotoAndStop(1)
    mcArray[3].gotoAndStop(1)
    mcArray[4].gotoAndStop(1)
    _level1.unloadMovie()
    if (this._y>200)
    mc0.starty = 0
    mc1.starty = 20
    mc2.starty = 40
    mcArray[2].slideTo(mcArray[2].starty, 4, _root, "slideDone2")
    mcArray[1].slideTo(mcArray[1].starty, 4, _root)
    mcArray[0].slideTo(mcArray[0].starty, 4, _root)
    } else
    this.starty = 40
    mc3.starty = 383
    mc4.starty = 403
    mc5.starty = 423
    this.slideTo(this.starty, 4, _root)
    mcArray[3].slideTo(mcArray[3].starty, 4, _root, "slideDone2")
    mcArray[4].slideTo(mcArray[4].starty, 4, _root)
    mcArray[5].slideTo(mcArray[5].starty, 4, _root)

    }
    mcArray[3].onPress = function()
    mcArray[3].gotoAndStop(5)
    mcArray[0].gotoAndStop(1)
    mcArray[1].gotoAndStop(1)
    mcArray[2].gotoAndStop(1)
    mcArray[5].gotoAndStop(1)
    mcArray[4].gotoAndStop(1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = false

    mcArray[3].gotoAndStop(5)
    _level1.unloadMovie()
    if (this._y>200)
    mc0.starty = 0
    mc1.starty = 20
    mc2.starty = 40
    mc3.starty = 60
    mcArray[3].slideTo(mcArray[3].starty, 4, _root, "slideDone3")
    mcArray[2].slideTo(mcArray[2].starty, 4, _root)
    mcArray[1].slideTo(mcArray[1].starty, 4, _root)
    mcArray[0].slideTo(mcArray[0].starty, 4, _root)
    } else
    mc3.starty = 60
    mc4.starty = 403
    mc5.starty = 423
    mcArray[3].slideTo(mcArray[3].starty, 4, _root)
    mcArray[4].slideTo(mcArray[4].starty, 4, _root, "slideDone3")
    mcArray[5].slideTo(mcArray[5].starty, 4, _root)

    }
    mcArray[4].onPress = function()
    for (i=0; i<6; i++)
    mcArray[i].enabled = false

    mcArray[4].gotoAndStop(5)
    mcArray[0].gotoAndStop(1)
    mcArray[1].gotoAndStop(1)
    mcArray[2].gotoAndStop(1)
    mcArray[3].gotoAndStop(1)
    mcArray[5].gotoAndStop(1)
    _level1.unloadMovie()
    if (this._y>200)
    mc0.starty = 0
    mc1.starty = 20
    mc2.starty = 40
    mc3.starty = 60
    mc4.starty = 80
    mcArray[4].slideTo(mcArray[4].starty, 4, _root, "slideDone4")
    mcArray[3].slideTo(mcArray[3].starty, 4, _root)
    mcArray[2].slideTo(mcArray[2].starty, 4, _root)
    mcArray[1].slideTo(mcArray[1].starty, 4, _root)
    mcArray[0].slideTo(mcArray[0].starty, 4, _root)
    } else
    mc4.starty = 80
    mc5.starty = 423
    mcArray[4].slideTo(mcArray[4].starty, 4, _root)
    mcArray[5].slideTo(mcArray[5].starty, 4, _root, "slideDone4")

    }
    mcArray[5].onPress = function()
    for (i=0; i<6; i++)
    mcArray[i].enabled = false

    mcArray[5].gotoAndStop(5)
    mcArray[0].gotoAndStop(1)
    mcArray[1].gotoAndStop(1)
    mcArray[2].gotoAndStop(1)
    mcArray[3].gotoAndStop(1)
    mcArray[4].gotoAndStop(1)
    _level1.unloadMovie()
    if (this._y>200)
    mc1.starty = 20
    mc2.starty = 40
    mc3.starty = 60
    mc4.starty = 80
    mc5.starty = 100
    mcArray[5].slideTo(mcArray[5].starty, 4, _root, "slideDone5")
    mcArray[4].slideTo(mcArray[4].starty, 4, _root)
    mcArray[3].slideTo(mcArray[3].starty, 4, _root)
    mcArray[2].slideTo(mcArray[2].starty, 4, _root)
    mcArray[1].slideTo(mcArray[1].starty, 4, _root)
    mcArray[0].slideTo(mcArray[0].starty, 4, _root)
    } else
    mc5.starty = 100
    mcArray[5].slideTo(mcArray[5].starty, 4, _root, "slideDone5")

    }
    function slideDone0()
    loadMovieNum("home_4.swf", 1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = true

    mcArray[0].enabled = false

    function slideDone1()
    loadMovieNum("movie1.swf", 1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = true

    mcArray[1].enabled = false

    function slideDone2()
    loadMovieNum("movie2.swf", 1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = true

    mcArray[2].enabled = false

    function slideDone3()
    loadMovieNum("movie3.swf", 1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = true

    mcArray[3].enabled = false

    function slideDone4()
    loadMovieNum("movie4.swf", 1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = true

    mcArray[4].enabled = false

    function slideDone5()
    loadMovieNum("movie5.swf", 1)
    for (i=0; i<6; i++)
    mcArray[i].enabled = true

    mcArray[5].enabled = false



    And here is the code for sending the playhead to the display message on the
    movie5.swf page

    // set two variables, subject and recipient, in this movieclip to send to th
    // perl script. Set variable rstatus to blank
    onClipEvent(load)
    subject = "Email Form submitted from the Site"
    recipient = "info@lee-wilson.co.uk"
    _root.rstatus = ""


    // loop until rstatus has some value (meaning the perl script sent one back
    onClipEvent(enterFrame)
    if (_root.rstatus ne "")
    _root.gotoAndStop("display")





    urban65 Guest

  2. Similar Questions and Discussions

    1. PES Email Form
      Does anyone know what's happened to Gregory Peacock? I need to get hold of the PES Email Form - I've stupidly lost my copy of it and I went back to...
    2. Connenting email form to an email account
      :( I am at a mental brickwall. I created a form, created two text fields and a "log in" button. What I want to have happen is when a person goes to...
    3. Need help with Email Form
      Hello, I've been working through a tutorial on Form Handling. I'm trying to learn how to make a simple Contact Us for with Name, email address,...
    4. Form without Email
      I trying to make a form without using the email from the sender, what i need is a script that send the form directly to my email without using the...
    5. Email a form
      I am trying to email information that users enter on my website using a submit button. However, it is not working. Is there a simple way to do...
  3. #2

    Default Re: email form

    urban65 wrote:
    > Hi people
    >
    > Can anyone tell me why my email form will work fine when I preview it
    > seperatly but not when embedded within my site, I mean check out [L=On its
    > own]http://www.clearworld.co.uk/mail2/movie5.swf[/L] that works fine
    >
    > Now check out [L=Embedded within the rest of the
    > site]http://www.clearworld.co.uk/ims27/[/L] the email gets sent but it doesn't
    > display a message
    all paths in the SWF to external files must be relative to the HTML file
    that contains the SWF, not to the SWF itself.

    --
    MOLOKO
    ------------------------------------------------
    ::remove _underwear_ to reply::
    'God saves but Buddha makes incremental backups'
    ------------------------------------------------
    GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+
    VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e h-- r+ y++
    see [url]www.geekcode.com[/url] to translate the above!
    MOLOKO Guest

  4. #3

    Default Re: email form

    hmmm ,maybe make the "loadmovie" a complete link ? with http:// [url]www.etcetera[/url], etcetera
    Big abraham Guest

  5. #4

    Default Re: email form

    i meant the loadmovienum not the loadmovie , sorry..
    Big abraham Guest

  6. #5

    Default Re: email form

    I dont think its the loading of the movies that is the problem,

    I think its the actual referencing of the contact form (the second block of code above)

    Thanks
    urban65 Guest

  7. #6

    Default email form

    i have succussfully created a firm and it gets emailed to me. The only
    problem is, it does not show who it is from, therefore spamkiller deletes it.
    what do i need to put in the code so that it shows who it's from?

    please help

    cybirnun Guest

  8. #7

    Default Re: email form

    What method are you using to send the email? There must be a provision to
    add a sender's email address there.

    --
    __________________________________________________ __________________
    UltraSuite Extension Packages: [url]http://www.ultrasuite.com/[/url]
    The *most popular* Suites of DMX 2004 and DMX Server Behaviors
    for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
    __________________________________________________ __________________


    J.S. \(UltraSuite\) Guest

  9. #8

    Default Re: email form

    somehow i got it to work. thanks for your reply and god bless!
    cybirnun Guest

  10. #9

    Default email form

    I'm thinking about creating a form that allows visitors to a page to be
    able to email friends/themselves/etc info about products they see. I'm
    going to include a link from a cfm page, but was wondering if anyone had
    any thoughts on:

    1) Making the page a pop-up style window that users would just fill in
    their email info/name/etc, that will close and take them back to the
    page they were just looking at.

    or -

    2) Have the link take them to a completely seperate page, non-pop up
    that they can fill out and then be taken back to the product they were
    just looking at.

    Ideas?

    Thanks!

    Steve
    Steve Grosz Guest

  11. #10

    Default Re: email form

    Either way would work.

    Or you could build a form in flash (ie just a text field and submit button),
    and then use remoting with CF to send the email in the background. Then you
    wouldn't need to load any new pages!

    Stressed_Simon Guest

  12. #11

    Default Re: email form

    I'm not sure what you mean by the Flash form. I'm just now working with
    CF7. And remoting? Can you clarify?

    I'm thinking about passing the product info to the form when I call it.

    Stressed_Simon wrote:
    > Either way would work.
    >
    > Or you could build a form in flash (ie just a text field and submit button),
    > and then use remoting with CF to send the email in the background. Then you
    > wouldn't need to load any new pages!
    >
    Steve Grosz Guest

  13. #12

    Default Re: email form

    I meant actually build a form in Macromedia Flash. This produces a .swf file
    that you can embed in your page. You can get Flash to talk to CF via Flash
    Remoting. Flash remoting is a service built in to the ColdFusion Application
    Server. You can access CFC methods via Flash Remoting. So in this instance you
    could allow someone to enter an email address via the flash movie and it would
    access the CFC that would send the email.

    Stressed_Simon Guest

  14. #13

    Default email form

    I need to visitors to my site to be able to fill out a form, hit submit and
    have the entire form emailed back so that I can print it out and file it. I
    see lots of forms that email whatever was in the form fields but I need the
    entire form intact for my files

    Any help would be appreciated

    awoswald Guest

  15. #14

    Default Re: email form

    Have you thought about creating a PDF form with Acrobat?
    [url]http://www.adobe.com/products/acrobat/solutions/detail/create_form.html?promoid=DNOXW[/url]

    --
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "awoswald" <webforumsuser@macromedia.com> wrote in message news:glfnrn$7dp$1@forums.macromedia.com...
    >I need to visitors to my site to be able to fill out a form, hit submit and
    > have the entire form emailed back so that I can print it out and file it. I
    > see lots of forms that email whatever was in the form fields but I need the
    > entire form intact for my files
    >
    > Any help would be appreciated
    >
    Nancy Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139