CF session - can javascript interact with it?

Hello, everyone.
Just wondering if JavaScript can manipulate a CF session variable?
I'm submitting a form via jQuery .post() method.  Upon success or failure, I'd like to set a CF session variable (confirm or failure, respectively) and reload the page to display the message.  Can this be done via JavaScript?
Thank you,
^_^

WolfShade wrote:
Just wondering if JavaScript can manipulate a CF session variable?
If it could, then every user would be able to manipulate your application. If your application is a web store, for example, he will be able to change session.totalPrice from $1500.00 to $0.10.
I'm submitting a form via jQuery .post() method.  Upon success or failure, I'd like to set a CF session variable (confirm or failure, respectively) and reload the page to display the message.  Can this be done via JavaScript?
Yes. Infact, you've been doing that already! JQuery is Javascript. You could redesign the form page such that it is its own action page. That is, the form submits to its own page.
The page checks for the existence of form variables. If there are none, the form is displayed(the page default). If there are, then the form must have been submitted, and so form processing like validation, confirmation, etc., is done.

Similar Messages

  • Can't interact with any open windows, can't interact with flash content

    I've already tried reinstalling, resetting and deleting my profile, nothing's changed.
    I can't close any Firefox window by pressing "x", or by pressing Alt+F4, I can only close it through the task manager or task bar. Minimising or going into windowed mode is also impossible.
    If a new window opens itself (e.g. A download) I can't interact with it at all - It's visible on top of the main window, but nothing I do affects it.
    I also can't interact with flash content (like pausing a youtube video)
    There is absolutely no feedback when I try. The icon doesn't change.
    I recently reset firefox, there are no add-ons, themes etc. installed, the problem persists.
    I am running Windows 7 64bit, everything else (including other browsers) appears to be working fine and a virus scan (Avast! free version) turned up nothing.
    I'd really appreciate any help!

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Can VC interact with Portal session

    Hi Experts,
         Currently, I need to get portal user id from the http session, so how does VC interact with session object? 
        Thanks!

    HI,
    it could be better , if you explain the kind of application you want to do.
    even if you developing the simple application, you can access the user id .
    by the following steps
    1) Place the user data on the view
    2) Place the Text View UI control on the form
    3) set the text view UI control default value = USER@UNIQUEID
    and run the application
    Regards
    Srinivas

  • How can I interact with a Database?

    I've got a project I'm working on in my Java class, and I can't find out how to make the program interact with a database. I was wondering if anybody here could help me out at all? My partners and I have already gotten most of the program figured out (but not programmed), and this is giving us a little bit of trouble. Our books don't have this information, and our teacher told us to check here, so here I am. Any help would be appreciated. Thanks.

    You need to get a jdbc driver for your database. Your vendor should provide you with one. If not then you can try looking for free implementations of that particular database.
    This jdbc driver is used by your program to execute sql statements in the database itself, removing the need for you to handle all the nitty gritty stuff. Kind of like ODBC.
    Like the earlier post pointed out, the tutorials is a good place to look at code samples
    I've got a project I'm working on in my Java class,
    and I can't find out how to make the program interact
    with a database. I was wondering if anybody here
    could help me out at all? My partners and I have
    already gotten most of the program figured out (but
    not programmed), and this is giving us a little bit of
    trouble. Our books don't have this information, and
    our teacher told us to check here, so here I am. Any
    help would be appreciated. Thanks.

  • Can you INTERACT with script without mouse on click?

    Hi everyone,
    I got this script
    has a dropdown list inside
    I can run it in win 7 and interact with by keyboard without mouse
    but why I can't do same thing in the MAC?
    var
      mySelected = Number( app.extractLabel("mDialog") ),
      myDialog = app.dialogs.add({name:"Indesign Close and Save File Machine",canCancel:true});
      with(myDialog){
           with(dialogColumns.add()){
                with(dialogRows.add()){
                     var
                     mySelection = dropdowns.add({stringList:["01   Close and SAVED", "02   Close WITHOUT save", "03   Save all files", "04   Reverse", "05   Remove unused color"], selectedIndex: 0});
    if (myDialog.show() == true) {  
        var docs = app.documents;  
        main();  
        myDialog.destroy();  
    function main(){
          colse_file();
    function colse_file(){
        if (mySelection.selectedIndex == 0){
            var docs = app.documents;
                 for (var i = docs.length-1; i >= 0; i--) {
                         docs[i].close(SaveOptions.YES);
          alert("Files are saved.") 
          return;
        if (mySelection.selectedIndex == 1){
            var docs = app.documents;
            for (var i = docs.length-1; i >= 0; i--) {
                  docs[i].close(SaveOptions.NO);
          alert("Files are closed without save.") 
          return;
       if (mySelection.selectedIndex == 2){
            var docs = app.documents;
                 for (var i = docs.length-1; i >= 0; i--) {
                         docs[i].save();
          alert("Files are saved.") 
          return;
       if (mySelection.selectedIndex == 3){
          var docs = app.documents;
                 app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
                 app.documents.everyItem().revert();
                 app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
          alert("All files are reversed.") 
          return;
       if (mySelection.selectedIndex == 4){
          var doc = app.documents, i, j; 
               for(i =0;i<doc.length;i++) 
                      unused = doc[i].unusedSwatches; 
                         for(j=0;j<unused.length;j++) 
                          unused[j].remove(); 
            alert("All the unused swatches in your opening files are removed.") 
          return;
    thanks
    Teetan

    The only way to purchase from the iTunes Store is via iTunes, on a computer or iOS device, and it will automatically download your purchase immediately. You have a couple of options: you can go ahead and purchase on another computer that has iTunes and then just copy the purchases to your Vista system (via any normal means of file transfer), or if you're in the US, the new iTunes in the Cloud feature, currently in beta and so not completely reliable, would allow you to download the purchases again at some future time when you get your iTunes problems sorted out. I'd recommend the first option as the best solution for now (and the only solution if you're not in the US).
    Regards.

  • Can Director Interact With Other Applications?

    Hello,
    I am a CBT/E-Learning Developer looking for a way to author
    Guided Help. I am thinking of how to develop interactive tutorials
    that, instead of using screenshots of an application, interact with
    the application itself.
    For instance, let's imagine that a person is working in MS
    Word and doesn't know how to save a file. He can click the icon for
    the "Saving A File" lesson, and a caption displays on top of MS
    Word that reads something like "Click FILE", along with some type
    of indicator of the FILE button, such as an outline, highlight,
    arrow, etc. The user clicks FILE, the File Menu drops down in MS
    Word, and the next step of instructions is displayed. In this way,
    the usre is guided through the steps of saving a file as he
    actually performs the task in the software.
    Can Director create this type of thing?
    Thanks a lot,
    Mike

    Hi Chunick,
    Thanks for replying. I used MS Word as just an example; the
    type of software I'm wanting to use this for is police records
    management software. I've been doing the interactive simulation
    tutorials for them since 1999, using multimedia authoring tools
    Demoshield and Opus Pro, and demo authoring tools RoboDemo and Demo
    Builder. However, I wanted to get away from interactive tutorials
    for 3 reasons:
    (1) My client's software is frequently updated, and keeping
    up with taking new screenshots is a hassle.
    (2) I'm of the opinion that "at the moment of need", process
    embedded "guided help" in the actual application is a much more
    useful form of training than working through a simulation.
    (3) It will greatly help my client's support staff and
    training staff
    I've been researching process embedded e-learning and guided
    help for almost a year now. I've looked at everything from
    multimedia authoring to macro software. I even found two programs
    that do exactly what I want, but they are very very expensive, much
    more expensive than Director.
    Thanks for the tip on Hook Xtra; I'll check that out. Last
    night I found an xtra called MasterApp, which may also do what I
    need. I appreciate the concern about the difficulty of programming,
    and I'm not a programmer (except HTML, and we all know how easy
    that is). But I'm in this for the long haul, and would be using it
    for potential new clients, not just my current client. I love
    learning new software, and I have a membership to the IEEE Computer
    Society, which gives me over 1300 online e-learning courses I can
    take, including Director.
    Thanks again for the lead!
    Mike

  • How to create a modal dialog, which I can still interact with document when the dialog is show.

    HI,
        Now, I am developing an automation plugin, and want to create a modal dialog, which I still can interact with document when the dialog is show.
        I find photoshop has some modal dialog have this function, such as the dialog of Customize Proof Condition and the dialog of Color Settings. Are these dialogs not modal dialog?
         Thanks!

    The whole point of a modal dialog is that you cannot interact with other things while it is active.
    And Photoshop does not support plugins accessing the rest of Photoshop while any plugin UI is active.

  • Can AIR interact with iPhone Calendar?

    Hi, I work on flash platform and am developing an app for iPhone. In one of the module, there is a date field, so users can create an event using the date field. The module requirement is such that once a user selects a date, the date will be added to iPhone Calendar. Is there any API to interact with iPhone Calendar?
    Please let me know your views.
    Thanks,
    Salim

    Apparently with iOS 5 you can open an .ics file with Safari. That could give you the potential to write a calendar file and then open it with a StageWebView. I haven't tried it, but the hard part will be creating the .ics file. You could start by making a couple of test cases, and then see what the differences are.

  • Can i interact with an optimos camera

    Hi
    I wish to use an Optimos camera from Qimaging with Labview. there doesn't seem to be any Vi's available. The only thing that seems to interact with it is micromanager. Is there a way to use micromanager drivers in Labview?

    The only way to purchase from the iTunes Store is via iTunes, on a computer or iOS device, and it will automatically download your purchase immediately. You have a couple of options: you can go ahead and purchase on another computer that has iTunes and then just copy the purchases to your Vista system (via any normal means of file transfer), or if you're in the US, the new iTunes in the Cloud feature, currently in beta and so not completely reliable, would allow you to download the purchases again at some future time when you get your iTunes problems sorted out. I'd recommend the first option as the best solution for now (and the only solution if you're not in the US).
    Regards.

  • Math Interface Toolkit in Matlab: Can I interact with a VI as a parallel process

    I'm curious if it's possible to create a Matlab MEX file using the LabVIEW Math Interface Toolkit (MIT) that can be called in matlab and accessed while running?
    I'd like it to effectively work just like any other object in matlab.  I'd like to be able to query the object while it's running, dump values out of a buffer, and even hook events if possible.
    As it currently stands, the VI to MEX setup seems to just allow me to call a VI, run it, and then drop out.  I want to be able to continuously acquire and access the data as it's coming in and interact with it from matlab (i.e. fully integrate the VI into my matlab code as a separate object).
    Is this possible in some form or am I stuck with dedicating the matlab interface to the VI whenever I want to call it?
    Thanks

    Hi GusLott,
    You are correct that when you call a VI the command line will not continue until the output is obtained.  This makes sense since in LabVIEW that is how a VI operates (a subVI does not ouput until all outputs are obtained).  I believe this is also how commands in MATLAB work as well (correct me if I am wrong).  On the otherhand this is not a disadvantage in labVIEW since you can run VIs in parallel.  If you can create some way to run parallel threads in MATLAB then you will be able to do two (or more) MEX calls at once. 
    As far as object oriented programming goes, there is a labVIEW OOP, but I do not think it has been tested in conjuction with the Math Interface Toolkit.
    Brian K.

  • Can I interact with SAP Tech Support Team over phone?

    Hi,
    I and my architect in my company willing to interact with SAP Tech Support Team over phone (i.e. Like to setup a Call with them). we have bought a license with us for Crystal Report 2008. My architect has few queries to be clarified and willing to interact with them.
    Is this possible? If so can you please provide the contact number for the same.
    Thanks & Regards,
    Mani G.S.

    Hi Mani,
    If you don't have a support contract to create a case in [Service Market Place|http://service.sap.com/support] then you can purchase a single case from this [link|http://store.businessobjects.com/store/bobjects/Content/pbPage.CSC_map_countyselector/pgm.67024400?resid=Tj14uQoHArEAAEctJGsAAAAI&rests=1312651449029]
    Don
    PS - it's a holiday in North America today so if you do call it may take a day to get back to you.

  • Can't interact with flash dialog boxes[Solved- sorta]

    Any time I try to interact with a dialog box produced by the flash plugin (such as the one that pops up with you right click a flash application and select "settings"), I am unable to do anything with it. That includes moving it, closing it, or manipulating any of the  controls within it.
    I've been googling for the last hour and haven't come up with any kind of solution. I even tried installing flashplugin9, gnash, and flashplugin-mozilla, and they all give the same result. Nor does changing  browsers (I've tried opera, arora, swiftfox, and firefox) yield different results.
    Thanks in advance for any insight into this issue.
    Regards,
    EnvoyRising
    Last edited by EnvoyRising (2009-01-12 15:58:49)

    EnvoyRising wrote:
    Any time I try to interact with a dialog box produced by the flash plugin (such as the one that pops up with you right click a flash application and select "settings"), I am unable to do anything with it. That includes moving it, closing it, or manipulating any of the  controls within it.
    I've been googling for the last hour and haven't come up with any kind of solution. I even tried installing flashplugin9, gnash, and flashplugin-mozilla, and they all give the same result. Nor does changing  browsers (I've tried opera, arora, swiftfox, and firefox) yield different results.
    Thanks in advance for any insight into this issue.
    Regards,
    EnvoyRising
    I would try a different GTK2 theme first. Something not complicated like the default Raleigh theme.

  • HTML/javascript interaction with swf content - can I call swf functions from JS?

    Hi,
    I've created an AIR application where the
    intialWindow.content is a HTML page / JavaScript application. On
    this HTML page I want to include some SWF content as a plugin (a
    Flex 3 app), so I have an object tag.
    From my SWF I can call out to JavaScript using
    flash.external.ExternalInterface fine. I can also call methods
    within the AIR and Flex APIs via the window or runtime objects.
    However, if I try to call methods within my SWF from
    JavaScript, nothing happens. Further, I can pass a function
    reference from my SWF to JavaScript (via ExternalInterface), and
    while I can see a valid function reference in JavaScript, calling
    it doesn't call the function within the SWF.
    Is this not supported? Or is this something else, like an
    applicationDomain issue? My SWF object is loaded via the app:/ uri,
    so I didn't think it would be that.

    I hadn't tried that, and it does work. Thank you. Everyone
    should note though that the documentation here
    Flex
    3 - External Interface
    and
    Flash
    9 - ExternalInterface.html
    says:
    "Note: Adobe AIR currently does not support the
    ExternalInterface class."
    which by my reading means that none of this should work,
    although it clearly does.
    The page
    Example:
    Using the external API with a web page container was most
    helpful in finding the solution, since it mentions referencing the
    object id of the plugin (e.g.
    window['my-object-id'].functionToCall()) when referencing the
    callback function.
    This
    page has a more concise example.

  • Oracle PL/SQL or JavaScript Interaction with a PDF Document

    I'm new to LiveCycle - be gentle. . . :-)
    My department is attempting to develop a web application which will, among other things, generate fixed layout forms filled with data from the database or from an application web page. The web pages for this application will be served via stored procedures from an Oracle database through a dedicated web server - that is, the web pages are actually contained within stored procedures called by the browser through the web server (we're sort of an odd-ball shop, serving pages this way, but Oracle does lend itself well to this technique). We are exploring the feasibility of using LiveCycle to design the fixed layout forms without having to form a connection to the database from within the document or PDF viewer. We are currently using Crystal Reports to generate forms or reports but we are trying to get away from it due to implementation difficulties, dependability and connection issues and the fact that a license for a Crystal Reports viewer must be purchased for everyone who needs to view the reports.
    Is it possible to add a JavaScript snippet to an existing PDF form template from within an Oracle stored procedure to accomplish this (this appears to be the simplest solution to me)? The solution can be either PL/SQL or JavaScript based. Barring that, is it possible to merge data into PDF form fields before the document is sent to the browser?
    After several hours of searching through Google in general and the Adobe forums in particular, the closest possibilities I can find is XPAAJ or maybe the LiveCycle PDF Generator service that comes with LiveCycle - I'll be researching those approaches to determine their feasibility. In the meantime, suggestions for simpler approaches would be welcome. Thanks in advance.
    Woody

    A quick glance at PDF Generator shows that it doesn't handle document access, only document conversion. XPAAJ looks promising, but appears to require Java programming knowledge to utilize it - we're not a Java shop. I'll investigate further, see if the XPAAJ interface is available to other languages.

  • Can't interact with  iCloud preferences in system preferences!

    Since installing Maverick on my Imac 2 weeks ago I have had issues with the Icloud preferences in system preferences. I click on the icon, nothing happens, same with the internet account button.
    I have been through the process of deleting the icloud folder from the application support folder and restarting, I can access icloud preferences on the restart and log in but it works for an hour or so, some times longer but have to go through the process again.
    Other symptoms are mail not recieving new mail or being able to send, and having to force quit safari when I shut down imac. these are tempoarily resolved when I go through the above process.
    This is the first recurring problem I have had in a lifetime of Mac use.
    Any clues on how to fix?
    Cheers
    Rob

    I figured out how to solve the problem. I guess the JavaScript engine in Safari is more robust. IWeb wraps HTML snippets in more JavaScript. I updated the webpage to include the original JavaScript from PollDaddy and the poll now works. Here's the URL:
    http://somerville-cya.dyndns.org/Activities.html
    Notice 1) I modified the original iWeb code to include my own javascipt effect. 2). The PollDaddy code is shown directly in the page while other snippets are in their original iWeb form.

Maybe you are looking for

  • Getting a Filename

    I have a task to do with Indesign XML workflow. Is there any option for getting a file name to a variable in the corresponding folder for example: "test.xml" the filename "test" needs to be saved in a variable, i.e., any xml file which i placed in th

  • Error during invoice sending by Email

    Hi gurus, During Invoice creation , we are sending an email to a customer with Transmission medium 5 external send.       But during invoice saving getting error as No address exists Error while copying recipient object Specify at least one recipient

  • Using WD APIs in Java Programming

    Hi,      First let me explain my scenario:           I have to get the <b>attachments in a PDF document</b>, using a <b>java program</b>. I am using Java perspective of NWDS. I am using the APIs ->IWDPDFDocumentHandler ->IWDPDFDocumentAccessibleConte

  • Mail notification on po

    hi whenever we create a new purchase order the user wants the mail notification with the new po as an attachment. this po attachament should be the same as neu output in pdf formate.please send me the code and the place where we need to write the cod

  • Where can I find the Wi-Fi adapter on my Satellite C70-A?

    I got a Satellite C70-A-17C I want to replace the +Qualcomm Atheros AR956x+ wireless network adapter. And put in an +Intel Centrino+. Because Intel WiDi does not work with a qualcomm. So, Where can i find this qualcomm adapter in my laptop? And is it