html

Label wrapped around radio/checkbox compatibility?

I noticed that if you wrap a radio button or checkbox in a label, the whole thing becomes clickable, even without a for/id pair (in fact, it seems to ignore this because I screwed it up!) Example: <label><input type="checkbox"> some text</label> Then "some text" becomes clickable to check the box. I tested it in FF, Chrome and Opera,...

CSS Multiple multi-column divs

I have a bunch of items (text, image, mixed content, etc) that I want to display. The user can define what row and what column that item appears in. For example, in row 1, there could be two items/columns, both images. In row two, there could be three items / columns, one with an image, two others as pure text. Oh, and the user may speci...

Only allow access of FIle From embed.

Hey All, So I am embedding a PDF file on my page: <embed src="http://www.mywebsite.com/files/ebook.pdf" width="500" height="375"> Is there anyway to prevent any and all access to that file except for when it is being accessed via this embed? Thanks! ...

Form submits correctly in Chrome/FF, but fails altogether in IE/Safari

I have a form with a css submit button. When a the submit button is clicked, i call a function that executes: document.forms["request"].onsubmit(); What should happen, then, is that the onsubmit method ought to be triggered. This works properly in Chrome/FF, but for some reason IE/Safari will bypass the onsubmit function and simpl...

IFRAME renders a HTML text outside of boundaries, a bug?

IE8 in non-compatability view, Version 8.0.6001.18702 The code below represents the problem: <body><div style="height:400px;width:400px"><iframe src="http://mail.ru" height="100%" width="100%"></iframe></div></body> Scroll the IFRAME to the right to the middle of "Скачать Спутник с музыкой" orange label. Alt-Tab to other window and...

iframe accessing parent DOM?

How is it possible for a script within an <iframe> to have any notion of the page containing it? Can a script in the frame access any context outside of it? What about cross-domain? Up until now I believed an <iframe> is completely agnostic to the containing page, but I have seen an example which contradicts this belief. What exactly c...

Open a new page on click of a link on new window

Hi, I have a page in which i have provided a link clicking on which should redirect to a new page on the new window. My code is <a href="javascript:void(0);" class="webMnu" onclick="window.open('http://abc.com','plain');"&gt;Enroll&lt;/a&gt; The problem is that it is working fine in firefox(opens in a new tab) but in internet explo...

Perform jQuery selection on ajaxed html content

Is it possible to load an html document using ajax and then perform a jquery selection on the loaded html? I want to perform a search against a remote search server and then use the results to reformat an existing page. EDIT: the find function doesnt seem to return results (length is always 0). Here is the sample html <html xmlns="ht...

which is better to promote? IFRAMEs or External Javascripts

I want to provide a way for bloggers to use my link list in their blogs. which type of code should i provide? IFRAME or External Javascript ? the different aspects i think that are involved are SEO, Browser Compatibility, Cross Platform, Performance, and the code should be allowed in mose Blog Services. which one do u suggest? ...

Technical reasons for not having large background images in websites

Most websites tend to have either a solid color as background, or a small image that is repeated. Why aren't more websites using a large image (such as a photo) as background? I can think of the following reasons: 1) Problems with different screen resolutions. Too small and gaps start to appear on the left and/or right side for higher r...

IE7 bug, my form input fields get indented

HTML <form id="contact_form" action="#" name="" method="POST"> <label for="name">NAME</label> <input type="text" name="name" id="name" class="contact_form_input" /> <label for="email">EMAIL</label> <input type="text" name="email" id="email" class="contact_form_input" /> <label for="subject">SUBJECT</label> <input type="text"...

HTML: how can I remove this dotted line ?

hi, I'm using Drupal for a website, and I've a link "Unselect All" to deselect all items. How can I remove the dotted line around "Unselect All" when I click on it ????? This is the link: http://www.sanstitre.ch/drupal/ thanks ...

How to start a JS code when the whole page has loaded including images (real on complete)

I want to execute a script after the whole page has loaded, when it's complete. The current way is: window.onload=document.getElementById('loaded').value=1; Which is not good, as some images are still in load, and the page has not completed loading truly. What I am doing wrong? Certainly doesn't work for me in Chrome and Firefox. Th...

background-image in IE

Html <div id="banner" style="display: block; background-image: url('images/swirl_home.gif'); background-repeat: no-repeat; background-color: #e7e7e7;"> <div id="Hi"> some text here... </div> <div id="loader"> <img src="images/ajax-loader.gif" /> </div> </div> Css #banner { b...

How to put text float around image like some newspapers' format using CSS ?

I want my image wrapping with text align like this text text text text text text text text text text ______ text text text image | text text text image | text text text image | text text text _____| text text text (end) I've tried this < DIV style="text-align:justify; text-justify:newspapers; padding:10px; font-siz...

Content boundary with rounded corners

I am using CSS rounded corners for firefox and I have the following problem with content boundaries: Code <html> <head> <style> #outter { width: 200px; margin: auto; text-align: center; border: 1px solid #333; -moz-border-radius: 15px; } #inner { ...

how to replace specific strings in HTML docs or specific elements ?

How can I parse a html document or just a html element in order to replace all specific strings into other ones ? In other terms: - search for all strings #### in element .class - replace them with $$$$$ I'm using jQuery.. thanks ...

How to prevent flickering on click of browser back button

Hi...I am working on Asp.Net application.I wrote the below JavaScript code to prevent the user to not going to login page on click of browser back button when he logs into the application.It is working fine for me,but from the homepage when i click on browser back button,the flickering appears due to post back.How to prevent the flicker...

jQuery: problem with scrollTop

I have the following markup: <div style="overflow:auto;width:500px;height:100px;"> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </div> Mow I'm adding a new listitem with jQuery. How can I make it visible (scrolling the div to it) in case it's hidden? I've tried UL.scrollTop(nuLI.top); but...

How to generate a line break in Django template

I want to give default value to a textarea. The code is something like this: <textarea>{{userSetting.list | join:"NEWLINE"}}</textarea> where userSetting.list is a string list, each item of whom is expected to show in one line. textarea takes the content between the tags as the default value, preserving its line breaks and not interp...