CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Posts
    3

    Question I need help submitting a form by clicking on a linked word...

    I need some help submitting hidden for fields by clicking on a text link. I have written the javascript to get it to go to the right page and send the correct values, but i can't get it to open in a new window the way i did it.

    Here is the code:
    <a href="javascript:void(document.myform.submit())">SampleText</a>

    what else do i add to have this open in a new window? Thanks in advance for any and all help given!

  2. #2
    Join Date
    Jul 2000
    Posts
    15
    you could open a frame window, something like this:


    function open_frame()
    {

    msg=open("sampletext.htm", "frameWindow", "toolbar=yes, resize=1, scrollbars=1, width=600, height=300, directories=no, menubar=yes, status=yes");

    msg.focus();

    }


    fareeda

  3. #3
    Join Date
    Jul 2002
    Posts
    3
    well thanks for the help. i feel kinda stupid. it is as simple as putting target="_blank" in the form tag. i had no idea that could be done.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured