html

How to tackle with different behaviour of drop down in FF and IE?

This is in continuation of the Question: http://stackoverflow.com/questions/2099564/how-to-add-tooltip-to-a-drop-down-combobox I am using following script to show the tooltip on drop down jQuery('#myDropDownID').hover(function(e){ var tipX = e.pageX + 12; var tipY = e.pageY + 12; jQuery(...

<select> options advanced display

i have a selectbox with Country code values, they have a "short" label (2 letters) and a "long" label (full name). when not selected i want the "short" label to appear, but when clicked and the full selection appears to chose from the "long" labels should appear in the dropdown. is this even possible with html? or do i need to render ...

Resize a set of HTML element.

Hi, I have HTML code similar to <div id="resizeThis"> <div style="background: url(...)">...text...images...</div> ... </div> I want to resize the div with all its contents to arbitrary size. For example, I could use JavaScript to get the div width and then resize all elements accordingly, but what's the simplest way to do this? I ca...

jQuery lazyload plugin

Hi there, I've got a page that contains a list with about 100 images, and i dont want that the browser has to load all of it if the users only views approx. 10 of it. So i've tried the jQuery.lazyload plugin on my page. If i write: $( function() { $('.list li img').lazyload( { placeholder: 'n.gif' } ); }); for the code: <ul cl...

Interfacing <Div>

This is my code: <div id="divCategoryMenu" name="divCategoryMenu" style="background-color:#BCD2E6;"> <ul id="ulCategoryMenu" name="ulCategoryMenu"> </ul> </div> The list is dynamically filled. But there is a problem: When the list fills inside this Div, the items are center-aligned by default when I have not used any align prope...

my javascript in external html is not loading.

ok so in order here is my code /* index.html */ <!-- jQuery Scripts --> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://tdr.host22.com/scripts/li.js"&gt;&lt;/script&gt; <link href="http://tdr.host22.com/scripts/tdr.css...

jquery solutions to post to another site from static html page

Need to post data from a static html page to another page which is hosted on another domain. Normally I'd create and iframe with a form inside of it with a post method, and whose actions is directed to that web page, and finally submit that form. The complexity is I'd collect data from my static html page and create a similar (replica) f...

JQuery selection problem

With this html: <label for="DateOfBirth"> <span>* </span> Date Of Birth: </label> How do I select and remove the span element using JQuery? ...

Not able to move DIV around

Dear Sir, I have the following code:  Stock Update  Update Paper There is a TD inside which there is a DIV and inside DIV there is a Table. DIV's default style is display:none. On mouseover TD, the div should appear like a popup in a given position. But it is not happening. DIV is appearing in the same TD. ...

Pressing "Return" in a HTML-Form with multiple Submit-Buttons

Let's imagine a HTML-form with with two submit buttons. one of them is positioned in the upper half of the form and does something less important. the other button is the actual submit button, which saves the entered data. this button is positioned at the end of the form. the two buttons will trigger different action-urls. experienced u...

images stretched in Chrome

Hi, The two images in the right-hand column of a webpage have been vertically stretched to about 500% of their intended size when viewed in Google Chrome. In Firefox/IE they look fine. The relevant HTML markup is <div class="right_column"> <div class="photo"> <img height="80%" width="80%" al...

Easiest way to convert static HTML documents on SharePoint

Hi there, currently I'm faced with a LOT of static HTML documents to convert to SharePoint (MOSS 2007), basically they can remain static, but need to be migrated into the SharePoint site with the SharePoint look and feel (each page needs to be updated with the SharePoint headers and footers at a minimum), are there any tools out there th...

Better alternative to an iframe?

Hi. I have a page with an iframe to feature the contents of the clicked tab. There are 3 tabs and 1 iframe. The sources of the contents relating to each tab clicked are formatted and coded in other html & css files. What is another alternative to using an iframe, because I noticed that when the tab is clicked, it still shows the white b...

Can an attacker change the src attribute in an iframe?

I have a website that uses IFrame in a page that loads other pages based on server side logic. So, if I do a View source, I would see something like this: <iframe src="DeterminedOnServerSide.aspx" id="myFrame"> </iframe> My question is - Is there any way, an attacker can change the src attribute to point other users to a malicious web...

Finding HTML strings in document - Regex - C#

I want to get all HTML <p>...</p> in a document. Using Regex to find all such strings using: Regex regex = new Regex(@"\<p\>([^\>]*)\</p\>", RegexOptions.IgnoreCase); But I am not able to get any result. Is there anything wrong with my regular expression.? For now, I just want to get everything that comes in between <p>...</p> tags a...

Set default content for target div

Hi. If this is my code, how do i set page1.html to show by default on page load? Thanks in advance. <head>     <title>Test</title>     <meta http-equiv="content-type" content="text/html; charset=UTF-8">     <script type="text/javascript">     function swapContent(targetID, url) {         var target = document.getElementById(targetI...

.Net Method for converting String to HTML Escape Characters

I want to convert an e-mail address into HTML Escape Characters as a basic way to try and avoid being harvested by spam-bots. Like mentioned in this question: When placing email addresses on a webpage do you place them as text like this: [email protected] or use a clever trick to try and fool the email address ha...

problem (IE8) inserting 'alternate rss link ' in "head" section fails. (Succeeds in Firefox 3.5)

We wish to use jquery/javascript to add 'alternate link rss' elements in the section of a resulting html document, i.e. so the orange 'rss' icon shows up on the right side of the browser's url-bar (aka "awesome bar" in FF) Such an approach simplifies adding the 'subscribe' links in the section. Each chunk of the page could add rss lin...

Safe HTML in ASP.NET Controls

Im sure this is a common question... I want the user to be able to enter and format a description. Right now I have a multiline textbox that they can enter plain text into. It would be nice if they could do a little html formatting. Is this something I am going to have to handle? Parse out the input and only validate if there are "s...

HTML cell containing css scrollbars -- how can I get rid of the padding?

I have an HTML table, where each cell contains a large amount of data. I would like each cell to be individually scrollable (sort of like "panes"), so I created a CSS class that includes the overflow:scroll attribute. However, the width is not the same for each time that I employ the CSS class. This is causing a cell padding issue. W...