Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running out of resources when displaying a page

Status
Not open for further replies.

jeepxo

Programmer
Oct 1, 2002
228
CA
I have a page that allows our instructors to enter marks and comments for students in their courses. The page is displayed fine when the instructor doesn't have many students in his course. For courses where there are a lot of students, the dropdown boxes are not displayed. Aside from changing it so that I only display say 10 students at a time, is there another way that I can display this much data without running out of system resources on the client?


here is the code for it

<cfoutput query=&quot;getStudentData&quot;>
<cfset counterVariable = counterVariable + 1>
<cfset studentNumbers[#counterVariable#] = #cyb_student_id#>
<cfset studentComments[#counterVariable#] = #cyb_strengths#>
<tr>
<td bgColor=yellow><div align=center><strong>Student Name</strong></div></td>
<td bgColor=yellow><div align=center><strong>Midterm Mark</strong></div></td>
<td bgColor=yellow><div align=center><strong>Final Mark</strong></div></td>
<td colspan=2 bgColor=yellow><div align=center><strong>Instructors Comments</strong></div></td>

</tr>
<tr>
<input type=hidden name=&quot;studentNumber_#counterVariable#&quot; value = #cyb_student_id#>
<input type=hidden name=&quot;courseName_#counterVariable#&quot; value = '#cyb_course_desc#'>
<td><input type=hidden name=&quot;LastName_#counterVariable#&quot; value=&quot;#cyb_last_name#&quot;><input type=hidden name=&quot;FirstName_#counterVariable#&quot; value=&quot;#cyb_first_name#&quot;><FONT size=4 color=mediumblue>#cyb_last_name# #cyb_first_name#</font></td>
<td><div align=center><input type=text name=&quot;Midterm_#counterVariable#&quot; value=&quot;#cyb_Midterm_mark#&quot; size=10></div></td>
<td><div align=center><input type=text name=&quot;FinalMark_#counterVariable#&quot; value=&quot;#cyb_final_mark#&quot; size=10></div></td>
<td colspan = 2><div align=center><textarea name=&quot;comment_#counterVariable#&quot; cols=20>#studentComments[&quot;#counterVariable#&quot;]#</textarea><a href='Comments.asp?id=#cyb_student_id#&oid=#oid#&course=#course#'><img src=&quot;images/commentButton.png&quot;></a></div></td>

</tr>
<tr>
<td bgColor=yellow><strong><font size=2><div align=center>Works<br>Independently</div></font></strong></td>
<td bgColor=yellow><strong><font size=2><div align=center>Team Work</div></font></strong></td>
<td bgColor=yellow ><strong><font size=2><div align=center>Organization</div></font></strong></td>
<td bgColor=yellow ><strong><font size=2><div align=center>Work Habits</div></font></strong></td>
<td bgColor=yellow><strong><font size=2><div align=center>Initiative</div></font></strong></td>
</tr>
<tr>
<td><div align=center><select name=&quot;worksIndependent_#counterVariable#&quot;>
<option value=&quot;E&quot; <cfif #cyb_works_independent# EQ &quot;E&quot;> selected </cfif>>Excellent</option>
<option value=&quot;G&quot; <cfif #cyb_works_independent# EQ &quot;G&quot;> selected </cfif>>Good</option>
<option value=&quot;S&quot; <cfif #cyb_works_independent# EQ &quot;S&quot;> selected </cfif> >Satisfactory</option>
<option value=&quot;N&quot; <cfif #cyb_works_independent# EQ &quot;N&quot;> selected </cfif>>Needs Improvement</option>
</select></div>
</td>
<td><div align=center><select name=&quot;teamWork_#counterVariable#&quot;>

<option value=&quot;E&quot; <cfif #cyb_teamwork# EQ &quot;E&quot;> selected </cfif>>Excellent</option>
<option value=&quot;G&quot; <cfif #cyb_teamwork# EQ &quot;G&quot;> selected </cfif>>Good</option>
<option value=&quot;S&quot; <cfif #cyb_teamwork# EQ &quot;S&quot;> selected </cfif> >Satisfactory</option>
<option value=&quot;N&quot; <cfif #cyb_teamwork# EQ &quot;N&quot;> selected </cfif>>Needs Improvement</option>
</select></div>
</td>
<td><div align=center><select name=&quot;organization_#counterVariable#&quot;>

<option value=&quot;E&quot; <cfif #cyb_organization# EQ &quot;E&quot;> selected </cfif>>Excellent</option>
<option value=&quot;G&quot; <cfif #cyb_organization# EQ &quot;G&quot;> selected </cfif>>Good</option>
<option value=&quot;S&quot; <cfif #cyb_organization# EQ &quot;S&quot;> selected </cfif> >Satisfactory</option>
<option value=&quot;N&quot; <cfif #cyb_organization# EQ &quot;N&quot;> selected </cfif>>Needs Improvement</option>
</select></div>
</td>
<td><div align=center><select name=&quot;workHabits_#counterVariable#&quot;>

<option value=&quot;E&quot; <cfif #cyb_work_habits# EQ &quot;E&quot;> selected </cfif>>Excellent</option>
<option value=&quot;G&quot; <cfif #cyb_work_habits# EQ &quot;G&quot;> selected </cfif>>Good</option>
<option value=&quot;S&quot; <cfif #cyb_work_habits# EQ &quot;S&quot;> selected </cfif> >Satisfactory</option>
<option value=&quot;N&quot; <cfif #cyb_work_habits# EQ &quot;N&quot;> selected </cfif>>Needs Improvement</option>
</select></div>
</td>
<td><div align=center><select name=&quot;initiative_#counterVariable#&quot;>

<option value=&quot;E&quot; <cfif #cyb_initiative# EQ &quot;E&quot;> selected </cfif>>Excellent</option>
<option value=&quot;G&quot; <cfif #cyb_initiative# EQ &quot;G&quot;> selected </cfif>>Good</option>
<option value=&quot;S&quot; <cfif #cyb_initiative# EQ &quot;S&quot;> selected </cfif> >Satisfactory</option>
<option value=&quot;N&quot; <cfif #cyb_initiative# EQ &quot;N&quot;> selected </cfif>>Needs Improvement</option>
</select></div>
</td>

</tr>
<tr>
<td colspan=5 bgColor=black>&nbsp;</td>
</tr>
</cfoutput>

 
changed all the drop down boxes to radio buttons instead to reduce the load.

Thanks anyway
 
All your holding is text. Try adding 15 kb of memory or get faster hardware.
 
wonderful sarcastic response thankyou.

It's beeing served from a quad processor PIII Xeon with 2 gig of ram, thats not the problem.

The problem occurs on Win 9X machines with either less then 64 Mb ram or having multiple windows open.

The problem is not on the server end, the problem is on the client end and how Win 9X uses shared memory (as opposed to real operating systems like the NT kernel with separate memory)

As for only displaying text I suggest you look at the code again. Drop boxes have never simply been text, and that is where the problem laid. Drop boxes are resource pigs, I changed them to radio buttons (not as pretty but functional) and the page works fine under 95 with 16 MB ram &quot;Every day is like a precious gift, you have to make it count&quot; James Birrell 1994-2002
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top