Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default data in new window

    hi, quick question, how could i go about to pop up a new browser window with the data i obtained in the var #CFHTTP.FileContent# ?
    _mvm Guest

  2. Similar Questions and Discussions

    1. Insert Data into DB using a PopUp window
      Hi everyone, Can someone tell me how to insert data into a databse using a Popup window. I am having problems getting it to work. Thank you.
    2. Import data into PDF from external Browser window...
      I have a pdf form that pops up a browser window. This window is where the user does a lot of pre-emptive mainframe calls to collect some needed...
    3. Referencing application data in a pop-up window
      Hi, I have a main application page which contains a tab navigator, which contains two canvases. One canves has a form with a ComboBox. ...
    4. Refresh select from new data entered in pop-up window
      This is for a client admin section. I am using CF 4.5 and an Access Database. I have a form which uses a dynamically created drop-down list. I...
    5. can a popup window return data to parent window?
      Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user...
  3. #2

    Default Re: data in new window

    I'm assuming that a user clicks on a link that goes to a result page which has
    the <cfhttp> request. If this is the case then you would want to open a new
    browser window first then load the result page.

    <!--- Page1.cfm --->
    <a href="Page2.cfm" target="_blank">Page 2</a>


    <!--- Page2.cfm --->
    <cfhttp ....>

    <cfoutput>#CFHTTP.FileContent#</cfoutput>


    eastinq Guest

  4. #3

    Default Re: data in new window

    i get the cfhttp response on page A, and i need to somehow open a popup from
    that page that contains the data from the cfhttp request. i thought about
    passing the data through the URL to the popup page but that does not seem to
    work.

    _mvm Guest

  5. #4

    Default Re: data in new window

    To open a new window within the same CFM include this piece of code after your
    CFHTTP request.



    <script language="JavaScript">
    <cfwddx action="cfml2js" input="#CFHTTP.FileContent#"
    topLevelVariable="FileContent">
    var newWin = window.open();
    newWin.document.write(FileContent);
    newWin.document.close();
    </script>

    eastinq 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