html

display: table-cell; in ie6/7 workaround

I'm trying to build a single row css table with multiple cells that has text that is vertically centered inside the cells. Basically the table behaviour I am trying to mimic with css is this: <table width="100%" height="54" border="0" bgcolor="red"> <tr> <td width="20%">text</td> <td width="20%">text</td> <td width="20%">te...

Is there a good "email this" solution?

I like the functionality of Share This, but I only need the "email this" option using my own custom icon. Is there a sensible way to do this? Thanks! ...

Why my embedded video resizes automatically?

Hellogain, this time I have a page which will load different kinds of file formats, well... i use a switch with php to load the correct player according to the filetype. But when I try to load a wmv file, the video automatically grows and exceeds the allowed size that i gave the player... i don't know how to prevent that. Here is my cod...

Adding rows in HTML table using javascript

I am trying to insert rows into an html table with javascript. I have the table created and can add rows successfully with the click of a button. However, I want to be able to populate the rows with elements from several arrays on load. The button is just to make sure the rows are being added. <html> <input type="button" value="Add ro...

Ruby On Rails ERB CSS Layout Question

I have a question with turning this html into erb. <button name="support" type="button" value="Get Support" class="brightOrange"> <span>Get Support</span> </button> I've been trying to do something like this in rails. <% form_tag get_support_path do %> <%= text_field_tag :email, "Email:" %> <% submit_tag "Join", :class=>"bri...

Transparent background on DIV

Why does the inner DIV also become transparent when I use this code? My plan was to have the text visible and transparent background. Do I have to float the inner div over the transparent div? You can see live demo here: http://jsfiddle.net/pBAf5/ HTML <div class="openinghours floatRight"> <div class="content">My test goes here</div...

Adding input buttons using JQuery

I have a interesting problem I need to solve. A customer wants to enter a customer id (using a scanner) in a input element and using AJAX, it will fill another input element with the customer name. A new input element should be added and focus set, so the customer can enter another customer id. I have two issues that I need help solvi...

How to embed object reference in HTML?

I created some HTML code based on a javascript var. I want to update these HTML code when I update the source var. Because I have object reference in the HTML, I know which HTML section to update. How do I accomplish such thing? Thank you. ...

What's the best way to reference an element via ID in jQuery?

Should I be using $("#myElement") or $(myElement)? Both appear to work. ...

align textbox and text/labels in html?

I cant figure it out. How do i align the textbox? I thought using float: left on the labels on the left (then doing it on the input when i notice the input was now on the left without that) but that was completely wrong. How do i get the textbox align along with the labels on the left of them next to the textbox instead of the far left?...

What is the current king of the hill for rich text textarea editors?

Hi all, Just wondering: what is the current king of the hill for rich text textarea editors? Last time i checked (years ago) it was TinyMCE, is there a better option now? Thanks a lot ...

changing property of CSS div using php

I am making some changes on an already established website and need to make the following change. Currently, there are three images and when one of the image is clicked/chosen, a text message displays and after that a next button can be clicked which takes them to the next page. Currently, the next button (an image) shows right when th...

Append numeric value to input name attribute with jQuery

I'm trying to add _1, _2 etc to the end of my input elements in a dynamic form. The user can add as many as they want I wrote this method but it seems to throw errors saying the "dName is undefined" $j("#addBranch").click( function() { //see withDataAndEvents, copie...

Hilight table data when CheckBox is checked and unhilight when unchecked

I have the following check box list inside table. I want to hilight the <td> when a checkbox is checked and unhilight when checkbox is unchecked. I know that I need to add class to <td> when checkbox is checked and remove class when unchecked. <table id="cbDepartment"> <tbody><tr> <td><input type="checkbox" name="cbDepartme...

Help with validation errors coming from Flash param

We embed some flash stuff onto our site (YouTube videos + an audio player), and they're causing most of our validation errors. http://validator.w3.org/check?uri=http://www.greendayauthority.com/&amp;charset=(detect+automatically)&amp;doctype=Inline&amp;group=0 Getting a lot of these Element param not allowed as child of element ...

Scroll visibility

In css, i set the overlow property of the div to scroll and it works well. But the scrolls are visible but not active with a greyed color even they are not needed. So how can i make the scrolls invisible when they are not needed ? ...

HTML Movie player in iPad modal dialog

Hello, I have modal view controller: [ self presentModalViewController: some_controller_ animated: NO ]; In this controller i have UIWebView with player - <video> tag. <video id="player" width="420" height="310" autoplay='true' controls> <source src='<TMPL_VAR NAME=VIDEO_URL>' type="video/mp4"/> </video> It has native contr...

For some reason, the jquery code is not working on my site under IE 8, but is giving off no errors.

It's working fine under chrome, anyone have an idea on what tool I could use to check what is wrong? Or where to look? This is the whole code if anyone is interested, but I doubt it would be of use. $(document).ready(function(){ $('a').click(function(){ $(this).blur(); }); $('.opcion').hover(function() { $(...

How can I display a HTML element at a precise location?

Hello, My question is almost stupid because I think I know the answer but I wanna be sure. Does it exist a mechanism to be able to put a tag at a specific location. I mean, I can set the coordinates X and Y of a tag. Maybe this specific tag should be placed in a special parent tag? Do you know an another way to do this? An example sho...

Bidirectionality in html

Using Sphinx, I'm editing pylearn documentation content at https://bitbucket.org/omidraha/pylearn/. All paragraphs are Right-to-Left (because of Persian language) and code samples between text, rendered incorrectly. Generally I'm looking for a way to apply bi-directionality algorithms of unicode or microsoft on a web page. Is there...