html

page transitions with jquery

Hello, I'd to create some transitions between pages. I've made it this way: $("div.fading").css('display', 'none'); $("div.fading").fadeIn(500); $("a.fade").click(function(event){ event.preventDefault(); link = event.href; $("div.fading").fadeOut(500, redirect(link)); }); in redirect have...

Enter key wont submit form in IE6

I have a form like this: <form id="form_main" name="form_main" action="/search/" target="iframe001" method="get" onSubmit="reset_and_subm();"> Enter key wont submit this form in IE6, but will in Chrome, FF, Opera, Safari, and IE8 (haven't tested IE7 yet). IN FACT, NOT EVEN PRESSING THE SUBMIT BUTTON SUBMITS THE FORM. I have tried for ...

HTML and Flex Focus Problem

I have a web page which has a SWF file embeded. I have an issue with the focus. Click on a HTML Text Field and Click on a Flex Field. Begin to type a text. Expected Result is the entered text should go in the Flex TextInput field but the actual Result is it goes into HTML text field. ...

How can I align these two elements

I have a text box and a button, which is described with the HTML/CSS below. Currently these two elements are appearing with the button slightly lower than the text box. Can somebody please suggest how I can get these two aligned so their middles are on the same horizontal axis? Thanks update: apparently the outside world can't see this...

HTML page creation through JavaScript

I want to create an entire page through javascript i.e when i give a path in address bar of a browser the JavaScript will create the entire HTML page using document.write(). I just want to confirm whether it would be suitable doing this? Or if it would lead to any problems? ...

Stripping server side comments in Python

In JSP: <%-- Comments removed in server --%> What is the equivalent when I run in Python/Django ?!? I don't want the HTML comments visible in the client side... ...

removing and inserting tags in HTML

Hi, I need to convert HTML file to iXBRL format. iXBRL format is basically html with some embedded nodes or some information of html file wrapped under ixbrl tags. For this, I will need to SEARCH and REMOVE some nodes from HTML file and WRAP some nodes under iXBRL tags. Can I use XML DOM in C# to achieve this objective. Am I right in a...

is possible to write style for browse button?

is possible to make stylish for browse button using CSS & Js ??? Thanks in advance ...

Browser Auto Scrolling for tabbing through form elements.

Hi, When tabbing to a form field that is below the bottom of the viewport (or typing in a textarea that overlaps the bottom), browsers usually automatically scroll up enough so that you can see the field. Is there a way to set the position the browser moves to? This is an issue because I have a fixed position bar at the bottom of the p...

highlight text in textarea

I need to hightlight the text inside the textarea using css. Text should to be highlighted by default. I have textarea which is normal. Where user type something. I need the text should have some background-color.Not the background-color of textarea. Jus the for the text. Anyone pls help.. ...

HTML textarea min-width ignored when width is set

The min-width seems to be ignored, I cannot scale less than 200px; Any workaround? <textarea style='width:200px; max-width:400px; min-width:100px'> text </textarea> ...

Check if copy and paste is enabled

On Firefox (at least) JavaScript copy and paste functions are disabled by default. Is there anyway to check if the functionality is available so i can hide some buttons if its not? ...

Set maximum character amount on TextAreaFor in ASP.NET MVC

I would like to control how many characters users can write in TextAreaFor. How can I do it, with a remaining counter if characters under the textarea?? My TextAreaFor looks like that: <%= Html.TextAreaFor(m => m.Answer,7,72,null) %> ...

C# How to drag drop a firefox tab to a winform application

In firefox, you can dragdrop tabs to either bookmarks or any text field, but is it possible to drag drop these tab outside of firefox? Also, is there a better way than string vHTMLNames = (string)e.Data.GetData(DataFormats.Html, false); to get a dragdrop of html adress? (It is annoying to have to scan the string to find the adress ...

Favicon format .gif or .ico?

Why use a .gif favicon? Is that for iPhone and iPad can read it? <link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/favicon.gif" type="image/x-icon" /> ...

PHP / HTML - re organize array

Hi I have a array with ID values like this [2,34,7,46,16,19 ...] etc each ID points to more data which I display with html like: <ul> <li> content from 2 content from 34 content from 7 </li> <li> content from 46 content from 16 content from 19 </li> ... notice that in this case there are 3 entries ...

Place background image outside border of containing div

I am trying to set a background image to be outside the actual containing div. <div class="expandable">Show Details</div> .expandable { background: transparent url('./images/expand.gif') no-repeat -20px 0px; } so the "expand" image should basically appear just to the left of the div. I can't get this working, the image doesn't s...

How come in IE I can't center my video?

Why in IE does it not center my video? http://101river.com/record in all other browsers it appears to be fine. <div style="width: 320px; height: 600px; margin: 0 auto;"> <object id="container" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="340" height="540" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/...

HTML Form: why action can't have get value in it?

When i try the following structure, it does't send id=value <form action="some.php?id=value" method="get"> <input name="name1" value="value1"> <input type="submit"> </form> I know that i can send id=value in hidden field, but it's interesting, why it doesn't allow such structure? Thanks ...

How to add a basic jQuery table

How do I add a simple table (2 columns, 10 rows) into a section of a page. It has 10 rows because there will be 10 entries that will be dynamic (changed upon manual refresh) that come from the back-end DB. (Irrelevant but the second column will be a bit.ly address to the entry, per each entry)? Sorry if this sounds terribly stupid, but ...