Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Is this practical?

    Hey, any input appreciated.

    I am putting together a Live Auction site using asp and SQL 2000. How it
    should work is bidders enter bids against each other live in real time (not
    like ebay) and the page updates in real time with this information.

    I have implemented this using a flavor of remote scripting that uses hidden
    Iframes to add and call data from the SQL DB, as well as update the page
    without reload using Javascript and the DOM. (The child Iframe page uses
    dynamically generated javascript to update hidden <div> containers in the
    parent page.)

    I used this method instead of MS remote scripting, or xmlhttp for browser
    compatibility issues.

    My question is how practical is this setup with many/multiple users involved
    as the hidden Iframe that calls the data (using a standard Dreamweaver
    recordset) has to call to the SQL DB once every second (for all the users)
    to get the bids in real time and update and synch the parent pages.

    Has anyone out there done anything like this and is there perhaps another
    way to do this that may be better suited?

    Thanks in advance
    TJ


    TJ Bristol Guest

  2. Similar Questions and Discussions

    1. OOP and CFCs - practical concepts needed + Mach-II
      Mach-II is "in" for a number of good reasons. I've read the CF "Developing CF MX Apps" and some online tutorials on CFC's Mach-II. It was...
    2. practical use of #isectnormal
      Hi, I've been trying to make an object adhere to the surface of another object, and further, orient itself to the normal of whatever polygon it...
    3. Practical Limits on File Size
      Obviously it depends hugely on the structure of the databases and how they will be used, but has anyone got some rough rules of thumb about how big...
    4. Are stored procedures practical using ASP only?
      Hello, The aspfaq.com seems to really push stored procedures, and I hear the same advice here all the time. So I want to take the advice. Is...
  3. #2

    Default Re: Is this practical?

    Sounds fine. But -
    1. Use a stored procedure to get the records. That way the database is
    guaranteed to have a cached execution plan, which helps performance. (MS
    SQL is quite sturdy, though, so don't worry too much.)
    2. Use the GetRows() method rather than keeping the data in the recordset
    and using a repeat region. It's a bit more work up front, but it keeps the
    database connection time to a minimum and vastly improves overall
    throughput. Go to [url]www.4guysfromrolla.com[/url] for good examples of using
    GetRows() to stream your recordset into an array.

    Quick outline:
    <%
    Set myRS = Server.CreateObject("ADODB.Recordset")
    ....snip...
    myRS.Open()
    If NOT myRS.EOF Then
    MyList = myRS.GetRows()
    LIST_MAX = UBound(MyList,2)
    Else
    LIST_MAX = -1
    End If
    myRS.Close()
    Set myRS = Nothing
    'List your fields in order from left to right
    I_Name = 0
    I_Bid = 1
    %>

    The "repeat region" for a list like this:
    <%For X = 0 To LIST_MAX%>
    <tr>
    <td><%=MyList(I_Name,X)%></td>
    <td><%=MyList(I_Bid,X)%></td>
    </tr>
    <%Next%>
    "TJ Bristol" <bristoll@NOSPAM.vdot.net> wrote in message
    news:cvfuvn$1m5$1@forums.macromedia.com...
    > Hey, any input appreciated.
    >
    > I am putting together a Live Auction site using asp and SQL 2000. How it
    > should work is bidders enter bids against each other live in real time
    (not
    > like ebay) and the page updates in real time with this information.
    >
    > I have implemented this using a flavor of remote scripting that uses
    hidden
    > Iframes to add and call data from the SQL DB, as well as update the page
    > without reload using Javascript and the DOM. (The child Iframe page uses
    > dynamically generated javascript to update hidden <div> containers in the
    > parent page.)
    >
    > I used this method instead of MS remote scripting, or xmlhttp for browser
    > compatibility issues.
    >
    > My question is how practical is this setup with many/multiple users
    involved
    > as the hidden Iframe that calls the data (using a standard Dreamweaver
    > recordset) has to call to the SQL DB once every second (for all the users)
    > to get the bids in real time and update and synch the parent pages.
    >
    > Has anyone out there done anything like this and is there perhaps another
    > way to do this that may be better suited?
    >
    > Thanks in advance
    > TJ
    >
    >

    CMBergin Guest

  4. #3

    Default Re: Is this practical?

    Thanks for that, sounds like the winner.

    TJ


    TJ Bristol Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139