Skip navigation
jproctorrjmmp
Currently Being Moderated

problems with form refresh.

Aug 17, 2011 7:52 PM

I have been racking my brain trying to figure out how to get something to work with a form.

 

This is the form that is going to be used..

 

<cfform action="Insert.cfm" name="Create" target="_blank">

 

from this it should open the insert.cfm as I have a report to open at the end of insert page. This works fine.

 

<cfreport format="pdf" template="Detail_Printable.cfm" query="Qdetail">
</cfreport>

 

But I have a problem with the form. I need it to refresh as I dont want the user to have the option of submitting the form again, with out the new data being available.

 

Hope that makes sense.

 

Thank you

 

James

 
Replies
  • Currently Being Moderated
    Aug 18, 2011 8:37 AM   in reply to jproctorrjmmp

    If you need to control how the browser behaves, you need to do it with JavaScript.  Create an onsubmuit handler; submit your form to the new window; and then relocate the parent window to somewhere else.

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 18, 2011 9:15 AM   in reply to jproctorrjmmp

    Yep, I understand it.

     

    See my previous post (which you are replying to, but seem to not have read).

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 18, 2011 2:21 PM   in reply to jproctorrjmmp

    OK, first things first: it's not Java.  It's JavaScript.  They are two completely different and unrelated things (despite the similarity in name).

    http://en.wikipedia.org/wiki/Java_%28programming_language%29

    http://en.wikipedia.org/wiki/JavaScript

     

    Second, google "javascript onsubmit handler".  There is stacks of information & tutorials & guidance out there already, so there's no point me repeating it here.

     

    Once you get your brain around how the onsubmit handlers work, google "javascript onsubmit open new window" and read some of the stuff about how to do that.  All the info you need is already there.  Indeed there is exactly the answer you need on the first page of results.

     

    If you get to to the point of writing some code and need help with it, then post back.  But you should be able to solve all this with Google and rolling up your sleeves ;-)

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 19, 2011 6:53 AM   in reply to jproctorrjmmp

    Cool: good work.

     

    --

    Adam

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points