Web Sockets for applications other than the cat

I run a small call center, where a small group of employees in a Web log authenticated ColdFusion.  The purpose of the website is to query an Access database every 30 seconds, and any consumer requesting information (who filed an advance of a web form which publishes customer information in the database) is then quickly contacted.  At this point, the process is carried out using an index page that refreshes (every 30 seconds by a meta refresh).  But I wonder if it is a scenario that would be better served using web sockets?

I must say that web sockets is a new technology to myself.  And in my attempts to learn more through examples on the web, I find that the typical example consists of a web chat interface.  It is too intriguing for myself, but I'm more concerned with now a way to implement better efficiency to the index page.  I believe that 4 000 requests are made each day against the Access database.  It works, but there must be a better way?

Using jquery, you can use the load() method which will load a page to an element.

Simply have your page with an empty div that has the content you want to refresh. Create a function with a load method in to get the desired data. When you first visit the page, the call is made for the first time, fill in the data. A setInterval is the installation program that calls the function again every x seconds to update the div.

Then you might have a simple page as follows:



    


    

Solution much easier and faster, and then try to get something like websockets to work for it. WebSockets something to 'talk' to require that something in the back-end will need to send messages to the front. This example above may be just quick on the already existing content.

Tags: ColdFusion

Similar Questions

  • What are some editing apps good free photo for Mac, other than the Photos of Apple?

    Hi everyone, I'm looking to see what free apps, you guys use for editing photos?  I have a photography class to come and play with options other than the use of pictures of the Apple app.  Nothing against the app, I just learn more.  Thank you.

    Strange question to the users of the forum pictures - of course, the answer is Photos for Mac

    Photos is optional and if you don't like it, then, Google is your friend

    LN

  • One application other than the Hyperic Agent can enter data in the DB?

    Hello Experts!

    I'm a newbie regarding Hyperic, and my customer is asking me questions such as:

    "Can we control a Perl process to measure with Hyperic Agent?" - I think the answer is 'no '. Is this correct?

    "Otherwise, if scratch us FlatFile newspapers (e.g., using a Perl process) to gather metric data about a process, can we simply insert the resulting data in the HQ table in the DB (without Agent Hyperic and Plugins) and so 'wrong' HQ allowing us to take advantage of its visualization abilities? -I think the answer is "no--at least not safely. A likely reason among others for the failure of such an approach could be unique complexity ID/key. "Is this response on the target?

    Although I would be happy to any detail in your answers, there is no need to go into deep detail - I'm just trying to get an overall assessment.

    Thank you in advance and best regards.

    Hello

    You can monitor the health of a process either a script or a compiled program. If you are wanting more detailed metrics using a custom plugin brings together the like this.

    Agents collect metrics and events and pass them on to the server, which then inserts into the database. Without going through this channel is dangerous because you speculated and will lead to very bad results. Agents can collect the log as an event entries. There are a few default plugins that can do this and you can also write your own plugin (much easier than it sounds) to collected the lines in the journal.

    So the simple answers are 'Yes you can monitor a process and logs' and 'no. do not bypass the server.

  • ORA-01034 for users other than the oracle

    Hello.

    I'm having a problem trying to connect via SQLPLUS with users that aren't, user oracle t. Instance of database is mounted, open and working fine, the listener is also running. I undersigned, m able to connect without any problem with the user oracle as follows:


    [oracle@LX-TSC2 admin] $ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 08:30:44 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 10g Release 10.2.0.4.0 - Production

    SQL >

    But if I try with another user of linux, I get errors:


    [metro_ctl@LX-TSC2 ~] $ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 08:31:58 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    ERROR:

    ORA-01034: ORACLE not available

    ORA-27101: shared memory realm does not exist

    Linux error: 2: no such file or directory

    ORACLE_SID, ORACLE_HOME, path are already defined as user metro_ctl environment variable:

    [metro_ctl@LX-TSC2 ~] $ echo $ORACLE_SID

    TSC

    [metro_ctl@LX-TSC2 ~] $ echo $ORACLE_HOME

    /Oracle/product/10.2.0/Db_1

    [metro_ctl@LX-TSC2 ~] $ echo $PATH

    /home/metro_ctl/fuentes/java/classes:/home/metro_ctl/fuentes/java/lib/classes12.zip:/home/metro_ctl/fuentes/java/bcprov-jdk14-128.jar:/usr/java/j2sdk1.4.1_01:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/metro_ctl/bin:.:/ Oracle/product/10.2.0/Db_1:/Oracle/product/10.2.0/Db_1/bin:/Oracle/product/10.2.0/Db_1/lib:/Home/metro_ctl/pipe:/Home/metro_ctl/bin

    I am able to connect seamlessly with the user metro_ctl if I pointed out that SID to the sqlplus:

    [metro_ctl@LX-TSC2 ~] $ sqlplus metro_ctl/metro_ctl@TSC

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 08:34:42 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 10g Release 10.2.0.4.0 - Production

    SQL >

    But I n, t want specified SID since he is already specified in the ORACLE_SID environment variable, I want to open a session by simply using "sqlplus metro_ctl/xxx".

    In case of need, I paste the following text:

    [oracle@LX-TSC2 admin] $ ps - ef | grep pmo

    Oracle 24463 1 0 06:32?        00:00:00 ora_pmon_TSC

    [oracle@LX-TSC2 admin] $ cat tnsnames.ora

    tnsnames.ora # Network Configuration file: /oracle/product/10.2.0/db_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    TSC =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = TSC)

    )

    )

    [oracle@LX-TSC2 admin] $ cat listener.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = TSC)

    (ORACLE_HOME = oracle/product/10.2.0/db_1)

    (= Extproc PROGRAM)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

    )

    )

    [metro_ctl@LX-TSC2 ~] $ tnsping TSC

    AMT Ping utility for Linux: release 10.2.0.4.0 - Production on 26 October 2013 08:37:56

    Copyright (c) 1997, 2007, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TSC)))

    OK (0 msec)

    Any help will be be appreciated.

    Hello.

    I finally solved my problem. I would like to thank to all the people who tried to help me with my problem. I am now able to use sqlplus without using the SID at the end:

    metro_ctl@LX-TSC2$ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 13:41:51 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 10g Release 10.2.0.4.0 - Production

    SQL > select * from cat where rownum<>

    TABLE_NAME TABLE_TYPE

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

    LIFE

    I resolved to do the following steps:

    1)Log on as root and change permission.
    bash-3.00$ su Password:
    # umask 022
    # cd $ORACLE_HOME
    # chmod 755 *
    # cd $ORACLE_BASE/admin/$ORACLE_SID
    # chmod 755 *
    # cd $ORACLE_HOME/bin
    # chmod 6751 oracle
    # exit
    
  • How can I disable "new messages" notifications for folders "other than" the Inbox?

    I have set up several folders to intercept mail that isn't a priority by using 'filters '.

    Unfortunately, it seems the new sounds of notification of mail for all folders. He's wasting my time to stop what I'm doing in order to check mail in NON-priority records.

    Example: I was warned just for an e-mail to my "junk e-mail" folder

    If this can be done now, it must be. It should be an option to set prevent or notify for each individual file.

    Using the module FiltaQuilla, you get to choose the action didn't warn
    As you use the filter to move you can add this action

  • Another possibility to communicate with the web service other than the SOAPS in Adobe Reader

    Hi team

    It is another alternative method to communicate with the web service other than the SOAPS using Java script in Adobe Reader.

    Thank you

    Bala

    Yes, you can use FDF/XFDF to send data to the server and report information in the document. Take a look at the Doc.submitForm () method using the FDF/XFDF parameter: DC-Acrobat SDK Documentation - Doc.submitForm () you'll need fields for send/receive form data, but these can be hidden.

  • How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    Dreamweaver is a tool, not an install Android of web authoring tool.

  • How can I farm Metro application other than by using the Task Manager?

    How can I farm Metro application other than by using the Task Manager? If there is no way, please add a close button, Microsoft.

    Hello

    ·          What version of the operating system is running on your computer?

    Alternatively, press ALT + F4 to close the application.

  • Windows xp for a Dell c400 install on all the computers other than the particular model?

    Windows xp for a Dell c400 install on all the computers other than the particular model?  For example, a Dell inspiron 2200 or 1100 or bridge or Compac.

    Hi sammytate,

    If you have a Windows XP installation disc, you can install it on all computers, regardless of the brand & model computers.

    However, the product key that comes with the only usable installation disc on a particular computer.

    Hope the helps of information.

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?

    For example, a border: a black line with a width of 1, then a transparent line with a width of 5. Inside, it's the content pane.

    In JavaSE, there seems to be for the JFrame paintComponent() method to realize the effect.

    I can't see what you're trying to do now: it's a little trickier. You need stage.initStyle (StageStyle.TRANSPARENT), and I think you have to imitate the transparent part of the border by the presence of a second vessel inside the root container, properly positioned.

    Something like:

    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    
    public class CustomBorderExample extends Application {
    
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
    
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
    
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final Button closeButton = new Button("Close");
        mainContainer.getChildren().add(closeButton);
        closeButton.setOnAction(new EventHandler() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
          }
        });
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      }
    
      public static void main(String[] args) {
      launch(args);
      }
    }
    
  • How to better convert 01:56 and not lose quality other than the 4 K to 2 k

    If I take a 4 K produce and convert/low res to 2 k by 2 k, importing in a time line am I lose quality other than the 2 k low res? Is it bad for the film? Does make a difference if the position would give me a 2 k vs file to me? It's a feature and I need lower res that it creates a DCP. so I'm concerned about quality. And is it all still do not lose quality on import and export. It seems that I lose 15GB.

    YYou are reducing the resolution, but you're not really lower the quality. There should be no difference between you do it or someone else do it. The file will be much lower in 2K 4 K. It is to be expected.

  • PXI-8250 in one frame other than the 1042/1045 or PXI-1044?

    The PXI-8250 will work at any level in one frame other than the 1042/1045 or PXI-1044?

    Hi djfrye.

    The PXI-8250 can only be used in the 1042 / q 1042/1045.  It will not work in the PXI-1044.

    Good luck with your application!

  • I just bought a 6 d. is it possible to use the grid in other than the auto mode?

    I just buy a 6 d.  Is it possible to use the grid in other than the auto mode?  Also, is there a way to use the self-timer in other than the auto mode?

    Thank you very much. I look forward to your comments.

    I have to assume that your camera came with a manual you need to rely on. In my manual for my 7 d Mark 2 the index near the end of the manual lists the applicapable pages for whatever this is relating to the use or other people. Grid is under G, Self Timer is under S and called "self-timer."

    If you use a computer based pdf to see the info it will probably be several pages listed, but you can click on a page number to get to it rather than scroll to it.

  • can I install programs on one physical drive other than the drive that contains the operating system Vista

    My hard drive crashed and I didn't do a reinstall full Vista no problem here other than do not pay attention, I installed the operating system on one 80 GB disk other than the new 320 gig which was. After the new facility and all new updates, I have 25 GB of free space. I would like to know if I can install new programs on my drive d: and no filling of drive c: for the ability

    Hello

    Thanks for posting this question in the Microsoft Community Forums.

    I see you want to know if you can install programs on a drive with no operating system.

    I wish to inform you that this is possible with only specific programs, which give the user an option to choose where the program is installed.

    When a program is installed, it runs in program files, which lies in the operating system drive and can not be moved elsewhere.

    Another reference:

    Microsoft does not support changing the location of the program files

    http://support.Microsoft.com/kb/933700

    I hope that you found this information useful.

    Please get back to us if you have any other questions about windows.

  • When I right click Start button select Explorer, I can decide what folder is open other than the start menu?

    When I right click Start button select Explorer, I can decide what folder is open other than the start menu and dozens of file extensions?

    Can we just my computer with the list of drives?

    thanx

    Hello

    I suggest you to follow these steps and check if that helps:

    a. right click on the Windows Explorer icon

    b. in the menu that appears, click Properties.

    c. in the target box, add the command line switch ' / root ' to the "% SystemRoot%\Explorer.exe" command, using the startup location that you want.

    d. for example, if you want Explorer of Windows to start at the root of drive C, edit the command as follows:
    % SystemRoot%\explorer.exe/root, C:\

    It will be useful.

Maybe you are looking for