html

Tableless html alternative

Can someone show me some html to layout the following not using tables? ______________________________________ |_______|_____________| | |_______|_____________|_______________| |_______|_____________| | |_______|_____________| | |_______|_____________|_______________| The third column needs to...

Accessing Javascript Instance from Child iFrame

Can the parent's Javascript variables and functions (essentially the entire runtime instance) be acessed from a child iFrame? Examples: Parent function foo() Child IFrame :function bar(){ alert(foo); } $(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); }); }); Questions 1)Can ...

jQuery: how to update a div when pasting in form (like facebook)

I have an input field where a user can paste a link. I would like to have a div appear as soon as the user adds a URL to the input field. Until now I used .blur and .onfocus, but the div only appears once I click outside the input field after pasting the URL. It's like on Facebook: as soon as you paste a link it will load a box without...

IE6 expressions

Let's say I have this markup: <div class="foobar"> <div style="height:expression(this.parent.style.height + 'px')"></div> </div> My expression doesn't work, but you can probably tell what I'm trying to do by it: get the height of the parent element. Please, if you cannot answer the question do not bother replying. This is for a VE...

Automatically scroll down with Jquery?

I have a modal box with a defined height. Inside of this box there is an accordion box that expands when a user clicks a link. The height of the accordion box when it is toggled exceeds the height of the modal box and thus a scrollbar appears. I would like to automatically scroll the bars down to its lowest point to display the new con...

PHP: Problem with varible printing inside javascript

Hi, I have problem with varible printing inside javascript. varible htmlString printing not working: document.write(htmlString) <?php $htmlString= htmlspecialchars(file_get_contents('http://google.com'));?&gt; <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <bod...

disc to left of list item displaying at bottom

Screenshot of what is happening http://cl.ly/64231bb27eea3e9551e1 It is just a list item within an underordered list, this is happening in IE7 and nowhere else. <ul> <li>Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler te...

Input box precise text selection

I have an input box: input type="text" class="rulerInputText" id="rulerInputBox" readonly I have Javascript code to detect the selected text and play around with it. The issue comes when I am allowing the user to actually select text. The text is basic with spaces. When the user begins selecting, there is no issue, but when a space is ...

Centered content with drop shadow and a pattern background. Is transparent PNGS the only way to go?

If so, which PNG IE fix would you recommend? ...

$(window).height() reports wrong height in IE8 (jQuery)

I have the code below. IE8 displays a smaller height. The difference is over 100 pixels. It works fine in FireFox. Why doesn't it work right in IE? <html> <body> <script type="text/javascript" src='<%=ResolveUrl("~/includes/jquery-1.4.2.min.js") %>'></script> <script type="text/javascript"> window.onresize = ff; fu...

loading value into a select?

when loading my form (from variables) i can easily set the value of most text form items with the value tag like this: <input type="text" name="fname" id="fname" value="<?php print "$fname";?>" /> how can i do the same with select input form elements? i guess i have to use a script? thanks a lot ...

JQuery $(document).ready ajax load

I looked at quite a few of the related questions and I must be asking this completely different as I saw only a few that seemed to relate. I am loading an entire middle div via JQuery Ajax call and I simply want to be able to do some automatic JQuery on that new area like $(document).ready allows when a DOM is being loaded. I read that l...

Different Behavior of XMLHttpRequest for <input type="button"> vs. <button>

Hey guys, Consider the following code: index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <script type="text/javascript" src="script.js"></script> </head> <body> <form> <button id="getInfoButton1"></button> <in...

Weird positioning of flash object in Chrome

This link displays properly in firefox, but the flash youtube player loads way down the page in chrome. What am I doing wrong? http://www.computerlabsolutions.com/success/video_testimonials_test.cfm ...

Vertical Bars in HTML/CSS

How would I go about constructing vertical bars, all adjacent to each other (touching) from the left side of the page to the middle (all the same size in width)? ...

Offset viewable image in <img> tags the same way as for background-image

Using plain <img> tags is it possible to offset the image in the same way as you can with CSS background-image and background-position? There are main images on the page and it makes little sense to have separate thumbnails when both will be loaded (thus increasing bandwidth). Some of the images are portrait and some are landscape, howe...

css html footer

I am re-writing this question to better convey the problem: I have 3 output mechanisms: Screen PDF Print PDF's are generated using the same media type as screen. On screen: I just want the footer to appear below the content ... Simple... easy! PDF: I want the footer to display at the bottom of the last page of the content Print: ...

CSS - Why file upload control doesn't follow the CSS width rule?

Hello all, I have the following HTML code: <input type='file' class="" maxlength="96" size="16" value="" name='headshot' id='headshot' style="width:21.5em;"/> It seems that the "size" value controls the real width of the "headshot" rather than CSS. In order to make it a idea width, I have to use the following code: <input type='file...

How to break long single word in <td> using CSS?

in a td of a table i have a very long single word "Pneumonoultramicroscopicsilicovolcanoconiosis" and i want to reduce the width of table but unable to do because of this long word in one of the td i can break this word by giving <br /> but is there any CSS way to break this word according to available space. without giving line break or...

javascript jquery show/hide of columns

<table id='mytab'> <tr> <td colspan="6">OS</td> </tr> <tr> <td></td> <td>Fedora</td> <td>Cent Os</td> <td>Ubuntu</td> <td>Suse</td> <td>Redhat</td> </tr> <tr> <td colspan="6">Versions</td> </tr> <tr> <td></td> <td>6</td> <t...