Change only one field in a Web application using AJAX?

I have a script that modifies a WebApp via AJAX.  This works.  Only problem is, I want to update not only one field in the element of the WebApp.  When I submit the change via this script, it does not change the field in question, no problem, but clears (empty out) all other areas.

Is there a setting/variable/etc that I can use so that it will only change the field and leave the others alone?

          <script type="text/javascript">
                function setRegLevel(level) {
                   
                    // set action for ajax
                    var action = "/CustomContentProcess.aspx?CCID=23108&OID=" + regID + "&OTYPE=35&A=EditSave";
                   
                    // set appropriate field to search by
                    var dataName = {};
                    dataName['CAT_Custom_37'] = level;
                   
                    var searchOpts = {
                        url: action,
                        async: false,
                        data: dataName,
                        type: "POST",
                        success: function(data, txt, jqXHR) {
                           console.log('OK');
                        }
                    }
                    $.ajax(searchOpts);
                    return false;
                }
            </script>

You must send the other information and update all the

Tags: Business Catalyst

Similar Questions

  • How can I keep only one instance of the javafx application at the same time?

    Hello
    How can I keep only one instance of the javafx application at the same time?
    Let not the user run the javafx application is running on your PC.

    Hello. This program does what you want. You can probably find a better solution.

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.*;
    import java.nio.channels.FileLock;
    import javafx.application.Platform;
    import javafx.stage.WindowEvent;
    
    public class Simpleapp extends Application {
    
        public static void main(String[] args) {
    
            launch(args);
        }
    
        @Override
        public void start(Stage primaryStage) throws Exception {
    
            final File file = new File("flag");
            final RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw");
            final FileLock fileLock = randomAccessFile.getChannel().tryLock();
    
            System.out.print(fileLock == null);
            if (fileLock == null) {
                Platform.exit();
            }
    
            primaryStage.setTitle("Hello World!");
            Button btn = new Button();
            btn.setText("Say 'Hello World'");
    
            StackPane root = new StackPane();
            root.getChildren().add(btn);
            primaryStage.setScene(new Scene(root, 300, 250));
    
            primaryStage.setOnCloseRequest(new EventHandler() {
    
                @Override
                public void handle(WindowEvent arg0) {
                    try {
                        fileLock.release();
                        randomAccessFile.close();
                        System.out.println("Closing");
                    } catch (Exception ex) {
                        System.out.print(ex.getMessage());
                    }
    
                }
            });
    
            primaryStage.show();
        }
    }
    
  • Can update you weight field of a web application automatically?

    I'm having a real hard time understand why we have the power in British Colombia to create web applications, but may not sort the data the way we want through automation... I realize at this point, the only way to handle the weight field to sort my articles by date. However, I am building a user driven site with submitted by the user all the content and it should be available immediately. Now obviously results are posted online as soon as they are submitted, but right now, the way auto only show results that makes no sense is by a recent activity listing or alphabetical order.

    Is it possible to automate the update of weight of the item field so that the results can be available in the order, for example, Date of the event (custom date field)?

    HELP please - all this power seems of course as a loss if you cannot manipulate your results accordingly!

    Phew - that was a doozy.  OK - I've updated my violin with the new version of the code:

    (function ($) {}

    var container = $(".sort-list»);

    var elements = $(".sort-point»);

    {Items.each (Function ()}

    Convert the string in attribute 'data-event-date' to a more

    standard date format

    var BCDate = $(this).attr("data-event-date").split("-");

    "var supports = BCDate [1] +" "+ BCDate [0] +" "+ BCDate [2];

    Supports = new Date (supports) .getTime ();

    $(this) .attr ("data-event-date", member);

    });

    {Items.sort (Function (a, b)}

    a = parseFloat ($(a).attr("data-event-date"));

    b = parseFloat ($(b).attr("data-event-date"));

    return a > b? -1: a

    {.each (function ())}

    Container.Prepend (this);

    });

    (}) (jQuery);

    Just replace the old code above with this new version and you should be all set in all browsers.  I tested it in Chrome, Firefox, IE8-10

    In the case where you want to know what I changed - essentially the handles of IE and Firefox sort by object date differently - Chrome is more flexible and more intelligent so I had to convert each string in the "data - event date ' js date a string similar to"MM DD YYYY"which all browsers can easily convert into an object. And I got it in Chrome and Firefox, but IE still gave me questions as if you use the javascript 'sort()' method in Internet Explorer, it expects a number only so I can convert the string to "data - event date" in a timestamp that is just a series of numbers corresponding to a unix timestamp (IE-"1357016400000" is the time stamp for the 01/01/2013) and then I converted this string to an integer in javascript and now this works cross browser.

    Here is a link to the violin to see it in action: http://jsfiddle.net/thetrickster/7U3Xd/

    If you have used an older version of my script that he does not work for Firefox or IE

  • Hide a field of empty web application

    Is it possible to hide a field of web application if there is no data, WITHOUT resorting to the tables?

    This is where you would use operators liquid markup logic:

        {% if yourWebappField and yourWebappField != '' -%}        
    The thing: {{ yourWebappField }}
    {% endif -%}
  • Change only one part of a recorded Action?

    Hi, I made an action that adds text to an image, but a lot of time, I want to change the text that I have to do all the action once again for the new text. Is it possible to simply change the text in the action? If you do not do all the action once again if you want to change the text. I put my text on a color band that has an opacity of 80%.

    There are 12 steps to action, 1. Make a new layer, 2. Select the area to fill with color, 3. foreground SET, 4 color. Fill the selection with the foreground color, 5. change the opacity of the layer to 80%, 6. make a text later, 7. Set the style of text, size, and color, 8. Paste in Scripture, 9. Position the text, 10. flatten image, 11. Save the file, 12. Close the file.

    On a landscape image, there is the extra step of the rotation of the text that makes it 13 steps. For the moment, I have to go through this whole process long and tedious every time different, I want to change the text. Is it possible to simply change the entry in the recorded action and using the same action again? Thanks for your help.

    Here is a short video on what I'm doing. I do not turn off the record. To do this, when I put the text - I use ctrl - enter for this.

  • Detect when a person has presented a Web application using liquid?

    I have a web application that allows anyone to edit the items in a web application, however, I want only certain users to be able to edit this web application. I have some safe zones assigned to these users. I use module_data, so I don't know what secure areas, the user is subscribed to. I can then run the following logic:

    {% If RescueVolunteer is 'True' or Director is 'True' or Admin == 'True'-%}

    <!-FORM of CHANGE see - >

    {%-%}

    You do not have permissions to view this page. If there is an error, please contact us.

    {endif %}

    This works great but I ran into an issue. With this web application in particular, for each element, we add the field "presented by" so that the user will be able to modify this point. This particular user can change the web application element they are assigned to and are not attributed to one of the areas of security that has editing access.

    Is there a way to detect, using liquid, when a user is assigned to the subject field? In other words, I want to be able to do this:

    {% If file is 'True'-%}

    DISPLAY THE FORM

    {endif %}

    I checked the {{this | json}} but don't see anything that I could use. Is there something?

    I thought about adding the {module_webappcustomer} on the page to execute the logic, but I did not understand what a moment.

    No indication on how this can be achieved would be very appreciated!

    Hi Lynda,

    A solution we came up with many years ago, almost liquid, but still topical today, was to add in another field in the site web app called ' presented by ', and it simply reproduces the generation presented by feature. Place the email address of the owner of items in the web app in this new custom field to manually check if current logged-in user has access to change this point of current web application.

    It's barbaric, I know, but it works.

    Stephen

  • How can I printscreen, only one of the two screens I use now?

    I work with two screens and when I try to printscreen the computer takes the two images on the screen and print, making the really small screen images to the point that they are almost impossible to read.
    I want a pint only one of the two screens.

    Hello

    Try the capture tool:

    How to use the Windows Vista Snipping Tool
    http://www.bleepingcomputer.com/tutorials/tutorial135.html

    Use capture tool to capture screenshots
    http://windowshelp.Microsoft.com/Windows/en-us/help/1337cdba-52a2-4704-ad4d-2d7bace605b41033.mspx

    How to take screenshot with the capture - simple tool
    http://Lifehacker.com/228885/Windows-Vista-tip--take-screenshots-with-the-Snipping-Tool

    Cup - best tool screenshot screenshot
    http://desktoppub.about.com/od/screencaptures/IG/Snipping-Tool/Snipping-Tool.--0k.htm
    http://graphicssoft.about.com/b/2009/05/15/using-the-Snipping-Tool-in-Windows-Vista.htm

    How to take a screenshot with the tool captures of Vista
    http://www.WikiHow.com/take-a-screenshot-with-the-Snipping-Tool-in-Vista

    Use the Windows Vista Snipping Tool to take screenshots
    http://www.tips4pc.com/articles/Windows%20Vista/use_the_windows_vista_snipping_t.htm

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Cancel the deployment of a Web application using a Java method or call

    Hi, I have an application that is running on weblogic I want to cancel the deployment using a Java method or a call.
    Is it possible to do it with a specific API to weblogic or something like?
    Thank you!

    Hi CarolinaCunha,

    Please visit the following link to cancel the deployment of Applications using the Java method:

    http://jaysensharma.WordPress.com/2010/01/15/Undeploying-application-using-Java-method-JMX/

    Thank you
    Jay SenSharma

  • Research of Web App using Ajax?

    I created a webapp that save the user information from photos, now I want to create a page where the user can filter the list displayed using ajax. I have an obligation not to use any submit button to filter the data, but as soon as the user selects the data as a checkbox is checked, the displayed data should gets filtered upwards according to the criteria, but from ajax. How can I achieve on this issue?

    Here is the image of the filter box:

    search.png

    Hello

    The way to do it would be to use jQuery function http://api.jquery.com/jQuery.post/ post and submit the web search form app using this function, then capture the results and display them on the page.

    See http://kb.worldsecuresystems.com/733/bc_733.html#main_Web_App_Search

    JavaScript is outside the scope of support, so I unfortunately can't offer more help on this, but I hope that gives you an idea of what you need to do.

    Kind regards

    -Sidney

  • Notification of change of management int ADF Fusion Web Application database

    I'm trying to implement a system that detects changes (for example the insert operation) in the database. I searched the net and found these two examples: [blog technology AMIS | http://technology.amis.nl/2012/06/18/notifying-adf-applications-of-database-changes-fast-and-lean-using-database-query-result-change-notification-part-one/] and [post niallcblogs | http://niallcblogs.blogspot.nl/2009/06/auto-refreshing-adf-chart-objects-in.html]

    I downloaded an application example in BLOG of FRIENDS and follow the steps which the listeners of notifications to the database.
    Both requires a privilege "change notification" in the database so the privilege of change notification, I added to my user db.
    When I run the application it properly registers listeners to the db with the method 'registerForDatabaseNotifications' notifications
    Adds instances of DatabaseNotificationHandler as listeners. But when I inserted a line in the table,
    It does not reach to the method "onDatabaseChangeNotification", as provided in the example.

    After this failed attempt, I tried niallcblogs post, followed the steps to create and update a chart according to the emp and dept
    iln SCOTT schema tables. But once again the notification does not reach to the method.

    I use Jdeveloper 11.1.1.4.0 and access to the HR schema on a remote connection to our Oracle database
    You have an idea? I can add the sources of the project if necessary?

    Well, if you can't ping your server db machine machine, how you expect your db send notifications of change? :)
    In one of my previous posts, I described my test scenario (which is more complex than yours) and this work when the firewall is disabled (or configured correctly :))
    So, check (or disable :)) your antivirus and firewall software/hardware.

    Dario

  • change only one value of character lowercase to the next

    If a variable contains a single character in tiny at the end after the '_' character, how to change for the next character lowercase?

    for example

    If str contains "act_b", then the result should be "act_c".

    If str contains "act_c", then the result should be "act_d".

    If str contains "act_d", then the result should be "act_e".

    You can use right() function or something to get the last tank; ASC() for his code ASCII, increment, she, using chr() to represent as a tank once again, then reReplace() to replace what currently exists with the new tank.

    Or a few variations on this theme.

    --
    Adam

  • Error in the web application using jxls

    I use Jdeveloper 11.1.2.0 and when I use to fill a jxls of excel files, I get the following error:

    Event < digester > < startElement > Begin threw the exception
    java.lang.ClassNotFoundException: net.sf.jxls.tag.ForEachTag
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
    at org.apache.commons.digester.Rule.begin(Rule.java:175)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1453)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1329)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:376)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:322)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
    at org.apache.commons.digester.Digester.parse(Digester.java:1785)
    at net.sf.jxls.parser.CellParser.parseTag(CellParser.java:294)
    ....
    < CellParser > < parseTag > cannot parse cell tag < jx:forEach elements = "${groups} ' var = 'grupo' >: fullXML: < jxls xmlns:jx ="http://jxls.sourceforge.net/jxls/jx"> < jx:forEach elements =" ${groups} ' var = 'grupo' > < / jx:forEach > < / jxls >
    java.lang.ClassNotFoundException: net.sf.jxls.tag.ForEachTag
    at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
    at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1456)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1329)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:376)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:322)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
    at org.apache.commons.digester.Digester.parse(Digester.java:1785)

    Added jar are obviously necessary, I think that the problem is the XML parser that uses Oracle Weblogic.
    I did a Test case jsf libraries leaving only jslt 2.0, 1.2 and pots to jxls and the error is the same, do not pass this in a tomcat.

    Any idea?

    Best regards, Marcelo

    I even put libraries in the WEB-INF/lib and the error remains the

    even.

    Packaged libraries are not found by the WebLogic Server is running.
    Add jxls JAR files for the + to the \\user_projects\domains\base_domain\bin\startWebLogic+ script
    Variable CLASSPATH and restart WebLogic server.

  • FF has an option for AutoComplete is a form all like Google, or full auto work only on one field at the same time?

    Is there a way of really auto complete a form in FF the way Google, or is full auto only one field both in FF?

    You can watch an extension as Autofill Forms.

  • Virtual keyboard hides part of the change to the field

    Hello

    I have a labelfield, field change and a button that are centered aligned vertically. The three fields, I added in a Verticalfield Manager which is then added to a horizontal region Manager. And finally the HFM is added to an another value for money. Now in the 9800 device or curve 9380, I noticed that when I touch the edit field, virtual keyboard is coming. And he hides the field partially change.

    I want to move things to the top when the virtual keyboard appeared. How can I do. My code is here:

           HorizontalFieldManager hfm = new HorizontalFieldManager();
            VerticalFieldManager vfmComponent = new VerticalFieldManager(USE_ALL_WIDTH);
            vfmComponent.add(lfServerUrl);
            vfmComponent.add(mEfURL);
            vfmComponent.add(mBtnSave);
            hfm.add(vfmComponent);
            int topEmptySpace = (Display.getHeight() - (Bitmap.getBitmapResource(mStrTopBar).getHeight() + hfm.getPreferredHeight() + 25)) / 2;
            hfm.setMargin(topEmptySpace, 0, 0, 0);
            VerticalFieldManager vfmMain = new VerticalFieldManager(VERTICAL_SCROLL| NO_HORIZONTAL_SCROLL );
            vfmMain.add(hfm);
            add(vfmMain);
    

    Help, please.

    When you start to need as many managers to get the look you want, then you know that you should really create your own Manager.

    These two should help you to do:

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...

    For example, I hacked together a "centeringManager" and the screen, which should do what you want.  But please use this as a reference sample, understand what he does and maybe even improve it.

    In production code, I would really remove the centeredManager and centering Manager across all fields and place them, but then you must code a manager which includes margins, which would confuse the point of this example - as a basic implementation of a Manager.

    Hope it's what you want.

    public final class CenteringScreen extends MainScreen {
    
        /**
         * verticallyCenteringManager takes one Field and positions it
         * centered in the space it has.
         */
        VerticalFieldManager centeringManager = new VerticalFieldManager() {
            protected void sublayout(int maxWidth, int maxHeight) {
                if ( this.getFieldCount() > 1 ) {
                    throw new RuntimeException("Expecting only one Field or Manager to be added");
                }
                if ( this.getFieldCount() == 1 ) {
                    Field f = this.getField(0);
                    layoutChild(f, maxWidth, maxHeight);
                    int requiredTopMargin = (maxHeight - f.getHeight())/2;
                    int requiredLeftMargin = (maxWidth - f.getWidth())/2;
                    setPositionChild(f, requiredLeftMargin, requiredTopMargin);
                    setExtent(maxWidth, maxHeight);
                } else {
                    setExtent(0, 0);
                }
            }
        };
    
        /**
         * Fields added to centeredManager will be displayed 'centered' vertically
         * regardless of orientation of screen and presence or absence
         * of virtual keyboard
         */
        VerticalFieldManager centeredManager = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);
    
        // Sample Fields to be added
        ButtonField sampleButton = new ButtonField("Button", ButtonField.FIELD_HCENTER);
        LabelField sampleLabel = new LabelField("Label", LabelField.FIELD_HCENTER);
        BasicEditField sampleBef = new BasicEditField("Text", "", 255, BasicEditField.FIELD_HCENTER);
    
        public CenteringScreen() {        
    
            super(Manager.NO_VERTICAL_SCROLL); // very important
            // The NO_VERTICAL_SCROLL means that the only Manager added to this Screen - centeringManager -
            // will be given as its maxHeight, the available screen height, regardless of
            // orientation or whether there is a virtual keyboard displayed
    
            // add Fields to centeredManager
            centeredManager.add(sampleButton);
            centeredManager.add(sampleLabel);
            centeredManager.add(sampleBef);
            centeringManager.add(centeredManager);
            this.add(centeringManager);
    
        }
    
    }
    
  • BlackBerry Smartphones test web application through BlackBerry Simulator.

    Hello

    I have to test my web application on a blackberry Simulator. My first question is: if it is possible to test any web application using the Simulator or I can test only the rich applcations of BlackBerry?

    I do the following:

    1. I downloaded Black Berry Email and MDS services Simulator 4.1.2 and BlackBerry_Simulators_4.7.0.78_9500 - Vodafone.exe.

    2A started the MDS Simulator first, then the BB Simulator.

    But I am not able to connect to internet, BB Simulator. Am I missing a config in the MDS Simulator.

    Help, please. This is urgent. TIA.

    Hello

    Open the rimpublic.property file. The rimpublic.property file is located in the following locations: \Program Files\Research In Motion\BlackBerry Email and Simulators\MDS\config of MDS

    Then add these commands in the section [MANAGER HTTP], update the following:

    application.handler.http.proxyEnabled = true

    application.handler.http.proxyHost = hostname

    application.handler.http.proxyPort = hostport
    application.handler.http.proxyUser = username

    application.handler.http.proxyPass = password

    application.handler.http.proxyAutoConfig = true

    application.handler.http.proxyAutoConfigURL = http://URL_to_Your_Config_File

    application.handler.http.proxyAutoConfig.ScriptCacheTime = 0

    Save these changes and to make with your steps... that will succeed to open a web application on your Simulator... more can know which web application (i.e. URL) that you want to test... I had the same problem, but somehow managed to open sites to Simulator after adding these commands. But my main concern is to open a URL in sector public siebel that is installed on a server in 9530 Simulator device. Can you/only you know which deals with the implementation of CRM siebel on simulators could you please suggest me doing this task.

    Thanks in advance

    Hochart

    India

Maybe you are looking for

  • Volume - volume wheel - Portege M800 level jumps

    Hi all I have Toshiba Portege M800 and I have a problem with the volume knob.If I try to increase or decrease the volume of this volume knob, it will change, but the volume does not change linear. For example, when I increase the volume from 0 to som

  • How to clean the cooling modules Satellite A30

    How can I clean the fan overheating? I can't open my laptop (Satellite A30) on the back for a screw is damaged. is there an alternative? * {color: #000000}Thanks for your comments! {color} *.

  • Switching between Windows Windows Vista

    Windows vista has a program that switches between windows, which is pretty cool, but it doesn't work when I try to enter a shortcut key. Help?

  • HOW DUAL BOOT WINDOWS 8.1 AND WINDOWS 7 USING UEFI

    My laptop model is HP PAVILION 15-n205tx   Click here for product details My laptop is installed with Windows 8.1 and I would be like Dual start with Windows 7 using a cd but when I try, there is an error saying that windows cannot be installed in th

  • Spirent GSS 6100

    Hello I was wondering if someone can help me configure this gps "spirent gss 6100", sig gen with the use of usb? I could not find any drivers and I was wondering what it'll take to get communication. It has a USB interface... He is unresponsive to th