html

html select execute javascript onload

I am using HTML select onchange event to fire another javascript function func1. This html select is written into a form element, which are dynamically generated when users click on a button. The problem is how can I fire the javascript func1 when the dynamically generated form is first shown ? I am thinking of something along the line...

Second choice font in HTML

This might be slightly basic. Sorry for that but I was wondering if it is possible that the second choice font we specify in HTML (using font/font-family) can be of a different font-size. Eg. Use Lucida Grande, size 13 or Arial, size 14 if that wasn't found ...

big background without scrolls

I have a layout that has a wider background picture than the content area. I have made a 970px wrapper where the content is. And in the body I have a background image but I need to have another background image above the body background image so I have made class bgimg. So basically the markup is like this: <body> <bgimg> <wrapper> <con...

JavaScript/HTML: How do I display an IMG with a set dimension and if the image is wider or taller than that dimension, to crop/hide the overflow?

I have a bunch of images that are guaranteed to have: minimum width = 200px maximum width = 250px minimum height = 150px maximum height = 175px What I want to do is display a consist 200px by 150px rectangle of the image while maintaining scale (no stretching or shrinking). Which means, I might have some overflow. How can I display...

Mixing HTML and STRUTS2 tags

I have a form which has both HMTL tags and struts tags. I use the HTML tags because of alignment issues with struts tags. <s:form action = "setNode" name = "processing" method ="POST"> <script> <!-- createTree(catArray); </script> <br/> <s:radio name="processOption" label="" list="{'Add','Move','D...

how to convert html page to image using java or php

i want to know how to convert html file to image thanks and advance ...

Z-index not working for Embed Code

While scrolling my web page a DIV which have a video is not going behind the top DIV. On my web page a top DIV,which have folloing css styling #header{ font-size:11px; height:25px; position:fixed; top:0; width:960px; z-index:1000; } Now after clearing all floated element,I added a video on a wrapper DIV like same as this way.. <div ...

Get Raw HTML of Node in JQuery

I have used $("#parent").html() to get the inner html of #parent, but how do I get the html of the parent itself? The use case is, I grab an input node like this: var field = $('input'); I would like to be able to get the raw html of that node (<input type='text'>) with something like field.html(), but that returns empty. Is this po...

How to load content from external page using jQuery?

Hello, Is it possible to load content from an external page (not relative) into div using jquery? I mean here by external page is another web application like for example: http://www.yahoo.com There is the code: $("#externalContent").load("http://www.yahoo.com", function () { alert("loading finish"); }); when I use firebug I got t...

A column of a table needs to stay in one line (HTML/CSS/Javascript)

Hi Folks ! So I am having an issue on my entrepreneur business opportunity rating matrix : I would like the radio buttons to stay on the same line. The problem is that I don't know how I should process because if I give a fixed minimum width for the cell, i'm not sure it will display properly on other browsers, and if the cell is to big...

Replace the A tag with the any other tag

I have the following code structure, <a href="sample-test"> Text </a> I am selecting the a using jQuery selector, jQuery('a[href="sample-test"]').css({'backgroundColor' : 'yellow'}); and i want to replace the tag with any tag like <abbr></abbr> let me know how to do it using jQuery. ...

Is it possible to make XSS attacks through html comments with JSP code inside?

Hello! Is it true that following code adds a XSS vulnerability to some JSP page? <!-- <%=paramName%>=<%=request.getParameter(paramName)%><BR> --> It looks like a "leftover debug" and definitely should be removed from the code, but how dangerous is it? ...

Stick div to the bottom of the page

Hi, I have div with position absolute and I want to put another div under. The two divs have diffrent widths. The div above is with position absolute and is centered. The div that should be at the bottom has 100% width. How to make that? Thanks! ...

Best Book on HTML, CSS, Javascript, ASP.NET & Ajax

Hi Which is best book to learn HTML, CSS, Javascript, ASP.NET 3.5 & Ajax? I would like to have a single book covering all the above topics. Thanks Satyaprakash ...

Web page with embedded .NET control in IBM WebSphere 6.1

Hello, I have very simple web page with embedded .NET control in it via the <object> tag. The problem is that when I deploy it to an IIS server it works fine (the .NET control is shown). The same is for the Apache server. But when I deploy it to the WebSphere server I get the html but the .NET control does not appear. Probably it is som...

My textarea won't accept any width attributes.

Hi, for some odd reason the text area I have in my site won't accept the width I tell it to, I've tried to select it three times in the CSS just to make sure! Here is a jsfiddle example that shows what I want, and here is the page where it doesn't want to work. I have searched through the CSS to find any conflicting textarea properties,...

How to insert html in iframe

Hallo all: I need to insert a html string in a iframe as shown below: .... var html = "<html><head><title>Titolo</title></head><body><p>body</p></body></html>" jQuery('#popolaIframe').click(function() { parent.$("#indexIframe")[0].documentElement.innerHTML = html; }); Is there a way to achieve this? Kind regards Massimo ...

CellPadding on VerticalPanel (GWT)

I am trying to set a cellpadding value for my vertical panel. There is an API to set cellspacing (CellPanel.setSpacing()) but none for setting the cellpadding. How do I go about doing this? ...

Setting the value of textboxes with one of their attributes (jQuery)

I have a bunch of input text boxes that have the attribute ORIGINAL set to their initial value, so that when the user changes the textbox value, jQuery can highlight items that have changed (by comparing the text box's current value to the ORIGINAL attribute's value) What Im trying to do now is provide the user with a button that they c...

Viewport bugs when coming back from mediaplayer

I have a web page for iPhone/iPod touch displaying a thumbnail of a video. Quite simple, the thumbnail links to the video itself: <meta name="viewport" content="width=320" /> [...] <img src="images/buttons/video_play_button.png" onmouseup="window.location = 'http://wapshop.gameloft.com/iAd_prototype/videos/video_01.m4v'" ontouchstart=...