Is it possible to take a screen shot (using the Print Screen) and paste it from the System Clipboard directly into a web pages text area field (which I would create)? Do I need a browser plug-in? Can Flash do this?
**The solution only has to work in Internet Explorer.
...
Hello
I have enabled the memcache extension for my PHP Apache localserver server (XAMPP)
but I don't know how to use it to speed up my PHP scripts
Is writing the following code in the top of every page I want to speed up is enough? or I should do something else?
/* procedural API */
$memcache_obj = memcache_connect('127....
Edit: derp, using pageX/Y instead of clientX/Y -- apparently scrollBy expects input with that offset rather than the other. Jaggy movement gone.
I am getting jagged movement when doing small scroll increments using the following bindings. Can anyone point me in the right direction for how to smooth this out? FYI, its intermittent. It se...
What are the best practices to prevent XSS vulnerabilities?
A lot of people on here have mentioned whitelists which sounds like a good idea, but I see many people define the whitelist using a RegEx. This seems inherently flawed because it depends on many factors, the least of which is the RegEx implementation and the skill of the perso...
Is there an equivalent for the python libgmail in “C”?
Edit:
I am trying to achieve the equivalent of GmailFS in C.
Appreciate if you can point me to an open source library. This is for a hobby project.
...
HI All,
I want to create a web site in MVC architecture, with out using any frameworks.
What would be the Files/Folder structure (Module/Views/Models).
EDIT: I know the Zend, CakePHP. but my Question is how can we structure in Simple PHP.
I dont want to use any of the frameworks, because i need the maximum performance/speed.
I heard t...
I'm in the process of starting a new web site that is something like stackoverflow but a little bit more different along with making the members profiles highly more customizable I was thinking of building it from scratch using PHP, but was thinking of using CakePHP, but then I thought WordPress sounded better but I remember working with...
In Theory
I have a div (container) that when hovered over one of its child divs appear (drop-down). Drop-down contains links images etc. and when I leave it and container then drop-down disappears.
<div id="container">
<div>Hover over me to see extra stuff</div>
<div id="drop-down">
<div>
<img />
</div>
<div>
...
Hi All,
I have a web application deployed in WebLogic. In one of my java file, I tried to read PleaseNote.txt as following:
File file = new File("PleaseNote.txt");
Now WebLogic is taking PleaseNote.txt from its domain directory.My question is:
[1] Why it is domain directory? Why not the directory where my java file which has the abo...
What is common practice, one presenter for View view and one for Edit view, or should it be all in one presenter.
...
I have a java web application running on WebSphere 7. The application uses form authentication method and part of the application accesses some protected resources using ajax requests. However, when the user's session expires, I am getting the login page in place of the content that is supposed to be refreshed by the ajax request.
Is t...
Situation
I have a few single-responsibility Servlets that take a request, do their job, respond, and are done -- no state need be maintained in these cases.
However, I have I "Plain Old Java Object" that maintains state information based on actions the user has initiated on the client that I would like to make available upon request t...
I am trying to register a custom HttpHandler in the web.config file. MSDN's example shows an entry that is commented out...um which doesn't work so well. When I uncomment I receive a Could not load file or assembly 'HttpModule.cs' or one of its dependencies. The system cannot find the file specified. error. The file name is HttpModule....
I'm getting strange hits to a non-existant file on my site called 'pagerror.gif'. From some basic Googling it appears to be a file that Internet Explorer looks for in certain situations.
Can anyone verify that, and perhaps provide some additional information about when IE would look for that file?
...
I work on a small scale application (about 5000 users), but we do maintain some important user preference data. Whenever we release an upgrade we check if there are users online (we do it after hours and usually there are none) and then just put an outage page and apply the new build (both UI and DB changes). It all takes about half and ...
I am using Google Maps, I have a lat-lon for the first point and a street name for the second point.
How can I get Google Maps to search for the street name in the same city as the latlon?
Also, specifying 1234 Some Street, City, State should work as well as 1234 Some Street
...
I recently discovered Pinax that appear to be an django stack with added most-used apps so easy and speed up development.
I never used or heard of Pinax before and like to know if you have feedback about it. I love Django and would like to understand what are to parts of web dev Pinax helps with and using what tools.
...
I have a web page that I would like to play several mp3's one after the other without gaps when the page is loaded. I have tried a couple of js mp3 player type things (niftyplayer, jsPlayer, flash-mp3-player-js) but all f them have have gaps between tracks. Is there any way to do this, with flash or otherwise?
...
A total newbie question, so please bear with me here ;)
When a key press occurs in a HTML text input control, there are two events that seem useful in managing it (onKeyPress and onChanged). onKeyPress fires after the key has been pressed, but before the operation has been applied to the control's text. The later is only fired when focu...
Is it a good idea to have a website that is setup with basic functions like posting tutorials and registering, or wait until to you have a rating system, commenting system, RSS feeds and much more?
...