Ask a Question related to ASP, Design and Development.

  1. #1

    Default post to iframe

    Hi,

    Just wondering how (or if it's possible) to post from my
    page to another .asp page within an iframe? Hopefully
    that question make sense? I know how to launch load a
    page with an iframe, but how do I post to a page within a
    page? Thanks, Doug

    doug Guest

  2. Similar Questions and Discussions

    1. redirect but with post data - mimick form post behaviour
      Any thoughts on how to mimic result of submitting form data via POST Method? I have some code that sanitizes some submitted formfields and i'd like...
    2. [JS] iFrame.
      God morning... I need to resize a iframe based in your content, but when a try it, i receive a error message Access Denied. Anybody know how...
    3. How to post some data in form of POST action of forms in asp?
      Hi there, I need to post some information into an ASP page (mypage.asp), in form of POST action which I do with the following code: 'contents...
    4. <IFRAME>
      Hi all. I'm having to use <IFRAME> for a scrolling area for a client 'cos they don't want any Flash on the site. They want the scrollbar to be...
    5. ASP, FORMS, POST METHOD And Post with out form(???)
      Lets see if I can decribe, this... I have a form on an html page, that will call a remote site with a post method. Prior to running off to the...
  3. #2

    Default Re: post to iframe

    If you want to make a link load something in an iframe use:

    <a href="page.html" target="myframe">Click here</a>
    (Where myframe is the name of the iframe)

    if you have a link inside the iframe that you want to load the next page in
    the iframe too, just leave out the target="" part

    Gram

    "doug" <dougpart@adelphia.net> wrote in message
    news:00d701c37876$08073530$a101280a@phx.gbl...
    > Hi,
    >
    > Just wondering how (or if it's possible) to post from my
    > page to another .asp page within an iframe? Hopefully
    > that question make sense? I know how to launch load a
    > page with an iframe, but how do I post to a page within a
    > page? Thanks, Doug
    >

    Gram Guest

  4. #3

    Default Re: post to iframe

    OK ... how would I post a form to an iframe? - doug
    >-----Original Message-----
    >If you want to make a link load something in an iframe
    use:
    >
    ><a href="page.html" target="myframe">Click here</a>
    >(Where myframe is the name of the iframe)
    >
    >if you have a link inside the iframe that you want to
    load the next page in
    >the iframe too, just leave out the target="" part
    >
    >Gram
    >
    doug Guest

  5. #4

    Default Re: post to iframe

    Set the target of the form to the name of the iframe I believe will work.

    "doug" <dougpart@adelphia.net> wrote in message
    news:1a2501c37884$b3ccde70$a601280a@phx.gbl...
    OK ... how would I post a form to an iframe? - doug
    >-----Original Message-----
    >If you want to make a link load something in an iframe
    use:
    >
    ><a href="page.html" target="myframe">Click here</a>
    >(Where myframe is the name of the iframe)
    >
    >if you have a link inside the iframe that you want to
    load the next page in
    >the iframe too, just leave out the target="" part
    >
    >Gram
    >

    Lance Wynn Guest

  6. #5

    Default Re: post to iframe

    Thanks for the suggestions ... is anyone willing to submit
    a brief code sample. What happens when I try is that
    either, the form submits to a new window ... i.e. not in
    my iframe ... or the iframe loads without my form's data
    being passed to it. I guess another way of saying this is
    that the iframe loads, but my form does not submit.

    The way I was submitted prior to attempting the iframe
    approach was this way:


    Function submitme()
    newwin = window.open _
    ("","myNewWin2","width=500,height=300,toolbar=0,sc rollbars=
    1,resizeable=0,titlebar=0,menubar=0,status=1")
    window.setTimeout "document.frm1.submit()",500
    End Function

    This works, however, since my confirmation of a successful
    submission is just a few lines of text, I would like to
    display the whole thing one page. Thanks for the help.

    - doug
    >-----Original Message-----
    >Set the target of the form to the name of the iframe I
    believe will work.
    >
    >"doug" <dougpart@adelphia.net> wrote in message
    >news:1a2501c37884$b3ccde70$a601280a@phx.gbl...
    >OK ... how would I post a form to an iframe? - doug
    >
    >>-----Original Message-----
    >>If you want to make a link load something in an iframe
    >use:
    >>
    >><a href="page.html" target="myframe">Click here</a>
    >>(Where myframe is the name of the iframe)
    >>
    >>if you have a link inside the iframe that you want to
    >load the next page in
    >>the iframe too, just leave out the target="" part
    >>
    >>Gram
    >>
    >
    >
    >.
    >
    doug Guest

  7. #6

    Default Re: post to iframe

    I haven't tried this, but I think it should work....

    <form action="page_you_want_to_post_to.asp" method=post
    target=your_iframe_name>


    Randy Rahbar 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