html

Drop-down menu not displaying properly when using jquery form validation

I use this script to validate html form's <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(function...

Is the browser caching CSS background images?

When I have the same image used for different elements (sprite images) I usually don't call that image again as this is a new HTTP request. I rather use: element1 { background: url(someImage.png); } element2 { background-image: inherit; } Is this saving HTTP requests? Or if the browser is smart and I can use: element1 { ...

How Do You Implement an Editable Grid Control in Html/JavaScript that Binds to a Collection of Java Objects?

Consider a simple POJO Java Object: class MyObj { String a, b; Integer c; } My application executes a Struts action and sets a Collection of these on the Http Request: request.setAttribute("myObjects", getCollectionOfMyObj()); The action then forwards to a JSP page, and this is where my questions centres: What is the simplest...

Getting real source code with javascript?

OK I don't use js enough to know, but is there a way to get the real source code of the page with it? document.body.innerHTML for example gives some kind of "fixed up" version where malformed tags have been removed. I'm guessing using XMLHttpRequest on the original page might work, but seems kind of stupid. ...

How do I make my javascript character counter work inside php?

Hello, I have a javascript character counter that I use inside of a text area. It works great in normal html, but when I put the exact same code inside of a text area inside php, nothing. Here it is in html when it works fine: <div id="counter"> <span id="counter_airway" style="font-size:11px; color:#666666;">140 Character Limit</sp...

Editable HTML tables

Lots of WYSIWYG editor implements HTML table functionalities, however I noticed that such functionalities were not spread evenly accross browsers.. And by editable table, I mean the ability to add/remove rows and columns and resize the table with controls like these: However if I edit a table in another WYSIWYG editor I get this: No...

cellspacing differences between different versions of IE

I've noticed, that unless I use a cellspacing attribute set to 0px on my tables, they render slightly differently in IE8 depending on compatability mode. When set to on, the table cell spacing appears larger. I can mitigate this by setting cellspacing to 0, but I want to do it with css, and I can't find anything that causes the exact s...

Keep a div from reloading

Basically, I want the same effect as the oldschool html 'frameset' I think. Take a look at this page please: http://onomadesign.com/wordpress/identity-design/alteon-a-boeing-company/ If a user selects a project from industry -> transportation for example, I would like that the right scrollmenu keeps its initial state when the new proje...

Title Attribute on Disabled Elements in Firefox

I am building a very dynamic web-based application using a lot of Javascript to handle user events. I am in the process of making things a little more usable and came across a problem that I've never had before. I am using jQuery, so factor that in to your answers. Thanks in advance. I have a set of button elements defined as: <input...

Hiding the toolbars surrounding an embedded pdf?

Though I think the answer maybe in this other question's answer concerning the pdf specification, is it possible to not display the adobe acrobat toolbars in an embedded pdf document? ...

Textbox line endings on the web?

I have an ASP.Net page with a multi-line textbox on it. Will the line endings on this textbox be according to the server or the client? What I'm asking is if ASP.Net is running in Linux on Mono will the line endings always be \n or will it depend on if the client computer is running Linux? Are line endings in a textbox determined by t...

Dynamic width DIV next to a static width DIV

Its in all in the title. I'm trying to get a div on the left of the page to a static width 170px; this works fine. What I'm having issues with is getting a div next to it, that scales to fit the remaining width. Is there a simple approach I can use here? ...

How to clip HTML fragments without breaking up tags?

Say I have a 200 character string that contains HTML markup. I want to show a preview of just the first 50 chars. without 'splitting up' the tags. In other words, the fragment should not contain a <b> without a </b>. Any server side processing should be in PHP. ...

Problem with css footer

I'm having a problem with a webpage. I'm using the min-height property to place the footer at the bottom of the page (if content is not long enough) and after the content (if content is longer than the window). There are plenty of tutorials that describe this method and I too did it this way. html, body { height: 100%; } .container { ...

Flash of white screen before page & iframe loads

Is it possible to avoid having the white screen when a page loads? Particularly for the iframes i'm using on my page? it looks odd having a box of white on the screen while the parent contents are themed already. Thanks in advance!! :) ...

loop video and hide controls in firefox HTML

Hi, i have this code, works fine on IE, but in the firefox, it shows the controls and dont loop, how can i fixe it? heres the code: "<embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' name='mediaplayer1' ShowStatusBar='none' EnableContextMenu='false' autostart='true' height='580' width='564...

Glitch in sent mail delete function

Hello, I am still a newbie.So that being said, my site has a messaging system that allows users to delete their sent messages. Its been discovered that if I erase my messages out of my 'sent' box, it erases the message out of the recipients inbox. I have two ways to delete messages out of your sent mail, 'erase all messages' and one by o...

Use the TAB key to navigate to HTML BUTTON or SELECT element in Mozilla Firefox.

How do I do it? I've tried setting the tabindex attribute to no avail. ...

Can you link to a CSS file from an email?

When sending an HTML email can you link to an external style sheet or does the CSS need to be included in the email? Also, if you can link to an external style sheet, which way is more efficient/is smarter to use: linking to the style sheet or including it in the HTML? ...

Use input-submit to represent multiple options.

I have a table of events on a page. Last column contains available actions, i.e. "accept", "tent. accept", "cancel". So if you are an attendee you'll get "accept"/"tent. accept" buttons. If you are the organizer you have "Cancel" option. Now, I have done "Cancel" as <input type='submit'... element, and put "accept"/"tent. accept" as lin...