Re: Dynamically Display Red Dots Using For Loop

38 views
Skip to first unread message

Gavin Cope

unread,
Jan 7, 2013, 5:38:53 PM1/7/13
to RedDot CMS Users
Remove the PreExecute tags and view source and you'll see why you get an error.
You won't be able to dynamically build red dots like that, the process order won't allow it.


On 8 January 2013 07:18, todda <todd...@gmail.com> wrote:
Help,

Does anyone know how to dynamically display reddots using a for loop?

I am trying to make a portlet for Reddot and I'm running into a snag. I have the code below to dynamically display reddots based on how many the user wishes to display. 

I am getting the Pre-Excute error screen and I'm not sure where to go from here. 

Here's the code:
<%
For i = 1 to <%stf_ToggleCount%>
   If i > 20 Then Exit For  
   response.write("<!IoRedDot_stf_Title_" & i & ">")
Next
%>

I hope that makes enough sense. If it doesn't I'd love to elaborate further. 

Thanks for your help, 
Todd 

--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/on__74ZFi-EJ.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

Stu Wilson

unread,
Jan 9, 2013, 10:27:17 AM1/9/13
to reddot-c...@googlegroups.com
Todd
 
I remembered this little piece of JS that was written by Jian Huang which might give you a base for a workable solution.  Essentially the idea is to put your reddot for each title you want to show or hide inside a DIV with an ID.  As each RedDot is always shown in the page (when activated),  the JS can then be set to hide any DIV where the ID meets a specific quantifiable value, so the user doesn't see the RedDot's that are not needed.
 
 
Stu Wilson
Reply all
Reply to author
Forward
0 new messages