Hold The Position On Next Page
We have a page that loads a long list of things. Each row has an onclick where you can open a window for more information. When you do that the parent page refreshes to the top of the page....so if you were near the bottom, you would have to scroll back down to get back to where you were. I would like the parent page to hold its position when the child opens.
View Replies
ADVERTISEMENT
I've just gone to Google and there's a link saying "add world cup live
scores..."
I clicked on that link and there are a whole lot of boxes containing content
that I can pick up and drag around, changing their relative position on the
screen.
Fantastic - but how do they do this (were can I read up on this?)
View Replies
View Related
I have an asp page that shows dynamic data. I have it refreshing every 10 seconds. It is a very long page and when it refreshes it goes back to the top. I want the page to refresh and keep its same position.
View Replies
View Related
I can extract var from db OK for one page but I need to store var to compare about 5 pages later. I have tried dim but only works on second page. I do not close the record set. I suspect I need to declare var global but how and where?
View Replies
View Related
i have a dynamic drop list, i need to hold the value if the seesion matches the current item, but its not quite working.
Code:
<select name="ByUser" style="width=150px">
<option value="0">Return All</option>
<% rs.Open sqlA, conn
do until rs.EOF
%>
<option value="<%= rs("R_ID") %>" <% If rs("R_ID") = Session("ByUser") Then Response.Write("selected")%>><%= rs("R_Name") %></option>
<%
rs.MoveNext
loop
rs.close
%>
</select>
View Replies
View Related
Is there a limit to the length of the url? Is it browser dependent?
View Replies
View Related
You may or may not be aware of $data = <STDIN>; in Perl which basically takes all the data posted from a HTML form and puts it in to one string variable so that you can manipulate it. What's the equivalent/how would you do this in ASP?
View Replies
View Related
i have managed to get my paypal ipn script to login my webhost to sandbox, however i have had to do this via httppost.
now my problem is, the script moves on, when still loggin in how can i get my script to wait a moment, chill and then proceed as normal like it would if i was live.
View Replies
View Related
I want to use an array to either refer to a recordset or hold the recordset. For example, I have this:
dim rows(5)
rows(0)= rs_manager_0.recordcount
rows(1)=rs_manager_1.recordcount
rows(2)=rs_manager_2.recordcount
rows(3)=rs_manager_3.recordcount
rows(4)=rs_manager_4.recordcount
Can I change it to this:
recordset_names(5)
recordset_names(0)=rs_manager_0
recordset_names(1)=rs_manager_1
recordset_names(2)=rs_manager_2
recordset_names(3)=rs_manager_3
recordset_names(4)=rs_manager_4
for i = 0 to ubound(recordset_names)response.write (recordset_names(i).recordcount)next
The errors is: Object doesn't support this property or method: 'recordcount'
And if I put quotes in the array dim :
recordset_names(0)="rs_manager_0"
The error is: Object required: 'rs_manager_0'
Its not that I'm too lazy to write out the 4 recordset names each time. Th eproblem is that the number of recorsets is variable and there are a lot of tehm , hence I want to refer to the with some simple looping script.
View Replies
View Related
I'm querying a table and the column has 6 positions. I need to check if the 5th position is a 2,3,6 or 7. If so I want to set a variable = "Y". Can someone help me out with this?
View Replies
View Related
I am using position feature for images...although its placing the image on the HTML file using the top left corner of the image. Anybody know how to make it use the center of the image?
<img src="image.gif" style="position: absolute; left: 54; top: 34">
View Replies
View Related
I have a access db and I want to pull some info out of it with VBScript. How can I specify a starting record?For example, I want to start at the 15th record and pull everything beyond that out.
View Replies
View Related
When a page is opened is there a way to set focus of the cursor to a named input. I want the cursor to be in the input box when the page is opened.
View Replies
View Related
After I read in a value from a table i need to read in the last letter of the value and check if it has an "s" as its last letter, so that i can display either ' or 's.
Does anyone know how code to view the last letter of the value or move the variable into javascript so that I can manipulate it from their?
View Replies
View Related
I have been working on this site for the last couple of weeks and i am now in the process of testing and have found a problem.
Basically it is on my jscript function. I have written that if the value is >= 2000 do something else do something else, which is fine with the exception that the value isn't always going to go up in 1000's (sometimes it will be 1-10 others 500-5000 others 1000 - 10000[these values are generated within select tags]).
Basically i am wanting to know is there any way that i can use the select tag to work out the position from within the tag. For example if the position >= 2nd in list do this else do something else.
View Replies
View Related
I have put serveral panel controls within a page, each of them matching to a action defined by buttons, so I want to fix all panels in one place( they already have same size, but different left, top values), how can I do it (in code, if I do it in desgn, is there a way to put the panels in different "layers" so the contained controls will not interupt with each other)?
View Replies
View Related
I use an array of elements and I want to know the position of a given element in my array
I know the filter function that allows to determine if the element i look for is in the array but this function doesn't allow me to know its position.
View Replies
View Related
how do i find the occurence and position of a variable in a csv string. e.g. how do i find "hello" in hi,who,where,how,hello,greetings,xmas,etc. The starting position and if it occurs ? I tried using instr but cant seem to get it right.
View Replies
View Related
I am having a prob with getting for example, ASP Free Forums > Programming > etc, to display properly. I can get it to work sort of but need to be able to read in a value and be able to change it before its displayed.
It works on the first page but when going to other pages it doesn't. Also when going back to the original page, topic.asp where it works, from view topic the formatting disapears which is a mystery to me. Here is the code that gets it to work on the topic.asp page:section = Trim(Request("Section")) Code:
View Replies
View Related
The code below takes the script name of a page (which is always an asp file) and substitutes the asp extension with html and then inserts the file in the <frame> tag.
This code works file for a url such as www.somesite.com/file.asp But if the url includes an index eg www.somesite.com/file.asp#position1 how do I get the #position1 added to the file name that is used in the <frame> tag? Is there a server variable for # info? Code:
View Replies
View Related
How can I delete an specific position within a vector?I have a list of e-mails to be sent but there's duplicated values which I'd like to remove.I added a function that locates the duplicates and tells the vector position I can find them, but don't have a clue how to remove them.
View Replies
View Related
Im attempting to grab results from a stored procedure and toss them in a recordset. Unfortunately, I cannot open a recordset that can move forward and backward. I have tried to simply chance the rs.CursorType but this results in a connection timeout..
Code: ....
View Replies
View Related
how to change the ordinal number of a field and the field datatype in Access using ASP?
View Replies
View Related
Does anyone, know how to control the start-up position of a browser window, such as centre screen, top left, etc....
View Replies
View Related
i have a string and want to find the position of the first '-' in it.
example i have :
"RCD-0-183"
I need to output : 0-183
View Replies
View Related
Does anyone know how to change the ordinal number of a field and the field datatype in Access using ASP?
View Replies
View Related
I'm building a text file from a database table using the ASP
Write Method and would like to position the cursor in a specific
column position before writing the fields. As I loop through and write
the fields into strings of rows, I want to be able to put field1 in
row1/column position1, field2 in row1/column position10,.....etc.
I've included the basic code to write a string of text. I understand
the process of how to write the fields and loop, etc. If you would be
kind enough to just show me in there the syntax for positioning the
cursor before the write I will then apply it to my code:
View Replies
View Related
I have four select options on my page. I want to display some text for each selection of my options. This display shoould be in the previous <td>. Here is the code:
View Replies
View Related
I have an asp form. The page is kind long. After user scroll down and make some change on the items, the form needs to be refreshed with new selections (some controls may disabled based on the selection).
My question is, each time after the refresh, the form always go back to the top position. Since the form is quiet long. User may get frustrated if he/she have to scroll down the page to find the current position each time after make a selection change. Is there a way to remember the document postion before refresh the form, and reset the position after the refresh? I guess some javascript code may be able to do it. But so far I have no clue at all.
View Replies
View Related
i am designing a search engine, you select the search options from five choices in a drop down box, each option reveals a table, but the tables have fixed positions on the html page.
i need it so that if only one option is picked to search and it is the last option on the drop down list, that it will appear at the top of the page? i dont have a clue what type of function to write to do this or what techniques will be involved!
View Replies
View Related
Have an app which dynamically creates table rows depending on records, these can be several hundred (don't ask). Hence a very long page at time. Each row includes a hyper link to a new page, and a link back to the original page.
Is there any method (maybe via js) where on leaving the second page l can redirect the browser to the table row the end user clicked on? Hence the bookmarking. Can do this via Visual Basic on the desktop app, but can't work it out on the web app.
View Replies
View Related
I created a web page from Excel2000, using "Save as web page..."...Publish
function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.
How can get the data on the excel file using ASP from server side?
For example, the value of Cell(1,2), Cell(2,3)....
View Replies
View Related
What I want to be able to do is create a user control that will display an
entire page page within it. Does anyone know how to do this or better yet
have any same code?
View Replies
View Related