Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Answer of an alert, into webpage

  1. #1
    Join Date
    Oct 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Answer of an alert, into webpage

    I have made an alert on my webpage, where it asks the user for its name.

    Is there any way of transferring this name given in an alert, into the normal body of the webpage?

    Thanks,
    Steve

  2. #2
    Join Date
    Feb 2005
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah... Just put this code wherever you need the name to be.
    If you know any javascript even simple you know what to edit and what not to edit and such its a pretty simple thing.

    Code:
    <script>
    var name=prompt("TYPE WHAT WILL BE IN YOUR POPUP HERE","");
    function dispname(name) {
    document.write(""+name+"");
    }
    </script>

  3. #3
    Join Date
    Feb 2005
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh and one last thing delete the script that makes the other popup window because this one already has the popup window there.

  4. #4
    Join Date
    Oct 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, works a treat, you don't know if theres any way of including a drop down menu IN THE ALERT do you?

    If it's too hard it doesn't matter...i just wondered

    Thanks,
    Steve

  5. #5
    Join Date
    Feb 2005
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't think you can put a drop down menu in a pop-up menu unless you make a pop-up a new window instead of making it a pop-up. You follow?

  6. #6
    Join Date
    Oct 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, i thought so.

    I'm just gonna link the drop-down in the base of the webpage i think...

    Thanks anyway,
    Steve

  7. #7
    Join Date
    Oct 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm back

    I've made the site where it asks you this survey thing.....but when they click "Submit" i want to record the data they entered somewhere on my pc, does anybody know how i would i do this?

    I'd really appreciate that,

    Thanks,
    Steve

  8. #8
    Join Date
    Feb 2005
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is it a form or stuff they enter into a popup box? If it is a pop up box then I can help you and if it is in a form on your page I can help you. So I am pretty sure I can help. There is one thing that you have to do though and that is sign up for this: http://allforms.mailjol.net/main.html I use this for my forms because my webserver does not support any servide scripting but if yours does you can avoid this but I can't help you with that... I can get it all set up and ready to work you just need to get the form processor to work.

  9. #9
    Join Date
    Oct 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, it's a form.

    somebody told me to put <FORM="mailto: email@domain"> or something like that, but i tried it and they didn't get delivered to my inbox.

    Are you on MSN?

    Thanks,
    Steve.

  10. #10
    Join Date
    Feb 2005
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok let me first explain why you are having trouble. If you were to use that code it would look like this instead of that
    Code:
    <form action="mailto:yourname@yourdomain.com" method="post">
    Now the problem with that is that it opens up the users default email, like outlook and so forth. That way if the user does not want to send the email they do not have to send it. Here is an example of one code I have on my page DO NOT USE THIS BECAUSE THE RESULTS WILL BE SENT TO ME. I put this in the heading and the second one in the body of the page. The script in the heading also validates to see if the form is filled out correctly.
    Code:
    <script>
    <!--
    function validate()
    {
    if ((document.feedback.email.value=="")||
    (document.feedback.suggestion.value==""))
    {
    alert ("Please fill out every field. Thank you.")
    return false ;
    }
    return true ;
    }
    //-->
    </script>
    Code:
    <center>
    <form action="http://free.allforms.mailjol.net/u/102067.php" method="post" name="feedback" onsubmit="return validate()">
    Enter Your Name<br>
    <input type="text" size="20" name="name">
    <br>
    Enter Your E-Mail (*required)<br>
    <input type="text" size="20" name="email">
    <br>
    What you want up here: (*required)
    <br>
    <textarea name="suggestion" rows="3" cols="25"></textarea>
    <br>
    <input type="submit" name="B1" value="Submit">
    </form>
    </center>
    Now that is what I have. Can I get a copy of the code for your form that you are using. The entire form. Also you have to sign up for that website I gave you. That is how I send all my forms.

Bookmarks

Posting Permissions

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