Relative Addressing For URLs
Anyone know of a site that gives all of the syntax of relative addressing for URLS?
for example: /, ./, ../, etc.
Anyone know of a site that gives all of the syntax of relative addressing for URLS?
for example: /, ./, ../, etc.
I have an email application that builds an email body; I got it from IE's online tutorial with the whole "toolbar.htc" thing. Basically my email body is held in a DIV tag, nicely name "oDiv", and then passed to another page for processing.
I send the email using CDONTS.NewMail object. Basically it's a long email and I need a way to hyperlink to the next section. The problem is when I recieve the email, all the relative links are now absolute links. I've tried playing with ContentBase, but nothing is working. Any suggestions?
I want to avoid client to open a file from my site by typing its path in their address bars . Is there any solution for that?
View Replies View RelatedI am editing a script that requires me to output:
Today's date
1 week from today's date
and 4 weeks from today's date.
I am quite new when it comes to ASP programming, could I get some assitance? I need it in MM/DD/YYYY format .
Our web application is currently using relative paths in various places throughout our code. im working on eliminating this, but not sure of the best way to go about
it. i want to avoid hardcoding the path to make migration easier and more manageable. i thought there is a way to user the request object?? request.servervariables or
something -
Can anyone help me find a solution to quickly working out relative paths to
a folder in the root of my server...
Although it easy when you go - say - two levels down:
.../includes
it becomes increasingly difficult to ball park the folder when you go deeper
and wider down:
.../.../.../includes
....How do you guys get a quick fix on where the hell the folder or file is
and use that path in asp?
I'm using a segement of code in my global.asa to open a db connection check a users ip address against those i have in a recordset and then take the appriopriate action, very handy for banning bad bots who ignore my robots.txt and users who abuse my system.
Anyways the connection im using is Code:
i have about 5 files included in all scripts how do i give relative paths to them?
View Replies View RelatedIs there a way to save a file to disk using objStream.SaveToFile using a relative path instead of an absolute path?
View Replies View RelatedI am loading a vbscript source file on the client. Here's the code:
<script language="VBSCRIPT" src="../vs/systableEdit.vs">
</script>
This code worked on IIS 5.0, Windows 2000 but doesn't work on IIS 6.0, Windows 2003. This is client-side vbscript. I have the parent paths enabled but that only applies to server-side include files, I think. Anyone know why the src does not load and what I should do to fix?
I have a rather large classic ASP application that uses relative references like
...commonconnection.asp
all over the place in about 60 pages. The application works OK on my XP Pro machine but does not work on a Windows 2003 Server. Is there a way to set the server to accept the reference to the Parent folder? Does it have something to do with IIS lockdown? Or IIS Version 5 instead of 6?
I got a problem when I uploaded a file with the input tag of type file "<input type=file.." using the FileSystemObject where The page not opens and there is no any respond, but I tried to see if the folder that is already exists xan I see by that object I discovered that it is not exist.
The main problem I put my files in a folder that I dont know its absolute path , just a relative that always not exist.
ive got a bit of code to check if a file exists and it works if I use the full path ie "C:Inetpubwwwrootfile.txt" can someone advise me how to get it so I can use the relative path ie "file.txt" where the file and the code are in the same directory? Code:
View Replies View RelatedWe have just signed up for salesforce.com and I need to somehow integrate the canned web-to-lead form from salesforce inside my login/registraiton system without messing up the existing 'join' form.My registration form is built on top of database while the alesform form isstatically generated form which is similiar but not exactly the same.
Post to two different urls at once for my main Join form.Or, perhaps 'hide' the salesforce.com form and somehow populate the values in the form and when the visitor clicks my Join form it also posts the sf form?
if it is possible to store the URL of a browser window as a variable? For example:
var loc = window.location.href
in JavaScript will store the contents of the address bar as the variable loc.
Is anyone aware of any sort of asp coding to deal with long URLs? I have a few asp that pull URLs from fields within a MS db, which then display on a width-limited table. Is there any way to wrap these long URLs such that my table doesn't get widened? e.g. wrapping at "/" or something similar?
View Replies View RelatedAre using this practice? If yes which method are you using?
View Replies View Relatedhas any one tried SE Friendly URLs with ASP & IIS? There's nothing like mod_rewrite for IIS. Ofcourse there are some 3rd party COM available but how many of us can use them on shared webservers?
So, is there a way to do it?
For those people who don't know what I'm talking about,
Normal URLs with querystrings look like
http://www.example.com/myPage.asp?id=1
while SE Friendly URL will look like
http://www.example.com/mPage/1/
The operative words being look like. You will see the 2nd URL in the browser's address bar but the server will take it as the 1st URL.
I need to convert the Query Strings into Clean URLs, Found some articles on
PHP and Apache server.. How do we it them with ASP ??
My application runs on ASP and the business logic is embedded in Dlls written in VB. The application hosts a list of articles for the user to view and these are accessible through some complex urls like "http://mysite/articles/category1?articleid=34512". I would like to denote a friendly url to these articles such as "http://mysite/articles/kb_TaxPlanning.asp". I am thinking of using an ISAPI filter to do the work for me. My friend was trying on using a httphandler, but it did not work. Please share with us the resources for creating an isapi filter for the same. Also how to use the same for the expected result?
View Replies View RelatedI have a dynamic table that displays names of companies. Some companies have URLs and some don't. I would like for those companies with URLs to open a new browser and show their website, for those with no URL just to open nothing. So far I have this, however doesn't work.
View Replies View RelatedIs there a way to add a header to a page that will change what text the
browser displays in the address field?
For example, say I point my browser to
http://www.domain.com/request.asp?a=1&b=2.
I would like IIS to send back the content generated by the page
request.asp, but would like the address is in the browser to read
"http://www.domain.com/request/index.asp"
Is there any possible way to do this? It seems like this should be possible.
I'd like to save images from urls ? I need to save images with a procedure that i get it the url of image. if anyone know about this problem, let me know?
View Replies View Relatedhow to create urls friendly in the term of 'search engine friendly'. I have a website writen in ASP. For example when i click to new page-About us, the url is ....
View Replies View RelatedI have a form on my site that users must fill out before downloading a pdf document, however, i would like the form to send them an email with a temorary URL.
which they can click to download from, and which expires after 'x' days. is this an asp thing? or do i have to move to .net to do this?
Has anyone seen a good solution for Search Engine Safe URLs with Classic ASP? I've been looking for a while and short of using the 404 or installing tool on the server I was hoping there might be something else.In ColdFusion you can do a server.com/myfile.cfm/id/410 and it just works ... (well, after you parse the slashes)
View Replies View RelatedI having trouble with some of my classic asp pages being dropped from google.Specifically, a set of four pages reused many times with the content identified via query strings (max 3 variables). I was under the impression that google no longer has a problem with urls appended with query strings. Does anyone know if it is possible to incur penalties for the "over use" of such pages? My product detail page for example is used to display 230 seperate products.
if using static urls may help get my pages re-indexed, but I have had difficulty finding a way to do this with classic asp. Could anyone suggest a suitable method or advise possible reasons for my google disaster?
I have this asp search engine that displays the urls for the files found, only the display shows %20. I need to remove the %20 and display a space instead; is there some way I can mask or remove that for displaying results for users?
View Replies View RelatedI am sending an email to subscibers of a news letter with the url of the latest newsletter in the email. this is built up in code. how do i encode it to include special characters such as spaces as %20. I have tried a simple replace routine but this gives errors on invalid chars.
View Replies View RelatedWhen someone buys something on my site from a detail page, I show them a cart. When they hit continue shopping, the only option I have right now is to take them back to the detail page. What I really would like to do is take them all the way back to the catalog page they used to get to the detail.
View Replies View RelatedI downloaded this simple function from 4Guys that uses RegEx to convert all URLs into hyperlinks. I need to alter it slightly so that the end of the link will be determined by a space (it does this now), or a "?", which ever comes first.
The problem is, I don't have a good grasp on RegEx patterns and I can't find how to do this. My pattern is below. Can someone tell me how to alter it to do this?
objRegExp.Pattern = "(www|http|S+@)S+"