Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: javascript post variables in new window..

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    18

    javascript post variables in new window..

    I am using following codes to submit form but not able to post form variables to new window(without menubar & toolbar).

    What lines should be added to post form variables to new window using javascript.

    ====================
    Example: these codes post form variables in the same window.
    Code:
    <script language="javascript">
    function emailLink()
    {
    document.listmails.submit();
    }
    </script>
    <form name="listmails">
    <input type="text" name="a" value="1234">
    <input type="text" name="b" value="1234">
    </form>
    [/code]

  2. #2
    Junior Member vittorio's Avatar
    Join Date
    Oct 2004
    Posts
    27

    Post variable in JavaScript

    Hi,

    This is not possible to do with JavaScript, PHP is a better tool.

    You can get by JavaScript the post variables read in the same page. This is done in my "Addings to Virtualshop" and believe me is not simple, [I do not want to sell you my program just for that]

    You could try the method get and retrieve 255 chars in the next page.
    Get the code from my basic <a href=http://www.ics3w.com/VirtualShop/InputData.html>Virtualshop</a> , hope you have the skill to do it because it is not simple.
    My Virtualshop basic is freeware.
    Php & JavaScript programmer @ pr.c-php.com/forum/

  3. #3
    Junior Member
    Join Date
    Oct 2004
    Posts
    18

    Re: Post variable in JavaScript

    Thanks vittorio.

    I want to post form variables in new window through javascript as i am submitting form through
    document.form.target="_blank"
    document.form.submit();

    These codes opens a new window but do not post variables.

Similar Threads

  1. Javascript Post to New Window
    By kruser in forum IT Discussion Forum
    Replies: 4
    Last Post: 04-29-2009, 01:37 PM
  2. Javascript and session variables
    By ADAM Web Design in forum Web Programming Discussion Forum
    Replies: 3
    Last Post: 07-27-2005, 11:42 AM
  3. Javascript to post SEO results?
    By brianzajac in forum Search Engine Optimization Forum
    Replies: 8
    Last Post: 10-26-2004, 06:42 PM
  4. javascript that closes window when you exit
    By Bohak in forum Web Programming Discussion Forum
    Replies: 1
    Last Post: 05-19-2004, 05:37 PM
  5. JavaScript menu - opening links in a full window
    By tOKmaZ in forum Web Programming Discussion Forum
    Replies: 0
    Last Post: 02-06-2004, 06:40 PM

Posting Permissions

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