Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to play an animation when you are not redirected from my page (when you have not clicked a link on My page and got redirected to another page on My page) much like: animade.tv
It there any way to detect that with javascript? If not, can you do it with php?
You can use both js or php
js:
document.referrer
php:
$_SERVER['HTTP_REFERER']
sometimes it could be empty, you can just verify that is different from your domain
use document.referrer to test the url
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I made a simple website using html and php.
How to save to a separate file:
IP address of user that came to the website
Time each user spent on the website
Thanks
I think it's a good idea to use Cookies in PHP that unique user just has a unique cookie, not Ip.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want a pop up to be opened first whenever the site is opened for the first time. Please suggest me what will be the easiest way of doing this.
In codebehind, jquery, or javascript
This would do that if you are OK with this working per-browser, and also it would not work for older browsers http://caniuse.com/#search=localstorage.
if(!localStorage.siteLoaded){
alert('Welcome!'); //Or any other pop up method...
localStorage.siteLoaded = true;
}
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to redirect every third user of my website to another page.
For example in js html
window.location = "http://www.yoururl.com";
The reason behind this need, is to attempt to load balance my traffic
Every third user isn't possible without incorporating some kind of backend code on the server. But redirecting approximately one third of all visitors is possible.
if (Math.random() < 0.333333) window.location = "http://www.yoururl.com";
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Friends
I am working on the Dynamic Web project.
I am creating JSP & Servalet Pages in my project
I am load a gif image at the time of the page submit
at that time i need to disable whole jsp page
Please anyone has an idea so please suggest me.
Try BlockUI plugin for jQuery.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
This webpage http://cml.kg/test.php refreshes 10som.kg.
1. How does test.php embed 10som.kg even though 10som.kg
uses x-frame-options : SAMEORIGIN?
Doesn't it mean that you can't embed it on any other website? How did test.php bypass this restriction?
2. Test.php doesn't only refresh the embedded page, but also clicks the button on it until the URL changes. How?
Thanks in advance!
For your question 1. 10som.kg probably has CORS enabled in the server.
http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
If that's true, this allows other domains to make ajax request to it.
Hope this helps. Cheers