Yes, thanks Atli.
Now as i progressing in my project, i realize that one browser renders differently from another browser, even when i follow the w3c standards. It's really time-consuming to get every browser available displays what i want.
Thanks Atli...
User Profile
Collapse
-
about cache method in firefox 3
Hello,
Is it true that Firefox 3 always cache pages so this code just completely ignored in my code:
Code:header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
http://forums.mozillaz ine.org/viewtopic.php?f =25&t=673135
it turns out that this html code works!
... -
I see,
so what you mean is I need to have somekind of hidden element. And echo from php to that element?
Okay, I'll try
Thanks acoderLeave a comment:
-
Ooh, i see
About your solution :
1) Either convert to "\n"
You mean, i convert to "\n" in PHP variable $conmsg or in javascript variable jconmsg?
The problem if i convert to "\n" is, will the email received still contains line feed? Because if not, it will be ugly.
2) or set an element directly using PHP and get the value using JavaScript....Leave a comment:
-
The code is a bit long, so this is the problem-part only :
I have a Contact Us form like this (form action is PHP SELF). The form also has CAPTCHA but i don't show it here (the CAPTCHA is working fine)
Code:<form action="<?php echo $PHP_SELF; ?>" method="post" onsubmit="return convalidate();" > <textarea id="idconmsg" name="conmsg" cols="50"
Leave a comment:
-
How to get textarea value into javascript variable?
Hello,
question 1:
how do i get textarea value to javascript variable if the textarea contains linefeed?
it only works if the textarea contains no linefeed.
Code:var jtext = document.getElementById('idTextArea').value;
question 2:
if i submit that textarea value with POST, how do i get the value? (if the textarea contains linefeed)
Code:$ptext = $_POST['textAr
-
Thanks Atli,
In this case, how do I make sure that particular page is non-cacheable using PHP?
Is it by diligently clear every form each time they loaded?
Thanks in advanceLeave a comment:
-
Why PHP cache control doesn't work?
Hi, guys
Is there anything wrong with this code?
Code:header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
But in some browser, they just don't work.
If i hit BACK button the value submitted from the source form are still there.
In my... -
wow, thanks Clint and Atli,
I tried your suggestion, i make random number, store it in session variable, pass it to hidden input element in the action form and in the action page i compare with the POST variable. and it works!
So, if user hit BACK button, it won't be a problem now, coz the session doesn't match with the POST.
Thanks guys...Leave a comment:
-
AJAX problem on IE7
Hello,
I'm having problem implementing AJAX on IE7. In other browser it works totally fine. In IE7, if i enable the Enable Native XMLHTTP support, everything just went wrong.
Here is the XMLHTTP request code : (thanks to www.masykur.web.id)
----------------
Code:http_request = false ; if (window.XMLHttpRequest) { http_request = new XMLHttpRequest();
-
Hi moderator,
Sorry for OOT,
Is it allowed here to post some advertisements in the middle of discussion like above?
Thanks
<Answer: No it is not. It's been removed. --Atli>Leave a comment:
-
Theoritical question about SESSION
Hi guys,
Sorry for asking something that maybe already obvious to you all. But since i'm newbie, i just need further explanation. (I've read the PHP Sessions thread written by Atli)
In my head, i figured out that actually a session variable is only somekind of global array variable stored in server that works in entire of our site (every page that need the session variable can access it).
So is it the... -
Thanks Clint and Atli,
You've been really helpful. Now i have a slight idea about how to do it. I'll try your suggestion.
ThanksLeave a comment:
-
About 'resend form information' when i hit 'BACK' button
Hi, guys
sorry if this kind of question had been asked before and kinda newbie question. coz i'm new to programming and just couldn't figure it out yet...
My problem is:
I have a form that POST variables and execute function in the target page (That function happens to be sending email).
If i hit the back button, the browser asks me if i'd resend the information again. And thus, the email would... -
thanks clint, it works
i'm making a ticker tape script for stock quotes that can refresh automatically every several minutes and just meet this problem, cause everytime it refreshes, it becomes faster (firing multiple instances that is)
thanks! you're very helpful!Leave a comment:
-
Does timer in javascript getting faster if the event occurs again?
Hello,
Hi, i'm really a newbie in programming, especially javascript. I have one question in my mind right now. Sorry before if i'm not clear.
Please see this example:
http://www.w3schools.com/js/tryit.as...iming_infinite
If i click the 'start count' button once, it works okay. But when i click it twice or more, it just getting faster. Why is this?
Does this mean the...
No activity results to display
Show More
Leave a comment: