webdork
asked on
Display message every 10 record
I want to show a graphic amidst my recordset every 10 record
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
angel.
Can that be done without Refreshing the page?
Can that be done without Refreshing the page?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've got it. Thanks Angel, as always you make me think instead of giving the answer. Thanks Carrzkiss for your efforts, I dont think you quite understood the question.
<%
counter = 1
While ((Repeat1__numRows <> 0) AND (NOT rsFAQ.EOF))
%>
<%
IF counter > 10 THEN
counter = 1
END IF
%>
<div class="largeheader"><% IF LastCat <> rsFAQ.Fields.Item("FAQType ").Value THEN response.write rsFAQ.Fields.Item("FAQType ").Value END IF %></div>
<div class="faqbold"><%=(rsFAQ. Fields.Ite m("Questio n").Value) %>
</div>
<div class="faq">
<%=(rsFAQ.Fields.Item("Ans wer").Valu e)%></div>
<%IF counter = 10 THEN%>
<a href="faq.asp#top"><img src="images/go_top.gif" alt="To Top" width="19" height="19" border="0"></a>
<%END IF%>
<%
Repeat1__index=Repeat1__in dex+1
Repeat1__numRows=Repeat1__ numRows-1
LastCat = rsFAQ.Fields.Item("FAQType ").Value
counter = counter +1
rsFAQ.MoveNext()
Wend
%>
<%
counter = 1
While ((Repeat1__numRows <> 0) AND (NOT rsFAQ.EOF))
%>
<%
IF counter > 10 THEN
counter = 1
END IF
%>
<div class="largeheader"><% IF LastCat <> rsFAQ.Fields.Item("FAQType
<div class="faqbold"><%=(rsFAQ.
</div>
<div class="faq">
<%=(rsFAQ.Fields.Item("Ans
<%IF counter = 10 THEN%>
<a href="faq.asp#top"><img src="images/go_top.gif" alt="To Top" width="19" height="19" border="0"></a>
<%END IF%>
<%
Repeat1__index=Repeat1__in
Repeat1__numRows=Repeat1__
LastCat = rsFAQ.Fields.Item("FAQType
counter = counter +1
rsFAQ.MoveNext()
Wend
%>
webdork:
Strange, But I cannot get your code to work?
No error, just will not display nothing to the page.
Source code shows nothing...
And sorry that I did not understand it fully.
But would like to see what the working script does though.
It is always a good thing to continue learning.
Carrzkiss
Strange, But I cannot get your code to work?
No error, just will not display nothing to the page.
Source code shows nothing...
And sorry that I did not understand it fully.
But would like to see what the working script does though.
It is always a good thing to continue learning.
Carrzkiss
ASKER
carrzkiss:
you can see the page here: http://206.196.20.10/frenchgold/faq.asp
I changed the counter display and reset to 5.
WD
you can see the page here: http://206.196.20.10/frenchgold/faq.asp
I changed the counter display and reset to 5.
WD
nice layout. Beautiful work.
But what am I looking for on the page?
I know that you have this:
<%IF counter = 10 THEN%>
<a href="faq.asp#top"><img src="images/go_top.gif" alt="To Top" width="19" height="19" border="0"></a>
<%END IF%>
But, I am lost as to what it is suppose to be doing here.
But what am I looking for on the page?
I know that you have this:
<%IF counter = 10 THEN%>
<a href="faq.asp#top"><img src="images/go_top.gif" alt="To Top" width="19" height="19" border="0"></a>
<%END IF%>
But, I am lost as to what it is suppose to be doing here.
ASKER
Thanks,
I changed the condition to IF counter = 5. So the small gray upointing graphic (this is the classic to the top link) displays every 5th FAQ.
I changed the condition to IF counter = 5. So the small gray upointing graphic (this is the classic to the top link) displays every 5th FAQ.
Every 10 Records......
OK, I feel foolish now. Dag.. Totaly blew on that one.
Good concept, Good idea as well.
I am so sorry that I did not understand the question, and I am so sorry that I did NOT read it properly.
I thought it read : Display record every 10 seconds.
Sorry.
Keep up the great job and may the site be a success, as it looks like it already is one.
Carrzkiss
OK, I feel foolish now. Dag.. Totaly blew on that one.
Good concept, Good idea as well.
I am so sorry that I did not understand the question, and I am so sorry that I did NOT read it properly.
I thought it read : Display record every 10 seconds.
Sorry.
Keep up the great job and may the site be a success, as it looks like it already is one.
Carrzkiss
If you are getting the information from a database (Each Record to display)
Then this is possible.
Give me a minute, and I will provide some code for you.
If you are not wanting the Page to Fresh then that could be a problem.
Carrzkiss