I am developing a project for an online exam where i want to disable the test takers from going back to the previous page.
There are ways... but they're not guaranteed. Realistically speaking, it's up to the browser whether you can ever go "back". You can use redirect tricks or JS to encourage a browser to ditch its history... but if this is actually important then you'd better do it server-side: keep track of which pages they've completed, and ignore (silently (or noisily if you prefer)) any attempt to re-submit that section of the test.
Now, I'm assuming that you really only care about preventing users from going back to change their answers - if you'd rather they not even be able to view their previous questions/answers, then you should be able to use cache control hints to encourage the browser to discard previous pages - when completed sections are requested, just redirect to the first incomplete section (or, a screaming red "cheater" page, whichever). Of course, there's no guarantee that browsers will respect this, but then, there's nothing preventing users from copying or printing previous pages either...
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
i made a small website with 2 web forms, i put the script code u sent me on the top of the web form 1 but it disabled the back to the whole of the web site, i want it to disable the back on specific web form, so how it will be???
I have encountered this problem when I am having my Classic ASP code that was put inside the string variable including the directives (<% varTemp %>). The value of varTemp is coming from my table categories wherein you can find there tha CategoryID. And the value of the CategoryID will be used dynamically as an indicator if the checkbox will be displayed as checked or unchecked.
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/signup/checkbox4.asp, line 6
Below is my trial Classic ASP code, before moving to my actual ASP Coding. I hope this can be solved. Thanks in advance
Oh I am sorry Steve, I think I have to explain further if why I need the "<% VarTemp %>" during the populating of checkboxes.
If I will going to remove the <% VarTemp %> from the string variable, then there's no way the checkbox will be "checked", automatically during the dynamic creation.
Actually it's only a test program for me, and if it is successful then I will transfer the concept in my real ASP programming with tables.
The real concept of the program is this, I have a CustomerCategory Table wherein the value is the CustomerID and CategoryID. From this table I will going to load the Category per Customer in a Form of Checkboxes, and upon creating the checkboxes dynamically based from the data of the CustomerCategory Table, the program will display the checked checkboxes.
Let's say for all 10 categories, only 3 of these categories has to be checked based from the CustomerCategory Table. The question is how it will be done?
What I need is only to know if how can I include the directives or block inside the string variable. Because once this will be solved then the variable inside the block will be - "v" + RecordSet("CategoryID"), which I will be using it based from CustomerCategory Table data.
Actually, this is only my test program before transferring the concept to my real classic asp program with tables thru mssql2005 database.
The setup is this - There's a CustomerCategory Table that has a CustomerID and CategoryID. And the value of CategoryID will be used for the dynamic creation of checkboxes.
Let's say for example, for all 10 categories, only 3 of these are being stored in CustomerCategory Table. The question is how can I be able to populate the 3 categories by displaying thru 3 checked checkboxes?
Do you have any idea on how it will be done, dynamically?
I was thinking that when I clicked a button next to a row it would call the "Select_CurrentLot" procedure, but it does not seem to. (Grid loads fine, button show up fine, just nothing happpens when I click one). Am I mis-understanding this or did I go wrong someplace else?
I have developed an application in IIS 5.1. Is it possible to deploy that application on IIS 6.0 or IIS 5.0 and what are the things we need to keep in mind while deploying like above. Please give me the solution. Thanks alot
I need a div to grow as the text size is increased for accessibility purposes. I got it working fairly well using IE7, but the page has 3-times the hits in IE6. The solutions I have discovered so far are using a percentage of a containing div for the width (ie width: 90%, where I want it to be at least 90% of the container - which pretty much works), and an invisible element that is the minimum width i need. That way the div can grow if need be, but the div will never get smaller than the invisible item. These ideas seem pretty hackish and I would rather have a clean solution (if its possible). I am interested to know if anyone has any better solutions.
Last Visit: 31-Dec-99 19:00 Last Update: 8-Dec-23 2:52