Getting Index Details (eg #position) From Url
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
ADVERTISEMENT
I am uploading to a server for the first time. I believe that my server will not point to .asp pages as the start page, only .htm is this correct?
I wanted my index.asp page displayed first from the web-site by default, but have been told that I need say, an index.htm which then points to my index.asp page.
Is there a way that I can use my index.asp page as my start page?
View Replies
View Related
I have these two pages on root directory on the serverhow do i tell the server which one to pick up, or will the browser pick up the .html by default or do i have to manually configure it to do so?
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'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 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
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
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
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 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 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
Is it possible to find, and display a pc name in an asp web page using vb.
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'm trying to get a very simple task to work. Using the users login name
(gained from IE) I want to get their full name from AD (Win 2k and 2003 AD
domain).I'm using this ASP code on the IIS server:
usr=mid(request.ServerVariables("LOGON_USER"),8)
Set User = GetObject("WinNT://domainname/" & usr & ",user")
response.write "Name is " & User.Fullname
set usr=nothing
This code works fine when run on the server direct using wscript, but when
served by the web server I get the error:
Active Directory (0x80070005)
General access denied error
View Replies
View Related
I have a working members code now where members can sign up, login to a protected page and log out. I now want to personalise each members login so when a member logs in it says welcome [username] etc and then when the use logs out it says 'thanks [username] you have logged out'. I tried to query my database but it doesnt work.
View Replies
View Related
Is there a script ( without DB) I can use which can give the entire details of the server, including the root dir, folders info.
View Replies
View Related
how I can repeat details in a ASP page. For example I have to fill in a a form which has the following quetion.Language : (a text box here to fill in the details)
and then a message with 2 buttons Do you want to insert another? YES NOWhen click on the button YES, I want my asp page to take the quetion "Language :" and the text box and copy it so the user can insert another value.How can I do it ??
View Replies
View Related
Is there a way of detecting and then recording a visitors details(eg. browser, ip, country, OS...) and then storing that info to a database automatically?If, so, could you plz tell me how to record the info straight to a database without the user having to click on anything.
View Replies
View Related
I have seen an example of a page that displays the users browser details in a friendly manner like this:
Your operating system : Microsoft Windows NT
Your browser : Microsoft Internet Explorer 6.0
from a HTTP_User_Agent string like this: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Can somebody give me some sample code of how I can extract this result out of the string, using asp.
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