Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Wiiver's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    2
    Downloads
    0
    Uploads
    0

    Can an ajax response be triggered by a separate file?

    Hello,

    I am considering designing a program, but as of now know little about ajax. I just want to know if what I am looking to do is feasible before I put a lot of effort into learning ajax. Basically, I want one file to make a request, but I don't want the request to be returned until another file is updated. How I see it working would be as follows:

    1) User loads a page which gathers and displays initial data. A request for an update is sent to a processing file.
    2) The processing file receives the request, but does not gather or return data
    3) A third file, accessed by administration, is used to update information. When the updating form is submitted, a database is updated using the same processor file being used by the first file.
    4) Once the database is updated, all pending requests from users are answered.
    5) The user's file sends a new update request. This cycle continues until the user exits the page.

    Like I said, I know little to nothing about ajax. I can program in HTML and PHP and perform queries on databases using PHP. I can get everything to do what I want it to except for updating. The only alternative I see is to have a page request information at regular intervals. However, this would cause lag in results and possibly unnecessarily update. So my questions are:

    1) Is this feasible with ajax (or any other language)?
    2) How much strain would it put on the server (assuming 5-25 users)
    3) Where can I find more information?

    Any amount of help will be greatly appreciated.

    Thanks,
    Clinton

  2. #2
    sun
    sun's Avatar
    Guest
    Hello,

    I have done similiar things with the ASP AJAX framework; it's a bit different but can accomplish your goals. One thing though, I feel that your system is overly complex. There is probably a better solution.

    Some things to take a look at to help you along:
    Web services.
    Database pooling.
    Possibly TCP connections if you want an efficient counter to pooling.

  3. #3
    sun
    sun's Avatar
    Guest
    Hello,

    I have done similiar things with the ASP AJAX framework; it's a bit different but can accomplish your goals. One thing though, I feel that your system is overly complex. There is probably a better solution.

    Some things to take a look at to help you along:
    Web services.
    Database pooling.
    Possibly TCP connections if you want an efficient counter to pooling.

  4. #4
    sun
    sun's Avatar
    Guest
    Hello,

    I have done similiar things with the ASP AJAX framework; it's a bit different but can accomplish your goals. One thing though, I feel that your system is overly complex. There is probably a better solution.

    Some things to take a look at to help you along:
    Web services.
    Database pooling.
    Possibly TCP connections if you want an efficient counter to pooling.

  5. #5
    sun
    sun's Avatar
    Guest
    Hello,

    I have done similiar things with the ASP AJAX framework; it's a bit different but can accomplish your goals. One thing though, I feel that your system is overly complex. There is probably a better solution.

    Some things to take a look at to help you along:
    Web services.
    Database pooling.
    Possibly TCP connections if you want an efficient counter to pooling.

 

 

Quick Reply Quick Reply

Click here to log in


What color is our footer?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-28-2011, 05:09 AM
  2. how to get response HTML from $.ajax();?
    By Haziman in forum Discuss ASP
    Replies: 0
    Last Post: 05-21-2010, 10:32 AM
  3. how to get response HTML from $.ajax();?
    By Haziman in forum Discuss HTML
    Replies: 0
    Last Post: 05-19-2010, 07:35 AM
  4. How to get ajax response as array to php?
    By vignes in forum Discuss ASP
    Replies: 0
    Last Post: 03-28-2010, 03:03 PM
  5. Replies: 1
    Last Post: 03-29-2009, 09:00 PM

Bookmarks

Posting Permissions

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