html

How to Post the password using ajax() function of jquery

I am having a Password textbox which will have empty value. when the user clicks on it and enter password, onblur of the textbox, the password will be updated the database. I have done that using ajax but i want to know whether any security hole in this script. am afraid the data we are sending from ajax() function can be changed using...

HTML within a div takes parent HTML's CSS

Hi, I have an HTML as following: <html> <head> <style type="text/css"> a {color: red} </style> </head> <body> <div> <html> <body> <a href="#">Test Link</a> </body> </html> </div> </body> </html> "Tes...

how to trigger onclick function in Html Check box when its status changed to checked.

Hi, I have a page which lists the Employee. In the left side of the list i have checkboxes to select. So, i have Select all checkbox also in header.When i click on select all check box it will selects all check boxes below. But i have javascript in onclick event for checkboxes in down not for select all checkbox. when i select all the ch...

Preserve line breaks in HTML,JAVA,Spring

Hi, i have a web application built with HTML(front-end),java(server-side) and i have a textarea when posting some data with line breaks (pressing enter after a word) the line breaks are not reserved (the data appears next to each other with no line breaks) how to preserve the line breaks ?, note that i am not using the tag when displayi...

Tracking a child window across page loads

Is it possible to track a child window if the parent page is reloaded? I currently open the window like so: var childWindow; childWindow= window.open('url...'); and when I want to reopen the same child window I do childWindow.focus(); The obvious problem is that if the parent window is refreshed then it loses track of the chi...

Keep semantic and things mullable via css

Just working on some Spark view engine ASP.Net MVC code. Simplified example (but I've probably written same thing a few times over in similar style). Just doing of thinking.. <content name="main"> <ul> <for each="var userViewModel in ViewData.Model"> <li> <ul> <li>${userViewModel.Identity}</li...

strip_tags plus annotate links

Note: The input HTML is trusted; it is not user defined! I'll highlight what I need with an example. Given the following HTML: <p> Welcome to <a href="http://google.com/" class="crap">Google.com</a>!<br> Please, <a href="enjoy.html">enjoy</a> your stay! </p> I'd like to to convert it to: Welcome to Google.com[1] Please, enjoy[2...

Java Regex pattern to get anchor text

I have a page source and i want to get the anchor text of all its anchor tags Could someone please help me out with the pattern for it. Thanks in Advance ...

Cross-browser, clean solution for drop-down menus across frames?

Let me start off by saying I really like Superfish (& jQuery). Unfortunately, this - apparently? - does not offer cross-frame support out of the box. Situation: extranet website, consisting of 2 frames, divided horizontally. The top frame (the smallest one) contains a menu. When hovering over this menu, the "drop down" content gets disp...

Different Image have different dimensions

I have a image gallery, my requirement is to apply diffrent image sizes to all image my html markup is <div class="post-attacthe-img"> <ul> <li><a><img src="1.png"/></a></li> <li><a><img src="2.png"/></a></li> <li><a><img src="3.png"/></a></li> <li><a><img src="4.png"/></a></li> <li><a><img src="5.png"/></a></li> <li><a><img src="6.pn...

html table border always appears in IE8

I am rendering a html table using javascript & jQuery. The aim is to show a colored box (table with colored td) if there is a color supplied by parameter. If not then show nothing (so i am showing empty table with  ). But for both these cases I do not want to show any border. I want a flat color box / empty white box. if (colors == null...

PHP - HTML Form TEXTAREA containing HTML

I'm using a HTML form's TEXTAREA field that will contain text and it may can contain itself some HTML tags. I have read here that this should be managed using htmlspecialchars function, however this will show the HTML tags in a way it will be quite difficult to allow easy editing of the HTML code into the form TEXTAREA. What is the safer...

zoom and rotate image , option in iframe

hi i want to know zoom plus and zoom minus and rotate the image in iframe. thanks in advance; ...

jQuery functionality not propagating to all areas of page

Hi, I'm using the 'timepickr' jQuery function, the problem is it works ok in the main webpage, however when I invoke it through an AJAX call, the funcionality is non-existant. The input box is displayed fine, but the mouseover funcionality isn't there. Code I'm using as follows.... This is the page that contains the "div2" div: Note...

Anchor tag becomes non-working link in a div with float: right;

I have a link inside a div that floats to the right of the screen. The link does not work in FF or Chrome, but works in IE (have only tested with IE8). The simplest example looks like this: <html> <head> <title>test</title> <style type="text/css"> #logo { left:10px; float:left; top:10px; } #feedback { float: right; } ul#menu { ...

Adobe Reader plugin forbids embedding PDFs from ouside domains

One part of web application is local digital signing using activex component. But I want to display a PDF that gets signed beforehand and after. Since documents can be quite large I would'n really want uploading them and then again downloading for displaying. Therefore I wanted to embed a PDF using local path (eg. file:///) but Adobe th...

QuickTime MOV embedded in HTML page: Can't get controls to appear

Video plays fine, but the controls (play, stop, rewind etc.) don't appear, despite setting the "controller" parameter to "true". <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="320" height="260"> <param name="src" value="myvid.mov" /> <param name="controller" val...

Hitting "enter" from an input (text) field when a form has a "submit" input

I'm trying to figure out something having to do with the behavior descibed by this old question from last year. I've got a form with a single input text field, and a single "submit" button. Unlike the person who asked that question, I want the form to submit when the user hits "enter". Indeed, that's working for me; what's not working ho...

determining the height of an element

After setting the height of some element (say a div) to auto, still can I get the height of this div in pixel or may be in some other units ...

PHP - compress static css file with GZIP

Hi so I have a css file, style.css. in the same directory I have the images/ folder. How can I make a script that compresses style.css, but from another folder? Right now I have this: <?php if(isset($_GET['css'])) $file = array('url' => htmlspecialchars($_GET['css']), 'type' => 'text/css'); if(isset($_GET['js'])) $file = array('ur...