|
-
Dec 6th, 2007, 08:04 AM
#1
Re: javascript variable inseide php script
I think you are a little muddled.
PHP has nothing to do with JavaScript.
PHP is a purely server-side technology; JavaScript is purely client-side.
No JavaScript variables are persisted after the user navigates away from the page.
-
Dec 6th, 2007, 08:40 AM
#2
Thread Starter
Addicted Member
Re: javascript variable inseide php script
basically my homepage is html, just the extn is php and have some function used <?php></php> i can use the javascript variable, i feel strange why my homepage keep the variable value even i have change the variable or delete the variable.js , is it the server problem?
-
Dec 8th, 2007, 09:18 AM
#3
Thread Starter
Addicted Member
Re: javascript variable inseide php script
i find the answer from internet and want to share with other.it is javascript cache problem.
add ?new Date().getTime() at the end of script my problem solved!!
example
<SCRIPT SRC="../javascript/flyingobject.js?new Date().getTime()">
Last edited by edwinho; Dec 8th, 2007 at 09:22 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|