How To Get Current Url W/anchor (ie Test.asp#fubar)
Is there a way to get the current page's url with the anchor as well? If my url is test.asp#fubar, and I get Request.ServerVariables("URL"), I don't get the #fubar at the end - anyone know how to get this bit?
View Replies
ADVERTISEMENT
I am building a shopping cart where orders are send by email. Even though it says it's sent, I receive nothing. So I did a test script to send an email using CDO since we are using an exchange server for email and it's on the same network as the site. Code:
View Replies
View Related
I have a home page on an intranet called default.asp I just type in
the server name to take me to the default page http://server. The home
page has an anchor name tag: <A name="fred">Freds Info</A>
It is located by this anchor href tag: <A href="#fred">Up to Freds
Info</A>
The problem is that when I first use the link to take me up to Freds
Info, the default.asp page is reloaded then I am taken to the Freds
Info, which is a pain I dont want this to happen. I just want to click
the link and be taken to the part on the page.
After the page is reloaded I can then use the link again to go up to
Freds Info without the page reloading. What is the problem?
View Replies
View Related
I use Anchor tag in my application and and i set the title attribute to show the tool tip when anyone place the mouse cursor over there i write
<a href="check.htm" title="Open Check">Click here</a>
and i want to create a link with the tool tip how can i create it.
View Replies
View Related
In 1.asp:
<a name="head">
<iframe src="2.asp#a1"></iframe>
In 2.asp
<a href="1.asp?ID=1#head">link</a>
When 1.asp 's opened, it go to anchor of 2.asp.But my intention is when opening the 1.asp will go to anchor 1.asp (head) and iframe will go to anchor 2.asp (a1).They must work independent together
View Replies
View Related
I want to use a named anchor. but this confuses my asp as it thinks officeid
is 118#subimages not 118.
View Replies
View Related
I have a noticeboard that the user inputs items into. One of those is the date of an event. Once that event has passed I want it to disappear from the page.
So I need to do a comparison with current date to the date in the "datestarted" field. My table is called "notices." Using Access and ASP VBscript.
View Replies
View Related
I have a page with a div tag styled in this div is a list of projects pulled from a db.
text-align: middle;
clear: both;
overflow: auto;
width: 95%;
height: 175px;
This means that the content in the div tag when larger than the div height has a scroll bar at the side to view all the projects. Once the projects area displayed there is a image at the end of each row that when clicked goes to the db and pull back reports for that project. This is all done by passing vars in the querystring pulling info from the db and writing out the appropriate code. Code:
View Replies
View Related
While working with IE7 i found that my target attribute in <a> tag is not showing the output in the specified frame which i choose.
View Replies
View Related
this url:
comments.asp?id=34#foo
should jump to the "foo" anchor in the page that results from the querystring (comments.asp?id=34)... but sometimes in IE6 it reads id not as "34" but as "34#foo" ... odd behaviour and i cant recreate it reliably, i have two very similar sites and one seccumbed to this bug and the other didnt, what i had to do was double check the input value (i was basically using isnumeric on it) and Code:
View Replies
View Related
I'm trying to do the following:
Code:
response.redirect("partnerdetails.asp?"&request.QueryString&"#card")
ASP tries to take the html as part of the querystring, putting the anchor like this:
Code:
response.redirect("partnerdetails.asp#card?"&request.QueryString")
Also creates an error. How do I make these work together?
View Replies
View Related
I have a web page that accesses a database to pull news stories down and create a link to another page that is populated with the news stories. These stories take up enough space that the page has to scroll. I want to be able to have the links it generate go directly to an anchor on the second page where the news story begins.
Can someone point me in the right direction to a place where I can get more information about this?
View Replies
View Related
I'm using ASP and Javascript - can I access the HREF property of an anchor tag? i've used
document.images.image3.src = variable
but I can't find the syntax for using it with the <A tag. Is it part of a collection?
View Replies
View Related
Whenever I click on a link (on the shoppingcart site I'm developing) that contains a querystring with the category name and an anchor name (whatever the name of the '#' bit in the URL is), SQL retrieves the category name from the querystring, filters out the appropriate information on the products and the page jumps down to the anchor link.
Once the customer clicks on a product, the processing page is meant to redirect, via the server.redirect command, back to the products page with a querystring identical to the initial filtering one (with the anchor name attached), thus teh customer is back to the same product that he clicked on, without having to scroll down every few seconds to add more of the same product.
However, even though the querystring sent by the response.redirect command is identical, the ASP code can't seperate it again properly and thus the SQL statement shows nothing, as the ASP coding thinks that the info following (and including) the # is apart of the 'category' part of the querystring.
View Replies
View Related
Let's say I have a form like this:
<form action="handler.asp"> ... </form>
Within handler.asp, I output a number of named anchors:
<a name="important1">Important 1</a> ...
<a name="important2">Important 2</a> ...
<a name="important3">Important 3</a> ...
In my form processing code, I want the returned page to jump to one of these anchors depending on the result of the processing.
How can I do this?I don't want to use a redirection because then I would have to
re-process the same page.
View Replies
View Related
How would I strip all <a href=""></a> tags from a block of text using ASP?I assume you would need to find "<" and ">" tags, but I am not sure how you would actually remove it from the text.
View Replies
View Related
i am not sure if i am on the right section to place this thread, but my code is in .asp and i am using a access database and i wanted to link a text to another text in a seperate page that contains a repeat region that its pulling from the access database.
this lists like 7 records at a time and i was using the anchor method to link the text from the home page to the text in one of the fields that is in the repeat region and was not succesfull, It would take me to the page but would not go to that specific recordset that i have placed the anchor.
View Replies
View Related
I have a menu made up of images that swap when clicked (ie home_on and home_off, contact_on and contact_off etc) but when i tried to put anchor tags around the images they wont swap any more?
View Replies
View Related
I have some asp code in variable so i want to rewrite anchor tags like this:
If i have:
<a href="http://www.sitepoint.com">www.sitepoint.com</a>
To be rewrited as:
<a href="http://www.sitepoint.com" target="_blank">www.sitepoint.com</a> out
The problem is that urls from my domain shouldn't be changed for example if href="/some_path" or href="http://www.mysite.com/some_path"
I try making some expressions with RegexBuddy but it didnt worked very nice.
View Replies
View Related
My clients have 4.0 and I can't seem to get 6.0 off of my W2K machine. Any suggestions?
View Replies
View Related
I have:
Dim foo
Set foo = Nothing
If foo = Nothing Then
response.write "foo is nothing"
Else
response.write"foo is something"
End If
I get an error in the line "If foo = Nothing Then". It says:
"Object variable not set"
How then do I test if something has been previously set to Nothing?
View Replies
View Related
I have always used this in ASP to test if the client is accepting cookies:
<%@language="VBScript"%>
<%
Session ("nc") = 1
If Len(Session("nc")) = 0 Then
'Cookies Off
Else
'Cookies On
End If
%>
But I only ever tested it in Microsoft Internet Explorer 6 though not sure. Anyway with Microsoft Internet Explorer 5.5 SP2 Len(Session("nc")) <> 0 always whether cookies are on or off. Can anyone suggest a better cookie test that will work in most browsers?
View Replies
View Related
I have a PC running Win XP Home and want to learn how to write ASPs.
In order to test them I think I need a web server installed on my PC. Since
I don't believe IIS can be run under Win XP Home I downloaded and
installed the Apache web server. I'm stuck at this point and would appreciate
opinions on whether I am on the right track, and, if so, advice on the following.
1. Having written a test asp page how do I use Apache to test it?
2. Can Apache handle VBScript on an ASP page? From the info on the
Apache web site I don't think it can.
View Replies
View Related
iam making asp test engin and i dont want the user to use the keyboard
so is there a way to disable the keyboard of the computer that have the
exam on ? its not a website world wide. i will make it on my room computers.
is it possible ?
View Replies
View Related
The current code (see below) works. But, I wonder if there's better way to test if a node object has something or not.
<%
...
' want to find if /Root/Node's id attribute is 1,
' if yes: get its child node <num>
Dim nodeA : Set nodeA = xmlDoc.selectSingleNode("/Root/Node[@id='1']/num")
' test if nodeA have something
If TypeName(nodeA) = "Nothing" Then
' -- NO: nodeA has nothing
Else
' -- TypeName is "IXMLDOMElement"
' -- YES: nodeA has something
End If
...
%>
I have tried other functions, such as IsEmpty(), IsNull(), IsObject(): none can
get the result I wanted.
View Replies
View Related
What I have is a ASP test script that can grade online tests and give the test results at the bottom of the test page itself. What I need is the test results to be passed on to a test results page with the score of the test that was taken. I have a problem getting the test results intact over to the test results page.
View Replies
View Related
how do i test for SQL injection ?
sdo i do a SELECT statement in my username login?
View Replies
View Related
I have an asp script which is posted to by a form. On the script I need to know if cookies are enabled.
Therefore I need to make the form post to a different script which sets a cookie and does a response.redirect to the main script. However, how to I make the request object get forwarded to the second script with the response.redirect?
You cannot use server.transfer as the test for cookies will not work properly.
View Replies
View Related
In ASP VBScript,is there a way to programmatically test if a SQL Server database server is alive?
I want to use a connection string to a mirrored DB server in case the primary DB server fails. This failover is easy in ASP.NET, which supports DB mirroring and a the specification of a secondary server in its data provider.I want to hack together the same thing for my classic ASP apps.
View Replies
View Related
How to get test.doc from following string Using VBscript
"Files uploaded:test.doc (54326B)"
File size and file name may vary dynamically,and I have to pick file name with ext from them.
View Replies
View Related
anyone know some good ASP code to go through a page and test the hyperlinks to make sure that they are valid. Couldn't find anything good yet, but if someone knows of anthing.
View Replies
View Related
How to I test a varable to see if it contains a number and not a text value?I want to use this to detect if people have edited my get strings in the URL field of the browser, before it gets send to the next page.
I am sure it is simple just forgot, had a search on yahoo and could not find anything.
View Replies
View Related
Well i use Timer to test ASP scripts how much time is needed for rendering. But how much time, approximately a heavy asp project like CMS or FORUM should do?
View Replies
View Related