Use a Jump Menu to Make Selection and stay on same page.

I have a form that you select a ID from a drop down list
click submit, and then are redirected back to the same page with
the results of a query based on the selection from the drop down
list. I want to change this so the user doesn't have to click
submit... I want my drop down list to act as a jump menu. How do I
get my dropdown list to act like a jump menu, which essentially
submits the form, and posts the results below?

2 ways, both use javascript (you can't do it with just cf):
1) add an onChange attribute to your select with
'this.form.submit()' as
value. this will submit the form, refresh the page and show
your results
- just as if user clicked your 'submit' button. be careful,
though, if
you are checking for existence of the submit button in your
action page
- it won;t be there since it has not been clicked.
2) you can also employ some ajax features to submit your form
asynchronously, 'behind the scenes', and show results without
refreshing
the page. CF8 has built-in ajax js functions and tags to do
it,
otherwise look into ajaxcfc by rob gonda or jQuery or other
js framework
that has these features.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • Pass parameter to another page and stay on same page?

    Greeting EveryBody,,,
    as u can see from the subject
    im trying to pass parameter from one page to another but i want to stay on the original page???
    can be done or not? and how?
    examples are welcomed
    thanx in advance
    best regards
    carlito

    i have three pages displayed all by <frameset>
    and i want to pass parameter from one page to another without going to any page!!! i.e. staying on the main page
    hope it clear now....
    best wishes

  • Am having intermittent difficulty rendering in FCE. Using the Sequence menu sometimes delivers results and Command R fails every time. Most frustrating. Any thoughts from anyone? Thanks.

    Am having intermittent difficulty rendering in FCE. Using the Sequence menu sometimes delivers results and Command R fails every time. Most frustrating. Any thoughts from anyone? Thanks.

    Michael,
    There is a forum for Final Cut Express I'd recommend re-posting there.
    Roger

  • Does anyone know if there is a way to arrange songs on a playlist that has 100 songs? I used to be alble to double click and open a new page but that is no longer an option. Because you cant get a total view of the playlist it is almost impossible

    I used to be alble to double click and open a new page but that is no longer an option. Because you cant get a total view of the playlist it is almost impossible.. if a song is in position 95 and I want to put it at 3 I have to hold it and drag it till the curor moves.. This makes creating an order almnost impossible because you cn only see half of the songs

    1.SmartyPanouZe3rd,
    Sep 4, 2013 1:03 PM   in reply to SmartyPanouZe3rd
    This is a follow-up to the above question I had.
    Since i noticed people looking at the question, but no replies showing up, i contacted BC support directly with the same question.
    I got a reply.
    I did tests based on the reply.
    Here is what is going on based on the reply.
    (spoiler alert : It works... but it's not yet a perfect score.)
    All the details are posted here :
    http://www.animavdo.com/mut/ambiguity-001.html
    Hope this can help others.
    Cheers.
    PS  I still will use DW for the heavy lifting...
           But MUSE is nice for quickly putting together a mini website.
           Highly recommended App.

  • When I try to use ITunes Radio the screen just scrolls and plays the same song over and over

    When I try to use ITunes Radio the screen just scrolls and plays the same song over and over again?

    - First try resetting the iPod to make it visible in iTunes
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Next try placing the iPod in recovery mode:
    iPhone and iPod touch: Unable to update or restore
    - Last try placing the iPod in DFU mode:
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • When I sync my photos to iPhoto from my iPhone 4S it like saves about 200 on my phone. I really don't like that because they're like really old and stay the same... Can you take that setting off? Or just make it you most recent pictures instead?

    When I sync my photos to iPhoto from my iPhone 4S it like saves about 200 on my phone. I really don't like that because they're like really old and stay the same... Can you take that setting off? Or just make it you most recent pictures instead? It's really annoying because they're like year old pics

    it had to do with Maverick/Aperture not supporting the same date formats as before in Smart Albums when I upgraded.
    Smart albums based on dates have always been problematic, if you use smart settings that require a date string to be entered. How the date string will be interpreted, will depend on your settings in the System Preferences > Language&Text > Advanced > Dates formats and the "Region".
    It is much safer to use "Calendar" rules in Aperture instead of "Date" rules with date-strings. Calendar rules will remain valid, if the region settings are changed in the System preferences.

  • How to print Header and footer in same page

    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

  • For "select-form" in the same page, add a cancel button in editing status

    Dear JHeadstart team
    For "select-form" in the same page, I still have a trouble.
    How can I customize the Tempalte File to make the editing page have cancel button to abandon the edit.
    If I want to learn the the JHS's Template costomizing (.vm file) and where can I find more reference documents about JHS's Template costomizing (excepting "Oracle JHeadstart 10g for ADF Developer's Guide").
    thanks!

    Can you be more precise on what you want:
    - should the cancel button be displayed when creating new row AND editing existing row?
    - when pressing the Cancel button, where do you want to go, to the select page?
    Steven Davelaar,
    JHeadstart Team.

  • When I Crop a video it doesn't fill the frame back up, it just outlines it in black and stays the same size

    When I Crop a video it doesn't fill the frame back up, it just outlines it in black and stays the same size

    No, I am using the crop function, and the directions say after I press done it will fill the frame, which worked a year ago. Now when using th Crop function, the black area stays black and the cropped video stays the same size. I even shared it to a Master file to see if it would process during sharing, but the black area remained black and the cropped video remained the same size. Still a bit frustrated.

  • Adding Menue Audio Track selection and soubtitles on/off

    Hi,
    with some help from replies to other questions I managed to get a working DVD/BR with cool 2.0 / 5.1 sound and subtitles.
    But for now I do have to select the audio track manually and also I do have to enable subtitles from the DVD/BR players menu.
    So I wanted to add a DVD/BR menu where you can choose the audio track which should be played and to switch on and of subtitles.
    I edited a nice PS PSD File with some buttons and they show up in Encore and I can do some "encore" editig like moving tham arrond or link to some other elements.
    My question: How do I get e.g. the Button "2.0 Stereo" to select the stereo track and the button "5.1 Surround" to select the 5.1 track. An other button should switch on/off the right subtitle
    Than I'd like to have a button which starts the video with the selected audio and if selected subtitle on.
    At the end of the movie I like to be back in the menu.
    I bet thats simple
    I thought to create different timelines and add the audio/video/subtitle, but that i have a lot of timelines in all sort of combinations; e.g. video ON, 5.1 sound ON, subtitle OFF ..... video ON, 2.0 sound ON, subtitle ON etc ....
    Thansk for any suggestion . and BIG thanks. Götz

    Thanks for your posting, but there is the higlight  Layer.
    I opend the menue in photoshot once more and enabled the layers.
    For me a button has the following different states:
    Normal, no highlight,just "plain" text. e.g. "English Subtitle". in that state, the Subtitle is NOT selected/enabled.
    Mouse Over, the highlight shows up, so you can see where you are with your mouse. e.g. "English Subtitle √"
    Mouse left click, the highlight "sticks" to the menue item and when moving the mouse avay it is still highlighted, e.g.  "English Subtitle √"
    So I'd liked to indicate which audio track is enabled/selected and if subtitles are off or on.
    I thought, the highlight button states are markend with (=1) & (=3) ....
    BTW. in encore menue edit mode, if I click the show selected/activated Subpicture Highlight, the right layer shows up (with my √-symbol)
    But in preview mode or on a burned dvd this did not work
    Regards . Götz

  • How to make selected and active a child row of a treeTable?

    Hello,
    I am inserting a new child row into a af:treeTable, disclosing it, but I can't figure out how to make it selected and active so the focus of the user to go on it.
    Jdeveloper version 11.1.2.3.0
    This is how I am inserting the child node:
    public void createLocation(RowIterator ri, Key selectedNodeKey) {
            final String locationCategoryViewDef = "model.views.LocationCategoryView";
            if (ri != null && selectedNodeKey != null) {
                Row[] found = ri.findByKey(selectedNodeKey, 1);
                if (found != null && found.length == 1) {
                    Row foundRow = found[0];
                    String nodeDefname = foundRow.getStructureDef().getDefFullName();
                    RowSet parents = (RowSet)foundRow.getAttribute("LocationView");
                    Row childrow = parents.createRow();
                    //hardcoded locationId
                    childrow.setAttribute("LocationId", 434558);
                    parents.insertRow(childrow);
    }  And this is the treeTable:
    <af:treeTable value="#{bindings.LocationCategoryView2.treeModel}" var="node" varStatus="vaarr"
                  partialTriggers="gaga gag4a ga4a"
                  selectionListener="#{bindings.LocationCategoryView2.treeModel.makeCurrent}"
                  displayRow="selected" rowSelection="single" id="tt1" editingMode="clickToEdit"
                  horizontalGridVisible="true" binding="#{pageFlowScope.treeTableBean.sampleTreeTable}">
        <f:facet name="nodeStamp">
            <af:column id="c5" width="15">
                <af:outputText value="#{node}" inlineStyle="display:none" id="ot1"/>
            </af:column>
        </f:facet>
        <f:facet name="pathStamp">
            <af:inputText value="#{node}" id="ot2"/>
        </f:facet>
        <af:column id="c2" headerText="Location CategoryName">
            <af:inputText value="#{node.LocationCategoryName}" inlineStyle="font-weight:900" id="ot45"/>
        </af:column>
        <af:column id="c6" headerText="Location CATID">
            <af:inputText value="#{node.LocationCategoryId}" inlineStyle="font-weight:900" id="ot6"/>
        </af:column>
        <af:column id="cgg2" headerText="Var INDEx">
            <af:outputText value="#{vaarr.index}"/>
        </af:column>
        <af:column id="c1" headerText="Location Name">
            <af:inputText value="#{node.LocationName}" id="ot3"/>
        </af:column>
        <af:column>
            <af:panelGroupLayout layout="vertical">
                <af:commandLink id="gaga" text="addLocation" inlineStyle="color:red"
                                action="#{pageFlowScope.treeTableBean.createChildren}"
                                rendered="#{node.LocationId == null}" partialSubmit="true"/>
                <af:commandLink id="gag4a" text="delete category" inlineStyle="color:blue"
                                partialSubmit="true" rendered="#{node.LocationId == null}"
                                action="#{pageFlowScope.treeTableBean.deleteChildRow}"/>
                <af:commandLink id="ga4a" text="delete location" inlineStyle="color:green"
                                partialSubmit="true" rendered="#{node.LocationId != null}"
                                action="#{pageFlowScope.treeTableBean.deleteChildRow}"/>
            </af:panelGroupLayout>
        </af:column>
    </af:treeTable>

    Yes I did now but nothing changes. The current, selected and active row is still the parent node...
    Even I am adding AdfFacesContext.getCurrentInstance().addPartialTarget(this.sampleTreeTable); for just in case..

  • Select Query and Recordset on same page

    I have been workig with Coldfusion for a while now.  Where I work there is a need for web pages to extract data from data sources.  I have been successful at doing this.  Typically I use a form that selects multiple criteria, which when submitted loads a target/action page that displays records that are filtered based on the SQL statement contained on that action page.  What I do is to conditionally check if criteria is passed using cfif.  And if a field parameter is indeed passed it becomes part of the cfquery.  This works out well - especially for reporting.
    But now I am seeing more and more a need to accomplish the same process - but on a single cfm page.  So the page I seek will have both the form (select) and the recordset results on the same page. 
    In this exercise I will be caching results od a query and having several queries to further refine what I seek (QOQ).  What I am seeking is the best practice to follow, I was thinking that using an iframe on the page would be and adequate solution whereby the query would pass the criteria and its form action would pass the variable(s) to the action page, which would be the source of the iframe.  But I am not certain that this is a best proctice.  Nor have I had great success at getting the pages to work in concert. 
    Any advice that you can lend would be appreciated. 

    I ideally start by reducing the 2-page functionality - of form page and action page - to just one. It goes like this:
    <cfset isValidationPassed = false>
    <cfif isDefined("form.someVar")>
    <!--- Do validation. Validated form implies isValidationPassed is true --->
    </cfif>
    <cfif isValidationPassed>
    <!--- Do action page stuff --->
    <cfelseif NOT isDefined("form.someVar") OR NOT isValidationPassed>
    <!--- Display the form. --->
    <!--- If form had been submitted, inform user which validation failed, and what to correct. Display the form. --->
    <cfoutput><form method="post" action="#CGI.SCRIPT_NAME#"></cfoutput>
    </form>
    </cfif>
    The idea is then to pile on the complexity, layer by layer.

  • Select and update in same instruction

    Can i select and update a column in table by one query only
    I donot want to execute two queries one for updation and one for retrieval
    e.g. instead of UPDATE t1 set val=val+1 and then SELECT val from t1;
    i wanna have a single query (compliant to mysql and ORACLE)
    because when i passa query UPDATE t1 set val=val+1; SELECT val from t1; on the command prompt is is fine but when i do so through jdbc it gives me errror
    please help

    Why would a stored procedure change anything?
    The stored procedure would have the UPDATE ... ; SELECT sequence in it.
    Which results in the same "work" the database has to do, compared to sending the two statements via JDBC.
    The only thing that a stored procedure would save, is the second JDBC call, but I doubt that this makes a big difference (provided this is not done in a loop. Then I'd retrieve the new values in one statement after all the updates have been committed)
    So I would simply do Statement statement = connection.createStatement();
    int rows = statement.executeUpdate("UPDATE ....");
    ResultSet rs = statement.executeQuery("SELECT ... ");
    String val = null;
    if (rs.next()) val = rs.getString(1);
    rs.close();The code for the stored procedure would look very similar to this with the disadvantage that that you have to maintain it for every DBMS that has to be supported.

  • Using VO as form and table on same page

    Hi,
    We are facing some issues while using same view object on one page. The view object is dropped as input form and as table on same page. There are few fields in the input form that have autosubmit property set to true. Now while entering the data into form, after clicking any autosubmit field, if we refresh the page, then new row gets created in table with value of the auto submit field. This is in cache only and not created in DB. We tried by exposing two instances of same view object in application module but still same issue. Finally we created two view object, one which is EO based and another ready only through query. Its working fine now. But is there any other possible solution, without creating two view objects?
    Jdev: 11.1.1.6.
    Thanks

    Hey Ami,
    I've tried understanding your problem but i'm not sure if i could.
    The problem is that you can insert via the form but it doesn't update the table ?
    Is that it ?
    Regards,
    Frederico.

  • When using firefox, how do i zoom in and out on a page?

    example: when i use internet explorer i just click on the tool tab if i need to zoom in or out. however, with firefox, i cannot figure how do zoom in and out on a page?
    thank you,
    kim

    I don't think Firefox has a slider to do that but it uses shortcuts.
    '''CTRL + + (plus sign)''' is to zoom in<br>
    '''CTRL + - (minus sign/dash)''' is to zoom out<br>
    '''CTRL + 0 (zero)''' resets the percentage to default (100%)

Maybe you are looking for

  • Picture files open in OpenOffice only.

    The xls files i downloaded from the internet will not open in Appleworks 6.    I downloaded OpenOffice, and now any picture file automativally open in OpenOffice only. Before I installed OpenOffice, all of my picture files automattically opened in Ph

  • No transparency in my Quicktime movies in AE CS3 -- help

    I'm rendering a set of animated captions on a transparent background. I need to drop them over existing video, so I need to maintain their transparency. I am, rendering them as QT movies, as animation, RGB+Alpha, millions + colors, straight: Unmultip

  • VEPVG table problem

    Hi experts, The requirement is to avoid to dissapearing sales orders items in VL10 after delivered quantity = max (no open quantity is accessible)... The thing is that system takes items from VEPVG table and check open quantity (VEPVG-BRGEW). This fi

  • Import script to remove zeros in Account field

    Dear FDM Experts, The problem is our source system always extracts 10 characters but we use 7 characters in HFM. Example, Account 0001201010 (10 characters) must be 1201010 (7 characters). I want to write an Import Script to remove, if any, all zeros

  • How to save an unfinished imovie

    Im almost done editing a video, how can i save it and keep editing  in another time?