Advanced Search

Results 1 to 3 of 3

Thread: Need help with Reverse AJAX/Comet/Long-Polling

  1. #1
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with Reverse AJAX/Comet/Long-Polling

    Hi,
    To summarize: How do I post data to xml file on server AND update page with changes to xml file (maybe JSON) asynchronously?

    I'm a graphic designer and I'm familiar with HTML/CSS however I need help with Javascript, i've only played around with jQuery. I'm working on a browser-based call screener for radio talk shows. The client will have Call, Drop, and several other functions along with indicators for when something changes on the server/talk show system. These buttons should post data to a web server that is connected to a phone bridge/digital hybrid that's programmed with C code to control the talk show system. Yes, I know, this is way over my head. I've done a similar project that used AJAX and an iFrame that would poll the server every second. That was basically just a remote control. For a 6-12 line talk show screener, we need something more efficient. I've tried looking for samples similar to this and couldn't find anything so I need someone to help walk me through this. I know that web sockets would be most efficient but the developer writing the C-code says that the server he's working on wouldn't support it. It's a Coldfire processor and Netburner software. Does anyone know if this server would be able to support web sockets? Otherwise, I'm left to long-polling. I was hoping I could just post data to an xml or php file on the server and check that same file for changes made from the C code and update the client page with css class changes and javascript that would change text, button states and colors.

    To start simple, I just want to send 3 commands (Call, Drop, Hold) and to find out from the server if the line is in use, ringing, or on hold based on a class change and update the client page asynchronously. Eventually it will have to be specific to a phone line and will retrieve calling line ID information. I would like the call/drop buttons to submit via javascript instead of a form so that it doesn't refresh the page at each button push. The server will have several instances of the browser so that people from screen calls from different computers and will have browser-to-browser chat. Therefore people will have to log in. Again, web sockets would be ideal if it's possible. Ideally we hope this will be compatible with all browsers including mobile.

    Can anyone walk me though this or point me to someone or an example that would help?

  2. #2
    Join Date
    Dec 2013
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Out of curiosity, assuming that you get your web browser / AJAX controls operational, what will be the bridge between the C program and the web server?

    iFrames should be avoided because they do pose a number of issues over the security aspect and access, you would be better to have your AJAX poll the server for data to update a DIV element that works like an iFrame.

  3. #3
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The web server will be plugged into the phone bridge/switch core. I'm more of a graphic designer than a developer so I just handle the client side. If I can get the data to the server, the engineer/developer that designed the program does the rest.

    Of course, I had no interest in using iFrames.

Similar Threads

  1. !important in reverse?
    By CCH in forum CSS
    Replies: 0
    Last Post: 06-16-2011, 02:55 PM
  2. Reverse this example of frames?
    By lprag in forum HTML
    Replies: 0
    Last Post: 06-27-2007, 01:39 PM
  3. Polling Script
    By Markxxx in forum Looking for such a script or service
    Replies: 1
    Last Post: 12-13-2006, 09:18 PM
  4. Page Name Lenght, How long is too long
    By Timra in forum Other
    Replies: 2
    Last Post: 12-09-2006, 11:12 PM
  5. Replies: 0
    Last Post: 02-01-2005, 08:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •