Say I have a web application that accepts a parameter called "content". Whatever is present in this parameter will be output as a part of the HTML response.
Example JSP code:
<%= request.getParameter("content") %>
I know this is silly and it should be sanitized and so on, but my question is if an attacker can actually take advantage ...
Is there a way to make jquery wait a certain about amount of time before mouseout event is fired?
It is firing too early at the moment and I'd prefer to wait 500ms before it evaluates the mouse out. An example of the code I'm using below.
$('.under-construction',this).bind({
mousemove: function(e) {
setToolTipPosition(this,...
Hai,
I have some parent catogories and sub categories in wordpress. I would like to have parent catogory as a main horizontal menu and sub menu as a sub category of that specific parent catogory. Both main menu and submenu should be in the horizontal structure. So on mouse over of the main menu will show the submenu. could u guys help m...
<script type="text/javascript">
/* ... */
</script>
vs.
<script language="Javascript">
/* ... */
</script>
Which should be used and why?
(edit) Or, the third alternative: omitting either of these, such as the example code in jQuery's API reference:
<script src="http://code.jquery.com/jquery-latest.js"></script>
...
My problem is, that the browsers' (IE&FF) autocomplete does not work for my login form.
I have a webapp with CakePHP & jQuery. To allow visitors to login/register unobtrusively. The login form is inside a div, which is loaded via AJAX. (This enables logging in without a page reload.)
The browsers do recognize it as a login field, as th...
Hi,
How to bring the read more link at the end of the post in the home page of my blog?
Basically in my home page, it display all the content of the post, i would like to limit the characters to display
thanks
...
i have div take css class
.headbg01
{
background-image: url(../images/header_background01.jpg);
border-left: #cccccc 1px solid;
background-color: #ffffff;
width: 920px;
background-repeat: no-repeat;
height: 160px;
border-right: #cccccc 1px solid;
}
its working great in ie
the problem is the bg image doesn't appear properly in...
<Extension()> _
Public Sub Save(ByVal b As Bitmap, ByVal FileName As String, ByVal Compression As Long, ByVal MimeType As String)
Dim Params As EncoderParameters = New EncoderParameters(2)
Dim CodecInfo As ImageCodecInfo = GetEncoderInfo(MimeType)
Params.Param(0) = New EncoderParameter(Encoder.RenderMethod, EncoderValue.Rend...
There are lots of quasi-duplicates to this question, I know: http://stackoverflow.com/questions/106646/webpage-template-where-content-takes-full-height-of-viewport-if-has-1-line-minus is one, but that's not what I want; there's this hilarious question: http://stackoverflow.com/questions/371781/how-to-create-an-html-css-page-with-header-f...
Hello stackoverflowers, hope you all are doing great.
I admit I got kinda confused with Http requests and responses, so I'll begin by presenting my problem.
I made a webpage that takes user input, processes it and uses XMLHttpRequest POST to send the processed data to another page and display said data into said page.
Now, I can form ...
In the program I'm writing I need to be able to access the node that is sending an event in javascript.
I have been unsuccessful in using this, as it is referring to the object in my code. So the following doesn't work.
var node = new node();
// Node Object
function node() {
// Create Sibling Node
this.createSibling = function() {
...
I have a favicon with the dimensions of height=26px / width=20px named favicon.png
<link href=http://www.example.com/images/favicon.png rel="shortcut icon" />
However, in my browser, my favicon.png is all distorted.
Question: Is my favicon.png suppose to be a particular size/dimension? Also, can I use a none standard size/dimension a...
hi
i would like to produce a online windows 2003 emulator
so anyone can use windows 2003 through a browser instead of
installing the software - something similar to temulator www.temulator.com/- and zen internet emulator va.zensupport.co.uk - i have basic html & css skills
can it be done using html/css or is it better to use java/fl...
I am developing the back end of a CMS that I have been working on.
I have a HTML table that I want the user to be able to add and remove rows from. Each row will contain various user inputs (textboxes, checkboxes..). Then when the users has finished it will be saved in the database.
I am wondering what the best way to approach it is.
...
I'm Working with form validation and fields for the first time without inline event handling. I can't find an example of how to pass a integer value, do a operation on it and pass to another field. This is what I'm up against:
FORM LOOKS LIKE THIS:
ITEM CONTAINER QUANTITY PRICE EXTENDEDCOST
Small Beer Bottle,Can ...
So I'm really trying to use divs exclusively, as opposed to using tables for layout purposes, but I'm still getting stuck here and there. Today I have one of those cases.
Consider the following markup:
<div style="width:943px;margin:0px auto;height:auto">
<div style="display:block;clear:both">
<div style="float:left;display...
Is there any cross-browser way to italicize select options? With the following CSS and HTML, FireFox shows the second option in italics, but not the third. None of the options are italicized in IE 7 or Safari.
<style>
option.bravo
{
font-style: italic;
}
</style>
<select>
<option>Alpha</option>
<option class="bravo">Bravo...
We have a CMS system that we're currently taking the admin back end and converting to Silverlight 3 or possibly 4 by the time we go to production. We wrote a custom JS / DHTML editor to suit our needs, and will need to do the same now in Silverlight. Has anyone seen any clues to a base functionality that we could build upon for our own ...
So I am trying to make it so a user clicks a button to email me, a js alert box pops up with a message and then after they click ok it goes forward with the email link. This is my code thus far:
<a href="mailto:[email protected]">
<a href='javascript:window.alert("All reservations must be made by phone!");'>
<img src="http://wfi...
whenever the page's height is larger than the web browser window a scrollbar will appear to the right so you can scroll down/up in your page.
could scrollbar be displayed with javascript/jquery all the time even if there is no need for it? (has to do with a layout issue i've got)
...