Skip to main content
May 11, 2011
Question

Looping Problem

  • May 11, 2011
  • 1 reply
  • 532 views

Hi,

I have a table to output the entries by certain users and I have to restrict the entries per user based on a certain value selected from a drop down menu.

I am getting the value of the drop down menu through Javascript, but, I am unable to apply the condition to output just the values upto value selected.

Each entry in the table has id of the user submitted. Hence, I was looping through the table, checking the previous row id each new row id and increasing the count.

And outputing the table values based on count variable satisfying the value selected. But, it is giving an error "the Request has exceeded the Time limit".

I thought of it as a simple looping question, but, I am really confused here. Please help.

Vijayvijay77.

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 11, 2011

    You are getting the value from the dropdown using javascript.  Fair enough.  What are you doing with it, or attempting to do with it once you have it.

    May 11, 2011

    The value which I am getting from the Javascript is the value selected by the admin to display the number of messages per user.

    That value is selected by the user to show any number of messages from every user, since each user can have multiple entries in the table, so to display the table without making it large, I just have to display the top entries from each user.


    Thanks for your reply. I really appreciate it.

    Vijayvijay77.

    ilssac
    Inspiring
    May 12, 2011

    What Dan was trying to lead you towards is that JavaScript runs on the client.  ColdFusion runs on the server.  They execute at different times and different places.  How are you getting the information from the client to the server?