Cathy Cruise

+ Follow
since Jun 13, 2004
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cathy Cruise

I tried, still doesn't work... strange...

I am trying to hide some content from printing. However it doesn't work.

In my .CSS file i have this,
.hide {
display: none;

In my HTML i have this:
<link rel="stylesheet" href="/hide.css" type="text/css" media="print´┐Ż>
<div class="hide">

Is there something wrong with my code?

Thanx in advance,
[ September 03, 2004: Message edited by: Cathy Cruise ]
Here are all my META Tags,

<META HTTP-EQUIV="Cache-Control", CONTENT="no-store, no-cache, must-revalidate">
<META HTTP-EQUIV="Cache-Control", CONTENT="no-Cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

yet i still see images are cached. Pages are not though.

is there any code that helps no cache on images?

is it possible to move the footer and header margin using CSS when printing? if so, how? thanx in advance


If it is by design the only things I can see that could precipitate that behaviour are the "saved from url" comment and the Microsoft Frontpage META tag. Try those in your page and see if it does the trick. If not I suspect it's just an accident (IE6 bug?). Jules[/QB]

Well i tried, it can still able to use those function for save as.. so i guess it's a bug.. thank you very much for you guys help.. really appreciated~ ^_^
Is it possible to have a form, and store all information from text fields into a text file, using javascript?
yes.. i know it can't be done wtih javascript. Thank you . I am really appreciated you guys help. It saves me time from searching for something that cannot be done.

I just talked to professor that i don't think i can do it. I can't think of any other way to do it beside my first solution.
And he says, it's not "disable", but users are not allow to "save as" by using that button. (any difference?)
That site has the "save as" button function, yet, once you press that, and save it, it will pop up a alert box, saying you can't save this page.

I guess he wants me to do it that way..?

[ August 20, 2004: Message edited by: Cathy Cruise ]
well actually, for my website, basically i need to work well with the most common used web browser. I will assume that will be explorer 6.0 and netscape 7.1

well i tried with using the javascript and open a new window and get rid of the menu bar. He thinks this solution is too easy. So he asks me to give him another solution, but not use javascript that much. (because my first solution set was using javascript to solve all kind of problems.. heheeheh.. )

So yeah... basically he wants to get rid of the print function too....but i don't think i can do that without javascript~

[ August 19, 2004: Message edited by: Cathy Cruise ]
hum. how about say no to set-cookies..?
but then i tried it, but it won't work.. or did i do it wrong?

<META HTTP-EQUIV="Set-Cookie" CONTENT="cookievalue=xxx;expires=Wednesday, 29-Dec-99 13:14:26 GMT; path=/"> that will be the code right?

19 years ago
1. I am using http, plain old http
2. browser probaby use the browser xp with version 6.0 and netscape 7.1
(even worse in the netscape 7.1, because with my website, i couldn't go back into the internal pages if I logouted using Internet explorer 6.0. However, it would able to do so if I use netscape 7.1)
3. i am using apache server. I think it is using http 1.1

My header look like this :
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", -1);

Hopefully this helps me solve problem la.
Thank you~

19 years ago
you are right. I wish my professor would understand that~ yet, i still have to show something~ so I want to know how to do that with javascript.

I would like to know how to disable the save as function in the browser's file drop down menu. I have a link that is able to do it.

I was trying to read the code. Yet, I can't find the trick. Can anyone help?

Thanx in Advance.
Cathy Chan
Jeanne, yes i tried to prevent from caching and I tested. The pages did not cache into my internet temporary files, however I feel that it is the name and the password that cached into the computer. I used the META http-equiv (or the response.setheader (), addheader(), etc.) yet I can still go forward if someone didn't press "logout" before. If you don't understand what i mean, try to go to yahoo mail. And login. Go any pages you want. Then don't press logout. Just keep going back and back, until you reach back to the login page. THen press forward button. You could still login without typing password again~

Is there any other way to prevent from browser from caching?
19 years ago

I am right now stuck. Supposed a user login to my site, and that user didn't press "logout" but pressed the browser's back button, until he reached back to the login page again. Then he supposed to relogin again. HOwever, I find out that if i press "forward" button from the browsers. Somehow, it will still able to get into the site with the previous login name.

I used session.removeAttribute("login"), session.invalidate(); and response.setHeader("Cache-Control", "no-cache"), response.setDateHeader("Expires", -1), and response.setHeader("Pragma","no-cache") already, but still doesn't work. How come? What's the problem here, and how can I solve it?
19 years ago