Is it possible to use a Post form with no submit button

I have a site whose users log in.
After logging in, they can click on a navigation button to access an application. Currently users must log in our site, and then in the application.
We strive to eliminate the need for 2 connections by using pass-through authentication.
I send a form post to the application w / user session data (user Id).
I've been asked not to create a page where users hit send.
So my question is what is the best way to do it?
I was planning on creating another page that opens when the user clicks the Browse button. The page that opens looks as if it connecting to the application. This page would contain a w shape / form field hidden {session.userinfo} and post it to the application.
So is there a way magic w / a redirect or something in that?
Thanks for your help!

Hi Tina,
This depends a lot on the application that you want to access from your site CF.

One way would be something server side, having the button browse your call of the page the script navigate.cfm on your server, that uses cfhttp to submit the connection to the application as recommended Ian. But the problem in this situation may be that the application will return a session on the CF Server (a cookie with a session for a 'connected' session ID), and I don't know if the CF server could "transfer" this session in the browser of the user.

The other way would be to have a solution on the browser side. But in this case you would need to have the CF post server username and password in the source code of your page in the browser (user name and password would be clear! in the source code of the page).

The simple solution for the option on the browser side would be to have the login form hidden not in a separate window, but directly in your page (so your button navigate is basically the button submit to your login screen of applications). In this way, you can avoid javascript.

The solution more complicated for option-side browser which avoids also the clear username / password problem, would be to have a navigation button that calls a javascript function that retrieves the user name and password of the server by using an authenticated and then Web service saves the credentials to the application.

The server-side option would work only, if your application does not return a session in a cookie ID, but can also handle the Sessionid as a URL parameter.

So it really depends on what your application can handle (cfhttp may not work if the site is properly protected against cross-site scripting), and what level of 'hair-lifting-security', you are ready to accept.

See you soon,.
Fouad

Tags: ColdFusion

Similar Questions

  • 2 or more forms with "1 submit" button (Business Catalyst Forms)

    I am very new to Ajax and Java

    So I'll need a bit of hand holding on it.

    If it's too much to explain in a post on the forum, I'd be willing to pay someone to set up properly and to explain so that I can repeat on my own $50.

    But here's what I'm trying to do.

    Presentation of multiple forms with single submit button.

    I need to create many many forms, so rather than repeat the basics (details and company info)

    I would just be able to manufacture PARTS of form and then build forms much faster this way.

    The forms I created are for various applications.

    I use the personal and professional contacts as the first 2 examples, but I'm going ELSEWHERE, I also understand according to the form.

    So just keep in mind these are examples.

    The point is that each PARTY is a separate form.

    The reason clear to achieve is to save time, many similar applications that I need to do the construction.

    Example 1

    Form of home insurance

    SECTION A - personal information

    PART H - home (s) address

    PART F - personal fire and alarm information

    PART C - the previous insurance issues and cancellation insurance

    ----------------

    submit button: supports all 4 forms above

    Example 2

    The company insurance form

    SECTION A - personal information

    PART B – business contact information

    PART D - commercial address information (what to do if several addresses?)

    PART E - business and information fire alarm

    PART C - the previous insurance issues and cancellation insurance

    --------------------

    submit button: submit all 5 forms above

    So ideally, I would need the following requirements.

    1. present the single button

    2. present the code can handle 2 or more parts not the value # specific

    3. I would prefer if it was automated code (so I don't have to change the code every time, I can simply add the parts - and also long ID # or named it will work correctly)

    4. If there is a problem with any PART stop the entire form

    5-

    A question, I had barely know is how "combine" forms a single entity so that they can change it later if necessary?

    * as turn a case, or to award to each PARTY a hidden form variable link #.

    * This is probably best handled with a webapp, Yes?

    Thanks in advance for any help.

    It's all a bit above my level of understanding of right at this moment. So, if anyone can offer help or services.

    Please let me know. I have to get rolling on this ASAP.

    * main problems I have with BC forms:

    I did a lot of work with them recently, so I get a kick of the foibles, but there is always a ton of issues and roadblocks that I meet that requires a workaround solution.

    I wish I knew how to make dynamic British Colombia forms, because the BC is not a data source for multiple selection option, we must create a webapp connection to combine everything.

    Unless there is another way to combine multiple forms, I guess that's what about this discussion/issue together.

    So thank you once again.

    Are you ok with BC being unable to report on the data of the form? Rather than having the fields map to a client-server, you could serialize the form data (in JSON format, perhaps) and submit the entire form in a single field in a form BC, or an element of the Webapp.

    This would allow the form fields to be as dynamic as you can imagine. you will be not restricted to use only the form fields that have been declared in the admin.

    You have to take care around the diagram, because BC does not have an influence or support for that. It also means that when you want to display the data, you will need to go through your own deserializer. In addition, there are length limits to keep in mind.

  • a simple form with the "submit" button: can it look better?

    Hi all

    I did not imagine that a simple form (with Textfields and ChoiceFields) could do a lot of problems:

    I would like to ask a few basic questions about it. First the code (Simplified):

       GridFieldManager formfm;    
    
            EditField surname = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_DEFAULT);
        EditField email = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_EMAIL);
    
        public FormFieldManager(){
    
            formfm = new GridFieldManager(2,0);
    
            formfm.add(new LabelField("who: ", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
            String[] choicewho = new String[] { "Mr", "Mrs", "Miss" };
            ObjectChoiceField who = new ObjectChoiceField("", choicewho, 0, Field.FIELD_LEFT |Field.FIELD_VCENTER);
    
            formfm.add(who);
    
        formfm.add(new LabelField("Surname :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(surname);
    
        formfm.add(new LabelField("E-Mail :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(email);
    
        ButtonField sendButton = new ButtonField("Send", Field.FIELD_HCENTER|ButtonField.CONSUME_CLICK);
        formfm.add(sendButton);
        FieldChangeListener listenerSendButton = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
    
        try {
            String data = "send=true&surname=" +surname.getText();
            data += "&email=" + email.getText();      httpPost("http://bla/sendData.php", data);
        } catch (IOException e1) {
            e1.printStackTrace();
        }
        formfm.deleteAll();
        formfm.add(new LabelField("Grazie!"));
        }
      };
      sendButton.setChangeListener(listenerSendButton);
    

    now my questions:

    (1) don't miss something (style) for the EditFields? At the present time, it is possible to change them, but the behavior (9700 Simulator) is strange: it is 'difficult' to get from one field to the other and everything moves sometimes when editing...

    How do you define a standard form that seems 'normal' and can be completed as expected in other applications? (Swifts nothing, it is possible to access the next field with the expected key / trackpad (I have no touch screen)) and so on?

    The EditFields do not even have a border, but I guess that's the standard case on BlackBerry.

    (2) the ObjectChoiceField is also very ugly... It's too big... Is it not possible to reduce the size without much effort? (I couldn't everride it correctly). (I also tried with radio buttons, but unfortunately I can't add a RadioButtonGroup to my LayoutManager, strange)

    (3) it is perhaps a stupid question: I can't get the text selected from the ObjectChoiceField (to send it can in data).

    AM EditField, it's simple:

    editfield.getText()
    

    But how is it with my ChoiceField?

    I found getSelectedIndex() but it provides a value int not text...

    Thanks in advance for any suggestions!

    silizia

    1. you have defined fields as follows:

    EditField family name = new EditField ("vorname:", "-", 20, EditField.FILTER_DEFAULT);

    The 20 means 20 characters, so it's all the field allows you to enter.

    2. Yes, the mail filter is pretty useless.  Use the EmailAddressEditField instead

    3. you can play with the scroll, but the best thing to do is to set the focus on the first field that you want people to pull together - usually the upper part of the form.

  • Send an active PDF form with a Submit button? (Acrobat Pro XI.)

    I created a very large active form of PDF with hundreds of fields with text boxes, drop downs, checkboxes, radio buttons, and I think that the kitchen sink. But for the life of me I can't understand how to create a Submit button that will send the completed form to an email address that is configured to print whatever it hits.


    I have read so many things about it that I'm completely confused. I need a script, is there a method through menus to Acrobat, Miss me or I'm barking at the Moon? You'll know more I could even say any help just get me going in the right direction. Thank you!

    Simply add a button and it is the mouse up action to "Submit a form" and use a type mailto URL and specify the complete PDF file is sent. If she needs to work with version 11 player, she should also be enabled for the drive: file > save as other > Reader Extended PDF > activate tools more

    Note that emailing is unreliable by report to be submitted to a web server, and it is difficult to secure, which is relatively easy with a web server.

  • A form with several submit button

    Hello

    I have a very long form. What I would therefore like to add an additional submit button so that the user can only change the image if they want to.

    -is it possible to have more than one form on the page. If Yes, how can I determine which form is submitted isDefined ('form1'), isDefined ('form2') doesn't seem to work,

    -If there are two buttons in the form did you know which preses because both seem returns true when tested with isDefined)

    Thank you

    -is it possible to have more than one form on the page. If Yes, how do

    I determine what form is submitted isDefined ('form1').

    isDefined ('form2') doesn't seem to work,

    /quote

    Yes.

    If ' there are two buttons to the form how do I know who has been

    Preses as both seem to return true when tested with isDefined)

    /quote

    Give the buttons different name attributes. Check your action page

    with StructKeyExists (form, "name_of_first_button") and

    StructKeyExists (form, "name_of_second_button"), which one was pressed.

    Mack

  • Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi?

    Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi? When I try this Apple TV does not appear in the list of devices on my iPhone.

    Yes, I'm doing exactly this with the same put in place.

    If the problem persists the next relative to the following articles might help you.

    Troubleshooting home sharing

  • Is it possible to use iCloud shares photos with the two opening and Photos at the same time?

    Is it possible to use iCloud shares photos with the two opening and Photos at the same time?

    Non - PEAK is not a feature of iPhoto or Aperture - this is new with Photos

    LN

  • How to create a form with a submit in CC button animate using Actionscript 3

    How to create a form with a submit in CC button animate using Actionscript 3. The file will first be a SWF but will also have the flexibility to export as HTML5

    I've searched high and low for an example of code for this entry.

    Can someone help me please?

    Thank you

    You can use the same graphic assets of basis for two projects, but the coding will be different for everyone.  You must work on the project of a code at a time.

  • Is it possible to use two different computers with the same adobe - ID and the same adobe license?

    Is it possible to use two different computers with the same adobe - ID and the same adobe license?

    Hi Morten,

    Yes, you can have your subscription or your license installed on two different computers with the same adobe id, however use one at a time.

    Please let us know if you have any questions, more about it.

  • Is it possible to use the port replicator with the Satellite Pro series?

    Hello
    Is it possible to use the port replicator (Docking Stations) for Tecra series laptop with the Satellite Pro series?

    Hello

    No, as far as I know it of not possible to use a port on laptops Satellite Pro Replicator.
    All laptops that support the Port Replicator has a port extension at the bottom of the unit.
    To my knowledge, the Satellite Pro series don t have this port.
    For now only the Tecra and some units Protégé(ie: S100) supports this feature.

  • U8 array used in digital form with 0.1 Hz for each array index

    Hello

    I am trying to write a code that allows me to output an array of 36'000 U8 values to an NI USB-6009 digital output.

    The problem starts as soon as I try to set the clock should be 0.1 Hz send me 3600 seconds on my 36 k samples.

    Looks like it's not possible to use DAQmx Digital Out as well as a specific sample clock (or I do something wong).

    Does anyone know a clever solution to this problem? How do they give you a dataset defined with a low of given frequency the digital port?

    Thanks in advance!

    RuferT wrote:

    Ah... Thank you, Jeff!

    Indeed, I need a few accurancy in switching of signals (Timewhise).

    Is it possible with an NI USB-6216 to use somehow the clock shipped equipment to trigger the next table sent to the digital output index?

    I found evidence for it, but by the data sheet, this device also has static DIOs. If I understand your message, static DIOs are the kilelr for my app, right?

    What is the killer for your application is the source of command DIO.  Timed software DIO won't work with high precision, if you need for the material to something that supports triggering of the OID material - in USB format which means a USB 625 x for a M-series or a x 634 for the X series (beware the series 6341 x only supports timing on 1 port material - check the specs for yourself before decide you)

  • Switch between two intelligent forms with a single button?

    Hello!  I work at 8 Captivate and try to use a single button to switch between two smartshapes.  I can't for the life of me figure out how to do it.  I know its possible to make it 'show' and 'hide', but is it possible to simply create a user click on a button and whenever we click on it, it comes and goes between two different smartshapes?

    Im trying to show the user the functionality on a piece of equipment when they press a button.  When they push the button, it comes and goes between two different read out on the screen.

    Thanks in advance!

    Have you looked at the blog post that I posted a link: I offer 4 scenarios.

    It can also easily be done, if you have a separate (shape) button to switch between two different objects:

    1. Create a user with a default value of 0 v_visib variable
    2. Create two objects and one of them is visible, the other invisible output ("eye" in the Properties Panel icon); I've tagged the ShapeOne and ShapeTwo, where ShapeOne is visible at the beginning
    3. Create this advanced conditional action (you can also turn it into a shared action):

    IF v_visib equals 0
    Hide ShapeOne
    See the ShapeTwo
    Toggle v_visib
    ON THE OTHER

    Hide ShapeTwo

    See the ShapeOne

    Toggle v_visib

    4 assign this action to the success of the button event

  • working with 2 submit buttons in an html form

    I have 2 submit buttons on a form. I'll upload a file and save in a filepath in server when I click a Download"" button. I want to use this path in the code, when I click on another button called 'process '.  When I click on the process nothing happens with dump to the code below. Form sends to itself. Is there a better way to do it. Thanks in advance.

    < table width = "40%" border = "0" style = "" border: 1px solid black; ">"

    < name of the form = "uploadform" action = "processfile.cfm" enctype = "multipart/form-data" method = "post" > "

    < b >

    < td > < input type = "file" name = "FileContents" size = "25" >

    < input type = "button" name = 'action' id = 'action' = 'Upload' value >

    < table >

    < /tr >

    < b >

    < td align = "middle" >

    < input type = "button" name = "submitaction" id = 'process' value = 'Process' >

    < table >

    < /tr >

    < / make >

    < /table >

    < cfset variables.filepath = "" >

    < cfif isdefined ("form.action") AND form.action eq 'upload' >

    < cffile action = "upload" fileField = destination "FileContents" = "C:\test\" accept = "text/plain" nameConflict = "overwrite" >

    < cfset variables.filepath = "C:\test\#cffile.serverFile#" >

    < cfelseif isdefined ("form.submitaction") AND form.submitaction eq 'process' >

    < cfdump var = "#variables.filepath #" >

    < / cfif >

    The elseif excludes discharge. In any case, it is unnecessary. You should not test for form.submitaction and form.action, as they both exist or not.

    You could just do something like

    variables. FilePath: #variables.filepath #

  • screenshot label selected in the comboBox in a VAR and poster with a submit button

    I looked through the assistance several times and searched for tutorials on the net. Docs support I found led to write the following code (the code was attached to the instance of the comboBox) that did not work. The button send does not send the label I'm trying to capture in the "subject" VAR

    on {(change)
    function() {}
    subject = contactReason.getSelectedItem () .label;
    }
    }

    I tried to look for a week and have had some progress - I didn't know how to use the components at all before that. I have asked for help or a specific tutorial but have not found something that will work the way I need to.

    I tried to change my code to the following (code is associated with the instance of the comboBox) after that someone suggested something different - but it did not work with my shipment button either.

    on {(change)
    var object: String = contactReason.selectedLabel;
    }

    contactReason is the name of my comboBox instance...

    my button to send messages to a CGI page that sends the information to an email - using power reactive as topic etc (there are areas of seizure in the form along with the ComboBox) with the following code (the code is attached for send button)...

    on (release) {}
    loadMovieNum ("formdone.swf", 2);
    recipient = "[email protected]";
    loadVariablesNum ("/ cgi-bin/cgiemail/contact/contact.cgi", 0, "POST");
    }

    input boxes still work properly and pass other variables, but I'm getting no subject (I make if I use an input box - but not with comboBox)

    I fixed it. I realized that I had forgotten to remove my send button the following

    on (release) {}
    loadMovieNum ("formdone.swf", 2);
    recipient = "[email protected]";
    loadVariablesNum ("/ cgi-bin/cgiemail/contact/contact.cgi", 0, "POST");
    }

    but once I did it - I only got an email - but is the one who says no "set" where the selected comboBox label should be. Apparently the right e-mail address that I was getting came from my button send, not your script. So I took the parties send and the success of your script and put my loadVariablesNum on my button script send and it works perfectly with the way your treats storing the selected comboBox label.

    I couldn't have done it without you... Thank you!!

    now all I have to do is determine why the tutorial on customizing the comboBox items does not work for me. I could not Exchange on a completely new theme - but when I tried edit items from the library of one and then apply it AS my document - no change. I'll mess with it some more. I think I'm getting components a little more when I tried first. So next. Wish me luck!

    Thanks again! I really appreciate that you take time to help the scripts!

  • How can I use on my M40X with WinAmp media buttons?

    Hello
    Today, I received my M40X and I have a question.
    There are 5 media as left button on the keybord (CD/DVD, play/pause, Stop, <->)
    Is it possible to use them with WinAmp?
    With the help of Toshiba, I had the CD/DVD button used to start WinAmp (by allows him to launch a .exe) but the work of Play/pause...don´t. The field of media Apps the only player that I can choose is Win MP10 (I hate this piece of sh * t).
    How can I use these buttons with WinAmp?

    Hello

    As far as I know Toshiba controls have been tested and designed only for Microsoft Media Player and WinDVD. How this topic says:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=3621&MessageID=11461#11461

    I n t have any experience with WinAmp but I found useful info in this forum on this topic:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=6673&MessageID=24448#24448

    Select this check box.

    Good bye

Maybe you are looking for