Do any free iPage web hosting sites not ban phishers?

Click Here To View All Answers...

Got a question, hope someone can answer... Do any free iPage web hosting sites not ban phishers? Thanks for any answer or 2. My 2nd question... Hi everybody. This is my first time posting for help on the Internet for help with any of my coding. Here goes:.

I have a large table with several rows (128) that is too big to fit on one page, so I have a vertical scrollbar. Each of these rows has a button on it to Enable/Disable the item in the row when that button is pressed. When the button is pressed, the text displayed within it changes based on the state of the item in the row (e.g. Enabled -> Disabled)..

The problem I have is, if the user scrolls down, to say item #110, and then presses the button to change the state, the list refreshes (so that the button's text can change) to the top of the list: so that item #1 is at the top, and the scrollbar is returned to the very top..

Is there a way to save the user's position in the scrollable list, so that when it refreshes, it is in the same place again before the user clicked the button?.

I have seen where if you scroll down on a long page, click to navigate to another page, and then click Back to the previous page, you will be returned to the same position you had scrolled to previously. I think this must just be a feature inherent in the browser. However, this is the functionality that I want..

Any help with this would be GREATLY appreciated!!.



Comments (4)

Good question... I dunno what is the answer. I'll do some investigation and get back to you if I bump into an good answer. You should email the people at iPage as they probably can answer it..

Comment #1

Another thing is to have the user change all of the ones he wanted then have them push the enable button. sure it will refresh but all of the ones they wanted changed would be done already..

Or, if this is done with querying a db, then you could set it so the very last # they checked would be saved in the POST and then have what giz said with the links, and then have the code go straight to it...

Comment #2


That sounds like what I want to do? I'm just not sure what is going on..

Here is the code I tried (within my table):.

<%pos = rs.Fields("F_NUM").Value%>.

<td> <table border="0" cellspacing="0" cellpadding="0" align="center" valign="center" height="40" width="125" class="button<%if (Server.HTMLEncode(rs.Fields("ENABLED").Value)="False" and Server.HTMLEncode(rs.Fields("FAILED").Value="True")) then %>_dead<%end if %>" style="padding:0,0,0,0">.

<td align="center" bgcolor="#<%=buttonbg%>" class="fault_text" onClick="<% if Session("Using_IOS") and not dead and not (Server.HTMLEncode(rs.Fields("ENABLED").Value)="False" and Server.HTMLEncode(rs.Fields("FAILED").Value="True"))then %>window.navigate('tfis_admin_whole.asp?myco=<% response.write myco %>&Fault_Code=<%=rs.Fields("F_NUM").Value%>&Fault_Number=<%=rs.Fields("FG_CODE").Value%>&name=<%=pos %>')<% end if %>"><font face="Arial" size="5"><%=mybu%></font>.

<a name="<%response.Write(pos)%>"></a></td>.


That code doesn't do anything, but it at least loads the page. I'm not sure where to put the href part in, and how that actually works. Also, I don't know if I put the "a name" part in the right place? I just tried to stick in in the code for the button, so that it would run when the button is pressed. F_NUM is a unique value for each row, so I thought I would use that as my counter (123 in your example)...

Comment #3

The <a name> would go right before each and everyone of you buttons. the name would equal the button id that it is enableing...

Comment #4

Thanks for the help everyone, but I couldn't get the code to work leaving all of it in one file..

I ended up breaking the list up into 12 asp files, with each of the pages displaying 11 records of the 128. Then I was able to add in a row at the bottom of each page to cycle through Next, Previous, Beginning, and End. Then when the user presses Enable/Disable, it Enables or Disables that specific line, and refreshes only that page of 11 records (so it appears to the user that the page isn't refreshing at all - just the button text & color changes). This works okay, but it's bad design, because if I ever have to change something with the way this works, I'll have to change it 12 times (copy/paste might help a little bit)...

Comment #5

This question was taken from a support group/message board and re-posted here so others can learn from it.