I'm working on an application based on AngularJS on client side and Java for my API (Tomcat + Jersey for WS) on server side.  Some path of my API are restricted, if the user doesn't have a session the response status returned is 401. On the c...
I have 3 domains that are themed the same. If somebody chooses a different theme, I want it to propagate across all 3 domains so their experience stays the same.  I was planning to accomplish this by setting a cookie on domain1, redirect to domain2 w...
Here's what I hope is a quick question...  I am trying to set a cookie that can be used sitewide. I'm creating a lead generation type site. I want users to fill out a form in order to access exclusive information. Once they fill out the form,...
I've implemented a code on my page that displays a facebook like popup. I've inserted this code in my website   <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'></script> <script src="http...
A form has the following code to prevent multiple form submissions:  function AllowNoDups() { var cookie_ls = document.cookie; if (cookie_ls.indexOf(document.location) > -1) {   alert("You've already submitted a free meter request. Thank y...
I have following code to implement simple practice shopping cart using JavaScript. There is a checkout link which calls getcookie() to check the value of the cookies stored. When nothing is in the cookie then click on the link  alerts to make input....
I Have a select tag containing options that must be used on mobile using jquery. I'm trying to use php to check when the cookie is selected in order to link to the java script and make a decision depending on the selection. This works perfectly w...
I want to do a little animation when an user visits the site but I don't want it to show every time the user switches between the subpages. At the moment it does the animation every time and I don't know why.  Here is my code:  $(document).re...
I've got a page with a splash screen, where users select one of two languages in which the rest of the site will be displayed. Next to each language option is a "remember my choice", HTML form, checkbox. How can I have the selected checkb...
I have a web app meant to be loaded inside an iframe on different hosts (let's say served from myiframe.com). In order to mantain session I use a cookie named 'session' that is set when the iframe's content is requested the first time...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.