How to submit the form by clicking on the hyperlinks

Hello

I have a < a href = "a" > < /a > and < a href = "b" > B < /a >.  I want to know which letter cliked the user on what I can run a database query.

How can I do that. Any ideas?

Thank you

Joe Green

This isn't really a ColdFusion question, rather a matter of Javascrip/HTML, unless you want to make a CF background Ajax request.

In any case, I would trigger javascript events, complete a form with hidden field either 'a' or 'b', then send the form.

In the style of:

A

B

...

Hope this helps?

Tags: ColdFusion

Similar Questions

  • How to submit a form by clicking a radio button?

    I use a php page to present the user with two options.  The person clicks on one of the options, then click on the submit button.  When you click send, the value of the radio button clicked is displayed on a page action.

    Instead, what I want to it is when the person clicks on the radio button group, its value is displayed on the corresponding action page unless the user to click the button submit.

    Here's the current code for the button shape two simple radio.  The user can click on the inside or outside.

    < do action = "outdoorfaucet.php" method = "post" name = "form1" id = "form1" > "

    < p >

    < input type is "radio" name = "selectedfaucet" id = "radio" value is 'outdoors' >

    < label for 'radio' = > Outdoor < / label >

    < /p >

    < p >

    < input type = "radio" name = "selectedfaucet" id = "' value 'internal' = >"

    < label for = "radio2" > domestic activity < / label >

    < /p >

    < p >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" >

    < /p >

    < / make >

    And here is the statement of corresponding items on the action page at this time.

    <? PHP

    the values in the page select facets of the echo

    echo "you have selected. $_POST ['selectedfaucet']. ' < br ';

    ? >

    Can someone help me to modify this code so that the value of the option button is submitted, posted or otherwise sent to the action page?  I am new to this.  Thanks in advance.

    In my code change

    TO

    action = "outdoorfaucet.php" method = "post" name = "form1" id = "form1" > ""

    and move the script at the top of the page to outdoorfaucet.php

    <>

    {If (($_SERVER ["REQUEST_METHOD"] == "POST") & {isset($_POST))}

    the values in the page select facets of the echo

    echo "you have selected. $_POST ['selectedfaucet'];

    }

    ?>

  • How to submit the form interactive pdf in the browser (Mozilla, Chrome)

    I m having XFA based pdf form to be submitted by the user. I want to get it open, filled, and presented in the browser. In IE, it works. but Mozilla, Chrome is not supported. Get the message like "Please wait...". »

    Is it possible to submit the form on these browsers (Mozilla, Chrome)

    In advance thnk...

    You're default PDF viewer is not defined as Adobe Reader or Acrobat.  Change the viewer in the Chrome options, and it will not work properly.

    http://helpx.Adobe.com/LiveCycle/KB/XFA-forms-Firefox-chrome.html

  • How to submit a form to itself?

    I have a form on the page. When I submit the form, I would submit to itself. Another word, I don't want to submit to another .cfm page. So, how can I do?

    If you omit the action attribute, it should present itself.

  • How to submit the app for BlackBerry World who thrive on BlackBerry native SDK

    Hi all

    I am complete create application on BlackBerry native SDK and want to deposit app World de BlackBerry. But I didn't know how to prepare the file to submit.

    Could you suggest how to do it please?

    Kind regards

    Nutthakorn

    you build the "device-Release" project, which creates the bar file in the folder "release".
    This file must be signed and submitted.

  • How to submit the report BEEP using the CONCSUB utility

    Hi all

    I presented the report BEEP using the Concsub utility. But I got the xml instead of PDF output.

    I found that the page layout is not attached with this concurrent program.

    Please guide me how to add the layout with this simultaneous program when sending through CONCSUB.

    Kind regards
    Karim

    Published by: karim on November 5, 2012 13:32

    Ok

    I tried and I can't say how it works, but there work ;)

    step by step for r12
    -create a XXAND17 cp
    -create data XXAND17 definition
    -create the XXAND17 model

    [oracle@oebs out]$ CONCSUB APPS/APPS FND 'Application Developer' SYSADMIN WAIT=N CONCURRENT FND XXAND17
    Submitted request 9915625 for CONCURRENT FND XXAND17
    
    cd $APPLCSF/$APPLOUT
    

    and see the o9915625.out to open it and it's xml data. then ok

    [oracle@oebs out]$ CONCSUB apps/apps FND 'Application Developer' SYSADMIN WAIT=N CONCURRENT XDO XDOREPPB Y 9915625 0 XXAND17 en N RTF RTF
    Submitted request 9915626 for CONCURRENT XDO XDOREPPB Y 9915625 0 XXAND17 en N RTF RTF
    

    See o9915626.out open it and it isn't xml
    It looks like word doc

    {\rtf1\ansi\deff0
    {\fonttbl
    {\f0 Arial;}
    {\f1 Times;}
    {\f2 Courier New;}
    {\f3 Calibri;}
    }
    ...
    

    copy on the local computer and rename it to o9915626.rtf
    opened by the word and she is out as well report

    so conclusion:
    XDOREPPB works fine but not rename output way output format (rtf in my case)

    If this is a bug or a profile must be defined

    -Add

    SQL> select LOGFILE_NAME, OUTFILE_NAME from fnd_concurrent_requests r
      2  where request_id in (9915625, 9915626)
      3  /
    
    LOGFILE_NAME                                                                     OUTFILE_NAME
    -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
    /oracle/VIS/inst/apps/VIS_oebs/logs/appl/conc/log/l9915625.req                   /oracle/VIS/inst/apps/VIS_oebs/logs/appl/conc/out/o9915625.out
    /oracle/VIS/inst/apps/VIS_oebs/logs/appl/conc/log/l9915626.req                   /oracle/VIS/inst/apps/VIS_oebs/logs/appl/conc/out/o9915626.out
    
    SQL> select * from fnd_conc_req_outputs where concurrent_request_id  in (9915625, 9915626)
      2  /
    
    CONCURRENT_REQUEST_ID  OUTPUT_ID FILE_TYPE                      FILE_NAME                                                                        FILE_NODE_NAME                                                                    FILE_SIZE ACTION_TYPE FILE_CREATION_DATE
    --------------------- ---------- ------------------------------ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---------- ----------- ------------------
    
    SQL> 
    

    =/

    Published by: Alexandr on 8 November 2012 06:28

  • How to add the hyperlink in the page of the ofa

    Hi all


    I have a requirement where I have a table in the form OPS with 5 columns, only a single column called pageid page; page id values must be hyperlink.
    so when the user clicks on the hyperlink, it must open a page with empty fields, so that the user can enter data and click Save button.
    Please someone tell me how to get this.or to give me links to simlilar it can help me :-)
    Thank you.

    Hello

    * / oracle/apps/fnd/frame/box in tools/labsolutions/webui/EmpDetailsPG * is the page where you want to navigate after clicking on the link, empNum and empName are the variable that will be passed to the next page and you can get the value of these variables in method PR only @EmployeeName and @EmployeeId are the way to assign the value of an attribute VO of the page where the link is created the value will be assigned to empNum, empName.

    Thank you
    Pratap

  • 5.5 - How to add the hyperlink to URL on the page of the quiz?

    Hi, I have a PPT background imported by hyperlinks to URLS. As-is, the work of hyperlinks to fine in Captivate. My problem is that I want it to be a background in a slide of questionnaire. (The quiz slide is a corresponding slide. I wish that the answers on the slide to hyperlink to the URL with more information on the topics. If the user does not know the answer by the view, he or she can open the hyperlink, do a little reading and research, and then choose an answer on the questionnaire slide.) These are the solutions I've tried:

    • Copied and pasted slide as a background in a slide of questionnaire - hyperlinks do not work. (I assume that it uses the background image only).
    • Deletion of hyperlinks in PPT slide - imported into Captivate - attempted to create the quiz slide hyperlinks using text boxes or click on the boxes - cannot add those. (I guess that Captivate does not allow any other interactive buttons on his quiz slides.?)
    • Abandoned on the groundswell - tried default hyperlink Question and Answer buttons slide quiz - can't do. (I guess that Captivate does not have to perform several actions, objects of default quiz.?)

    I would appreciate any advice you might have. Is my only option to create an additional slide with hyperlinks and then provide a separate questionnaire slide? ("Click on the links below to learn more about these topics. Then move to the next slide to complete the corresponding fiscal year. ") I guess that will work, but it seems awkward.

    Thank you very much.

    In 6 Captivate, you can add a form button to a question slide, and it has "Open URL" in its list of possible actions. More information on the buttons of form in this blog post:

    http://lilybiri.posterous.com/want-a-button-on-question-slide-in-Captivate

    I recently presented a webinar for Adobe on these form buttons. In this blog, you will find the link to the recorded webinar:

    directories - actions.html http://blogs.adobe.com/Captivate/2012/09/Training-lilybiris-Favourite-Shapes-to-Trigger-ad

    You cannot add interactive objects to a question slide in Captivate 5.5.

    Lilybiri

  • How to create the hyperlink by region

    I have the page that contains two region.i you want to create a link to each region. When I click on the first link

    first region must display, vice versa

    Actually how to create the link to the region?

    Thanks and greetings
    SKUD

    SKUD,
    Here is a detailed explanation of what I proposed before the ApEx 4.0 region selector

  • How to reset the hyperlink (all together)?

    Hi, I have pages that contain hyperlinks. Behavior are consistent note and I made the mistake. In some cases, I manually changed the color of hypertext links without going through the window of a hyperlink. But my real question is that I have mailto: links that appear in the status window and the links pointing outside my site (www...) do not appear in the status window. I would like to clean the hyperlinks so that they behave always together; I can reset all links so that they obey the window of parameters of the States, or the window links. Why is there a difference? They are all links. Thanks for your help.

    See this discussion where a similar topic has been addressed.

    How can I change the text of hyperlink styles?

    You can change the default link in muse design?

    Change link styles

  • How to insert the hyperlink into a spreadsheet in CF9.0.1?

    " I tried to insert a hyperlink into a cell on a worksheet as < a href =" http://www.Adobe.com "> click here < /a >, but there is no way to convert the value of the cell in hyperlink." It is not documented anywhere either. Please advise.

    Thank you

    Chee

    It is not very obvious. You can create links using a formula and the Hyperlink() of Excel function. Not tested, but something like this

    SpreadsheetSetCellFormula (sheet, "Link HYPERTEXT ("http://www.adobe.com","Go here")," rowNumber, columnNumber);

  • How to submit the billing and shipping information in a form

    Hi Techies,
    I want to know how in atg we can submit both shipping and billing under the same form. What formhandler we need use? Allows any code sample.

    Thank you

    You can use ExpressCheckoutFormHandler with little customization.

    Or you need create a new FormHandler extension PurchaseProcessFormHandler to capture both.

    Peace
    Shaik

  • How to submit the form to a page of the display?

    I posted a discussion like this, and I thought that I did when in reality they don't have work.
    I followed the steps on "how to make your first dynamic Web site", everything works perfectly until I have add a filter.

    Form page

    <? php require_once('Connections/ladyconn.php');? >
    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION < 6) {}
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $editFormAction = $_SERVER ['PHP_SELF'];
    If (isset {}
    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}
    $insertSQL = sprintf ("INSERT INTO displaytable (name, position, activity) VALUES (%s, %s, %s)',
    GetSQLValueString ($_POST ['Text1'], "text").
    GetSQLValueString ($_POST ['select1 "],"text").
    GetSQLValueString ($_POST ["select2"], "text"));

    @mysql_select_db ($database_ladyconn, $ladyconn);
    $Result1 = mysql_query ($insertSQL, $ladyconn) or die (mysql_error ());

    $insertGoTo = 'display.php ';
    If (isset {}
    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
    $insertGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $insertGoTo));
    }
    ? >
    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > < /title > form
    < script src = "SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryValidationSelect.js" type = "text/javascript" > < / script > "
    < link href = "SpryAssets/SpryValidationTextField.css" rel = "stylesheet" type = "text/css" / > "
    < link href = "SpryAssets/SpryValidationSelect.css" rel = "stylesheet" type = "text/css" / > "
    < / head >

    < body >
    < form id = "form1" name = "form1" method = "POST" action = "<?" PHP echo $editFormAction;? > ">"
    Name < span id = "sprytextfield1" >
    < input type = "text" name = "text1" id = "text1" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span >
    < P > < span id = "spryselect1" > element
    < select name = "select1" id = "select1" >
    < option value = "auto" > car < / option >
    < option value = 'bus' > bus < / option >
    < / select >
    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < / p >
    activity < p > < span id = "spryselect2" >
    < select name = "select2" id = "select2" >
    < option value = "Buy" > buy < / option >
    < option value = "sell" > sale < / option >
    < / select >
    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < / p >
    < p >
    < input type = "submit" name = "button" id = "button" value = "Send" / >
    < /p >
    < input type = "hidden" name = "MM_insert" value = "form1" / >
    < / make >
    < script type = "text/javascript" >
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1");
    var spryselect1 = new Spry.Widget.ValidationSelect ("spryselect1");
    var spryselect2 = new Spry.Widget.ValidationSelect ("spryselect2");
    ->
    < /script >
    < / body >
    < / html >

    View the page


    <? php require_once('Connections/ladyconn.php');? >
    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION < 6) {}
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    If (isset($_GET['pageNum_Recordset1'])) {}
    $pageNum_Recordset1 = $_GET ['pageNum_Recordset1'];
    }
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

    $colname_Recordset1 = "-1";
    If (isset($_GET['item'])) {}
    $colname_Recordset1 = $_GET ["item"];
    }
    @mysql_select_db ($database_ladyconn, $ladyconn);
    $query_Recordset1 = sprintf ("SELECT * FROM displaytable WHERE the point = %s ORDER BY 'time' DESC", GetSQLValueString ($colname_Recordset1, "text") ");
    $query_limit_Recordset1 = sprintf ("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query ($query_limit_Recordset1, $ladyconn) or die (mysql_error ());
    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    If (isset($_GET['totalRows_Recordset1'])) {}
    $totalRows_Recordset1 = $_GET ['totalRows_Recordset1'];
    } else {}
    $all_Recordset1 = mysql_query ($query_Recordset1);
    $totalRows_Recordset1 = mysql_num_rows ($all_Recordset1);
    }
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    Messages from < title > < /title >
    < / head >

    < body >
    < /P > < p > positions
    < ol >
    <? PHP {? >}
    < li > <? PHP echo $row_Recordset1 ['name'];? > < br / >
    <? PHP echo $row_Recordset1 ["item"];? >, <? PHP echo $row_Recordset1 ['activity'];? > < /li >

    <? PHP} while ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));? >
    < /ol >
    < / body >
    < / html >
    <? PHP
    mysql_free_result ($Recordset1);
    ? >

    Sheesh.  This takes us into a whole new direction.  You should have stated this at the beginning.

    To return to your original pages.

    In the page of the form, replace-

    $insertGoTo = 'display.php ';

    on this subject.

    $insertGoTo = "display.php?". "item =". $_POST ["select1"];

    and do nothing in the display page.  Simple enough?  Should work now.

  • How to submit the form to valuchangeListener.

    Hello

    I want to set a text entry in the runtime value and send a form in a selectBooleanCheckbox valueChangeListener, then call a method on link [bindings.execute.execute].

    Can anyone suggest how it is possible? I checked there is no attribute actionListener for selectBooleanCheckbox not partialSubmit.

    You can try with in valueChangelistner run with your binding method

    ex:
    Add after code valueChangelistner
    operationBinding = getBindings () .getOperationBinding ("Execute");
    operationBinding.execute ();

  • skillbuilders modal page: how to submit the page parent after closing modal window

    Hello.

    I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

    I installed version 2.0 of plugin Skillbuilders Page modal.

    In may, app, page 7 presents a button.  When you click on it, page 6 is displayed as a modal popup.  Users can change this modal page form fields and then click on a "submit" button.  This, in turn, automatically closes the modal page.  Users seek then to page 'parent' (page 7).  It all works very well.

    My problem: Page 6 (modal page) contains a collection of Apex.  This collection is updated when users click the submit button.  It is this collection to be displayed with the data updated on the page "parent" (page 7).  And so, I need to automatically send page 7 when the modal page closes automatically after clicking submit on the modal page.

    I tried a dynamic action that performs an action of "submit page" whenever the user clicks on the button send in the modal page.  But because the plugin uses an iframe to display the modal page, the action of page submit real that happens in the iframe, not in the 'parent' page (page 7).  When the modal page closes automatically, users are left looking at the page of 'parent' (page 7) with the previous data (not updated).  I have to manually refresh the page (via the browser) to see the data updates to the collection.

    And then, does anyone know how to automatically return the page of 'parent' when the modal window closes automatically?

    Thank you.

    Elijah


    Your dynamic action automatic closing has not been set correctly. The action is not triggered on a specific item, but rather on the 'document '. Your selection should be 'Élément DOM' and the element must be "document".

    (Note that if you use several modal pages on one page, this action triggers for each of them. You can use the 'modal page id' in the creation of the page modal DAs must be able to stand out in outreach. You can find this in the documentation, too.)

Maybe you are looking for