I'm trying to do something like this:
var mouseY = //mouse y-position relative tot some element
while (mouseY > 0 && mouseY < 200){
//scroll element -5px
}
I want to scroll a certain element up as long as the mouse is within a certain area of an element.
Getting the mouse position and scrolling is not the problem (using scrollTo...
I am trying to integrate google checkout with my current site. I am calculating the shipping on my end, before passing it to google checkout. The problem is, when a person click the "google checkout" button, it takes them to google checkout but it does not show the shipping. It actually states it will be calculated on next step. In t...
I am implementing cs-cart for a web site. Which one is better for SEO if possible with a reason or reference. Site sells books stamps cds etc.
www.domain.com/book/Java.html (or) www.domain.com/book/programming/Java.html
or
www.domain.com/Java.html
Some says short URLs are good. But isnt it good that stating which category the pro...
Understanding that if someone had JavaScript disabled the site would not work then is there any other reason not to do this?
I am in the design phase of a new site and want to make it easy to change the server code without having to change the UI - just like a form.
This is using Python server side.
...
I am working on improving website performance. Here are the list of key performance indicators I am looking at for each page
Total Bytes downloaded
Number of requests
DNS look up time
FirstByte Download time
DOM content load time
Total load time
Is there any optimum value for each KPI to indicate website performance? Please help me ...
We just started PHP in my webscripting class today, and I'm already having problems with my first PHP assignment. Its more of me not understanding what is going on or overlooking something I don't fully know yet.
The code here: http://codepad.org/KnHda3iS is supposed to go to php4_1input.php but upon submitting it goes to back to itsel...
I have already found a previous SF question regarding this issue and I believe setting the init-method and the destroy-method properties will be sufficient. But I wanted to hopefully ask the question a different way to further my understanding.
If I understand things correctly, a class that implements org.springframework.context.Lifecyc...
I feel like this should be an easy question but I can't seem to find the answer. I just added a Share on Facebook button on a web page that I am working on. Works great. Simply pasted the javascript. I am looking for a button that will allow the user to "share this page" on twitter. I can find one for "follow me on twitter" but not where...
In my current project, we are looking at phasing out our old presentation layer and replacing it with something more modern and more well-known. For various reasons, JSP was chosen as the technology. Possibly in conjunction with Apache Tiles. I should perhaps mention that we are using Spring in the back, if that matters at all.
Internat...
Let's say I have a "report" page that can be customized via Javascript. Say I have start_date, end_date and type ("simple", or "full") that can be changed. Now I want the address bar to always contain a "permalink" of the current (customized) view, so the user can easily copy it.
If I'd do this without Ajax, I would simply use something...
Hello,
Is there a way i could run php code in facebook fan page. Basically i want to show the producsts from this site:
http://ohlalashopping.co.uk/
on one of the tabs of fan page. I would love to see any possible solutions to achieve just that.
Edit:
Based on the answers provided, i just wanted to ask one more thing:
How do i add ...
Hi, annoyingly I've just given up on setting up Subversion on my Centos web server, mainly due to the fact that the server has cPanel, which uses EasyApache, which in turn doesn't support DAV and makes it awkward to install and configure manually. So, I'm now looking at alternatives - Git seems to be the VCS of the moment, but I'm only a...
I would like to program a computer game which should be played by several participants. And I need to do it in two different ways. The first way is to program a web site where people can login and play. The second way is to have programs running locally and exchanging data with each other using P2P approach.
I know how to program both w...
My application is being penetration tested.
One of the XSS items being flagged is that Im using a hidden form field to store a record id in a browser/search screen then using id this to open the full record. (via a post)
I'm struggling to see how this is an XSS attack. Am I missing something?
...
In my java app I'm preventing XSS attacks. I want to encode URL and hidden field paramaters in the HttpServletRequest objects I have a handle on.
How would I go about doing this?
...
Hello,
I am using setInterval and the jQuery load function to periodically update an image tag.
var refresh_days = setInterval(function() {
$('#box_name').load("dynamic.php");}, 1000 );
This works, but there is a slight delay before the new image is fully loaded, during which nothing is shown.
Is there a way I can wait until th...
Possible Duplicate:
Is it worth it to code different functionality for users with javascript disabled?
I've just learned in this question that an ASP.NET webforms application will have issues to run properly in a browser with disabled Javascript (unless I don't use certain controls and features).
So this is a kind of a follow...
I am wanting to test run a Single Sign On web authentication for my University (currently a student employee), I have been reading a lot about WebAuth used by other Universities. While I think the solutions are great, we are a very 'small time' University, but the current login system and authentication is horrible for the user experi...
Year 2010 and we still have to write boilerplate codes. Lets assume we are building an online application (it doesnt matter wherter it is fancy or not but a funtional one). We first make database design and put some business logic on it (stored procedures, unique or not etc) then we code server side and write most of the business logic o...
Hi All,
I posted this very same item on SERVERFAULT, but got no reply. So here goes:
I'm currently in the process of finishing up a Rails application. I am using Warbler to package it up as a ".war" file and am using GlassFish to deploy it. I do this because the application is to be distributed to companies for in-house use. Arguably ...