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:
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?
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
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:
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?
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?
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.
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.
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.
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?
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?
<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.
I am trying to put a search by product name function on the following page, i think i have everything write but for some reason the page always says product not found as if the query is not getting past Code:
Error Type: ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal. /emirate/view.asp, line 175
my database is access,i checked both data base as well as the coding,both field names are correct
my sql is only this sql= "select * from MasterEntry"
I have run into a peculiar problem and need a little shove to solve it.
I have an ASP app that tests to see if the browser allows cookies. Complains if cookies are off, otherwise proceeds to a login page.
Using MS-IE 5 or higher - works fine Using IE5 or Safari on a Macintosh (OS 9 or 10) gives a page not found error when trying to detect the cookie setting.
The ASP code use Request.Redirect. I made some htm pages to allow debugging of the redirect and get the same failure.
I could really use some suggestions for making the Mac machines work.
i got an error saying file not found 404 when redirect to html page and i ensure that the file is found in the same directory and in the database : response.redirect results("Url") where Url is the column name in the database that contain the page name
have a look at this code and see if they can spot the error. I've been looking for sometime but I'm blind to it - I have a feeling it might be something to do with the ID field? The connection appears fine so this is unlikely to be the cause .
How to find the File not found error in Javascript. My problem is When click the help image button, i want to display the help popup window to the corresponding page, if it is available.
If the help page is not available for the particular page, common 'No help' page should be displayed in popup window. How can i find the file not found error in javascript.
I know what this error is, all fieldnames have been verified and reverified. Not sure why it is happening. Here is the SQL statement
strSQL = "SELECT Problems.TicketNumber, Activity, ActDate FROM Problems LEFT JOIN Resolutions ON Problems.TicketNumber = Resolutions.TicketNumber WHERE Problems.TicketNumber = " & Ticket & " ORDER BY ActDate DESC;"
I'm getting this error working on a RecordSet that is filled by a LEFT JOIN query. Everything works fine, until an attempt to access data from the child table in the RecordSet when it doesn't exist.
Which results in "Item cannot be found in the collection". Is there a check that I can perform to see if a RecordSet item exists before attempting to access it?
I have moved an asp application from one IIS server to another and now having problems with the app on the second server. All I did was to move the folder as it is.
We have an application that uses WinInet and ASP to transfer files from an application server to a web server via an FTP component based on WinInet. An ASP page calls this component to transfer the requested file then opens the file and loads it into ADODB.Stream in order to download it to the user.
Things work fine up to the point where the Open|Save|Cancel dialog appears. If the user clicks Open or Save, a fair percentage of the time, they get a "File not found" error displaying the file name followed by a bracketed number, e.g. file[1].txt.
I have few asp pages, in each i connect to the DB, same con name in all of the pages. one page return error, as above, I had these pages working allright before, but i had to reinstall the IIS 5.1 because it was corrapted after installing SP2, and now rose this error, what could be the reason, do i have to change settings? of what? the wwwroot folder?
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] The search key was not found in any record.
/warcouncil/issue_update2.asp, line 99
i know for the fact that it is something to do with microsoft access 2000, long text in a field will eventually make the row uneditable and undeletable.
Is there a workaround for this?Or all i need is just to remake the database in a newer microsoft access version?
i recently moved an intranet site from my test development desktop running IIS to a Windows 2000 Server.
Part of my site requires admin users to write descriptions of books, leaflets etc. to text files stored in a specific directory in the Server.
I am using the exact same set up which worked great with IIS, the only change i have made is to the path for the file name, which i have now made relative. Code: