I'm trying to have a php script run when the user navigates away from the page. This is what I'm using currently:
function unload(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ...
I have been using my old upgraded Acer Travelmate 3273 for quite some time now since I started for my current employer. I've been using my own laptop instead of the company's standard machines because they still use Pentium 4 with only 512 MB RAM, and I just can't work on those machines. Slow and doesn't quite work well with my preferre...
I have a background image set on a web page with the following CSS:
body, html
{
background-image: url(Content/Images/bg-lounge-2-l.jpg);
background-repeat: repeat;
background-attachment: fixed; /*background-position: 0 -390px;*/
}
This background was visible until late last night, in Firefox and IE...
Occasionally when I try to open a site I will see a page saying smth like "This site is offline for maintenance" and then some comments follow on how long it would presumably take. Stack Overflow does that too.
How does it work? I mean if the site is shut down who replies to my HTTP request and serves this page?
...
Background:
I am an intermediate web app developer working on the .Net Platform. Most of my work has been defined pretty well for me by my peers or superiors and I have no problem following instructions and getting the job done.
The task at hand:
I was recently asked by an old friend to redo his web app from scratch. His app is extreme...
Hi all,
I'm working on a large ites re-write that has now come to included a redesign. I have been reading up on HTML 5 and wanted to know what cons are out there to have me avoid adopting it for this design implmentation? The design needs to work in A-grade browsers (yes including IE6 :( ), so I'm wondering how / etc will be rendered...
Why Java is still used in web development? I'm just curious..
...
i am working on cms in which users submits articles and visitors can vote on those articles,
so i am confused. should i make a vote behavior (since it deals with data) or i will me it on a component (because it is an action in my controller) ?
help is very appreciated.
...
I'm trying to use ManagedFusion UrlRewriter module on my main/root web site to redirect requests with a certain host name to a sub-folder of the root. Let's say my root is called profkroot.com, and it has a sub-folder (ASP.NET application) called cottages. I also have a domain called profkcottages.com, which I'm trying to redirect to p...
Does anyone know how to stop a page from reloading or navigating away?
jQuery(function($) {
/* global on unload notification */
warning = true;
if(warning) {
$(window).bind("unload", function() {
if (confirm("Do you want to leave this page") == true) {
//they pressed OK
alert('ok');
} else ...
What options do I have preventing the user from just closing the browser or navigating to another site? (of course I can't prevent him pulling the plug on the computer, etc.: I just want to show him a warning)
...
I've never done any web development on Linux, and I'm about to start a project that requires it. I love ASP.Net MVC, so what are my availble options on Linux that kind of follow the same principles?
The project is a very simple "ecommerce" site (two or three products). There may be other sites to come though that are more complicated.
...
Well, the facts :
I'm a php programmer (php4/5) and object since several years now.
I use to work PHP Framework (especially Zend Framework)
At my work, we have to work Joomla for some website.
I had to develop components, modules, plugins, and i had a revelation.
Almost all users of Joomla are not developper, just users, whom doesn't...
Hi all,
i want to know what are the vulnerabilities while using the GET and POST variable directly.
ie with out trimming and addslashes function and mysql escape string something like that.
My Question is
What more we need to take care of while playing with GET and POST.
What kind of attacks are there like SQL injection?
...
I would like to handle requests differently depending upon the MIME type. For example, I have PDF's, images and other media files that I would like to prohibit access to based on their respective MIME types. Any ideas on how to do this? Thanks for the help.
I should also note that accessing the Windows registry is not an option for my a...
I have a little rendering problem with IE7 (as usual). Say there's a calendar control that looks like this:
<div class="calPager">
<input type="submit" name="prev" value="Prev" class="pagerPrev" />
<input type="submit" name="prev" value="Next" class="pagerNext" />
August 2009
</div>
The CSS looks something like this:
.cal...
I just noted an annoying factor: Django requires either a restart of the server or CGI access to work. The first option is not feasible if you don't have access to the Apache server process. The second, as far as I know, is detrimental to performance, and in general the idea of running a CGI makes me uncomfortable.
I also recently saw a...
I'm writing a little webapp for mobile.
There is a form asking for a particular item and its details, users should be able to insert one or more items with their details.
If it was a normal webapp I'd use ajax with a link "add one" just like gmail does for attachments. On mobile I think it's not a good idea using ajax, so I used "i'm d...
Both QWebFrame and QWebPage have void loadFinished(bool ok) signal which can be used to detect when a web page is completely loaded. The problem is when a web page has some content loaded asynchronously (ajax). How to know when the page is completely loaded in this case?
...
We have several VB.NET websites running internal applications. These sites are often modified with minor changes, and are maintained on the server as uncompiled code.
I'm looking for the best way to maintain classes so that we can reference them from multiple websites. Specifically, we're looking to put some common functions (error lo...