Forcing A Reload

I've got a little shopping cart app which when you use all of the links on the pages, and buttons etc, things are good, the "shopping basket" on the left navigation updates and shows a sum of items and cost.

However, if you arrive at the home page for example, proceed to the products page, add an item and then click "back", you get a cached page.

I appreciate there are some lines of code I can use, both ASP and html to prevent the cachine, but what I dont want to incur instead is that error IE (and other browsers too I guess - how very Microsoft of me - shows when the page has expired, I think that would probably be worse than the cart not showing any items (or not showing the update) until a link was pressed.

View Replies


ADVERTISEMENT

Forcing A Timeout

How do I test a "timeout" error when pulling an .asp page? How do I
raise a "timeout"? How do I "catch" a time out using VBScript with
ASP?

View Replies View Related

Forcing A Download

does anyone know how to force a download of a file? Like I have some PDF file which I want to call like: Code:

http://example.com/myPDF.asp?id=2
& then force a download of MyPDF-2.pdf file.

View Replies View Related

Forcing Option Select?

I am trying to force the last option selected in a drop down!, I basically have a page with a drop down box in which sends to itselfs when selected, the idea is
the selected value updates a postage amount depending on the country selected from the dropdown.

However when it returns to the page it defaults back to 'select country' and I would really like it to be able to display the option selected as this is part of the address form.

the relevant country is correct, and i am putting that into a request.querystring so this variable (destination) is available to test/compare against and maybe force select this way, but i just don;t know how to write the asp/html to make the select value go to either this variable or the last one selected. Code:

View Replies View Related

Forcing Authentication With ADSI / ASP

First the brief: I'm currently developing an intranet at work. We have approximately 3000 users and they keep forgetting their passwords. We have 3 Tech-Support guys who keep having to reset them. The idea was to build a function in to the intranet to allow department heads to be able to reset other users passwords via asp.

All well and good. After a fair bit of reading, I've acquainted myself with the basics of talking to Active Directory and retrieving various objects, properties and values.

My problem is that when I try to update any of the objects (i'm focusing on the .description property at the moment 'cos when I break it - that's not gonna matter so much) But when I try and SetInfo, I get a General Access Error. My ServerVariables("LOGON_NAME") is empty. I was wondering if there was a way to force an asp page to run as the server administrator 'cos obviously when department heads login, we don't want all of them to be AD Admins. All they should be able to do is run my script to reset a password.

I'm not actually the server admin, and don't really know the specifics of IIS, but can I just tell it to run specific scripts as domainadmin? Or can I pass something in the asp headers to force it to authenticate as admin?

View Replies View Related

Forcing A Line Break

How do i force a line break in a block of text that i want to store in variable?

View Replies View Related

Forcing Asp To Read Whole Code

I have a page where browsers read code till the include file. then it stops there. How to force it to read the rest and display the complete page?

View Replies View Related

Forcing Date Into 2 Digits

I am storing a datetime into SQL Server 2000 field in datetime format. For single-digit months and dates, it is leaving the 0 off, like this:

11/6/2003
1/5/2003

For reasons having to do with technical requirements, I need to have it put the 0 in when needed, and not do it when it already has 2 digits:

11/06/2003
01/05/2003

How can this be done? When I get the value of the date in the first place, it is using the Now() function. For some fields, I only need the date, not time, so I do a DateValue around the result of the Now. Is this solved with ASP? Or do I need to do something in SQL Server?

View Replies View Related

Forcing A Div Element To Background

Are there any div attributes that could force a div element to stay in the
background? I have a .vbs calendar class that opens a small calendar.

Unfortunately, sometimes it opens above a form element like a combo box and
the combo box shows on top of my calendar.

The combo in question happens to be within div tags because it hides/appears
depending on another form choice.

Any got any good links on forcing div elements to the background?

View Replies View Related

Forcing Excel To Open File

I have the following code at the top of my page. Is there a way to force Excel to open the spreadsheet? Presently, it opens within the browser window. I know it can be saved etc., but I would rather have Excel receive the data.

<% Response.contenttype = "application/vnd.ms-excel" %>
<% Response.AddHeader "Content-Disposition", "filename=" &
Request.Form("FileName") & ".xls" %>

View Replies View Related

Forcing Location For A Download File

if i have a link that allow user to download an application from an server, is like Code:

<a href="wss1/daemon tools.exe"></a>

after i clicked this link, i will be link to an pop up windows to specified the save path location.How do i set the save path location to a dedicated destination or file?is like when i click on the link then it will automatic without pop up and then save into that dedicated location?

View Replies View Related

Forcing Email Read Receipts

how do u check if users read email and Forcing Email Read-Receipts? where can i find sample code.

View Replies View Related

ASP Auto Generated List Forcing Page To Push Out

I output a list of towns from a database via a normal recordset loop into a normal paragraph with links - BUT for some reason it is totally pushing the page out... is there any reason for this? I also placed trim() on the town name in case there were lots of mistaken spaces, etc. Code:

View Replies View Related

Reload Itself

I have a page and on submit it creates hidden fields that are populated with required data, but at the same time it creates another form below it and that form is to call some data from the hidden values.

I am wondering if there is a way to have the second form "resubmit" once it is created?

View Replies View Related

Reload

I am looking for some sample code. I have an ASP page that uses frames. I will call them Frame 1, Frame 2, Frame 3. Frame 2 has a three dropdown lists, I want to utilize Frame 3 based on what was selected in Frame 2. I kind of understand about the client/server thing, I think all I need to do is re-load the page somehow. Maybe onchange event with the passing of a variable or two.

View Replies View Related

Reload Problem

I have a data entry page which allows a user to insert or edit values
in a SQL-Server 2000 database. A section of the page also displays any
existing values already in the database, and allows the user to delete
them. Exisitng values and the cooresponding delete button are
generated on the page dynamically, with one form created for each
value to delete. JScript is used to submit the appropriate form.

On my test machine with NT4.0, PWS, and IE6.0, the delete function
works fine, and the page is re-loaded with the deleted value removed.
However, on the production environment, which is NT4.0, IIS4.0, and
IE6.0, when the user deletes a value, the form seems to be re-loaded
from the cache, and the 'deleted' value is still displayed. Refreshing
the page manually, however, eliinates the deleted value.

So - the delete function is woking, but the page does not seemd to be
refreshed in the production environment. Does this all make sense so
far? Code:

View Replies View Related

Reload SQL Data

I'm running a company intranet and the portion in question is the
company message board. Its becoming a very integral part of company
discussion on most of our projects. What I would like to be able to do is
have it so that a user can leave the message board opened and minimized and
have it alert him in some way when something new has been posted.
Unfortunately i dont want to just keep auto-refreshing the page at certain
intervals because i'm concerned about xp users (if it refreshes it'll start
flashing at them even if there is no new data, this could get annoying).

Is there a way to alert the page when posts occur or have the page check the
SQL database every so often without fully refreshing the page unless there
is a change to the database? I'm currently working in vbscript with some
javascript thrown in on some pages so an answer in either of these languages
would work for me.

View Replies View Related

Page Reload

on my site, things update alot, and someone might not know something's changed if they come back in an hour...because of the cache. is there a object or something that can clear the cache? a good object would be:Code:

Response.Cache = Erase

View Replies View Related

Reload Page

How do I get a text link a href to create a session variable and then reload the current page?

View Replies View Related

Reload Forms

I have a database with clients. I have 3 types of clients.My table has the 3 categories of tables and in another table i have the properties of all the 3 different clients.I have a form now. The first field prompts the user to select the type of client he is. Depending on the category he inputs i want my form to reload and bring the exact properties to fill.how can i reload the form and bring the required fields each time the user selects a category.

View Replies View Related

Reload The Page

How can I reload the page on click on the BACK button in browser? Or what's event happened on that click?

View Replies View Related

Reload Options

We are viewing the same page on my server in New York. I submit or send something in to an ASP, and it returns to me an updated page. How do I get it to reload showing changes for you in Florida who is just sitting watching the page not touching anything?

I have a frames page setup. When I send in info, I have this code to show changes for me by an automatic reload. it works for me:

<javascript blah blah blah

parent.frames[2].location = 'dataRecov.asp?view=rs';"

How do I update your page in Florida live?

View Replies View Related

Reload Frame

The page has Top frame (input) and bottom frame (result). The input html page send input to asp to generate result to bottom frame. The page works. But i wish to refresh bottom frame once i click the submit button to see the result by the java function

<script language =javascript>
function button1_onclick()
{
window.parent.mainFrame.location.reload();
}
</script>

But the bottom frame does not reload. is my logic wrong? is it conflicted with form action or method?

View Replies View Related

Reload A Page

On my web page the user first views a list of items, then he goes to the next page and makes changes. Then he is sent back to the first page. But the page dose not show the changes unless the user reloads the page. Is there any way to force the page to be reloaded up on return? Either from the page that sends the user back or from the list page its self? Here is a sample of the code that sends the user back to the list page:

<center>
<form>
<input type="button" value=" Go back to listings "
OnClick="javascript: history.go(-1)">
<p>
</form>
</center>

View Replies View Related

Reload Page

Im building a site which has a login field on top of every page. When the user logs in it is currently set up to go to the default.asp page

My issue is this: since the login is on every page I only want the page to reload when the user logs in. (it must reload to remove the login fields and replace them with the user account menu). I want the user to stay where they are when they login and not be sent to the default page

Right now in the Form field the action is set to:

Code:

<FORM ACTION="default.asp">

View Replies View Related

Reload Part Of A Page.

is it possible to reload just one table row with out reloading the entire page? Or reloading just a table? i'm not thinking it's possible but if it is it's worth asking a qustion.

View Replies View Related

Reload A Page From Its Iframe.

I cant get around this. Im working on a job interview scheduling system, and i wanna set my recordset to all the interviews scheduled from "tomorrow" and on....
so far I've got this query. Code:

"SELECT * FROM EVENTS WHERE SDATE > "&DateAdd("d", 1, Date)& " ORDER BY SDATE DESC"

this half works, since i dont get the dates from "today" but i do get results from "yesterday" or the day "yesterday" any suggestions?

View Replies View Related

Submit Form Without Reload It

I want to be able to submit the form without refreshing or reload at all and keep the values. how it works?

View Replies View Related

New Window Unexplainable Reload

i'm loading a new window from another page. but when i do for some reason the page it was loaded from kindof reloads, and all you see at the top of the page is

[Object]
and the title has changed to a bit of this code i used to create the new window. also when i view source for the page that i loaded the new window from all it says is [object]. what am i doing wrong? here is the code i'm using to open the new window.
[CODE<a href="javascript:window.open ('details.asp?detail=<%=rsURL(0)%>', 'newwindow2', config='height=300, width=300, toolbar=yes, menubar=yes, scrollbars=no, resizable=no, location=yes, directories=yes, status=yes')"><img src="images/detail.gif" width="15" height="15" border="0" alt=""></a>[/CODE]

any idea what i'm doing wrong?

View Replies View Related

Function Reload Not Working

I took some code reference form a site using reload form after getting data based on drop-down box value. I changed all parameters as per my db, page is loading properly but after select item from drop down box, it does not reload and output query data. Code:

View Replies View Related

Save Session In Firefox After Reload

I have an problem with Firefox. I'm using an username and password session in asp. And IE uses the sessions after i reload/refresh a page. But in Firefox i have to login again. It doesn't save the sessions for later use.

Does anybody know the sollution? Because I've searched everywhere.

View Replies View Related

How To In A ASP Page, Load, Pause And Reload

How do I via an ASP, load the page, pause for 30 seconds
and reload/refrest the page with no user intervention?

View Replies View Related

Window.Opener.Location.Reload();

I want to refresh the parent window from child window.

window.opener.location.reload();

A message pops out and asks me to resubmit the data.
I don't want this message.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved