html

Images disabled on populating data

function a() { var r1 = '<div id="title_t" style="display:inline;font-size:150%;color:white;" > </div><div name="btbar" id="bottom_bar" style="position: absolute; margin-left: auto;margin-right:auto;;">' ; r1 = r1 + '&nbsp&nbsp<img src="first.png" " />'; r1 = r1 + '&nbsp&nbsp<img src="prev.png" />'; r1= r1 + '<label id="c...

Reducing the applet loading time

I have an html file which has a jar file included in it as an applet. When ever i am opening the html file its getting too much time to load the applet. Is there any way by which i can reduce this loading time?? ...

Sticky headers in complex web form (a la iPhone)

I'm designing a complex web form (for trained users, not drive-bys) that has many sections, many of which contain subsections. The form could become quite long, depending on the situation. Usability would be greatly enhanced if (sub)section headers would remain visible until the (sub)section has completely scrolled past. For example, wh...

Why aren't my z-index declarations working?

I have a menu uses nested unordered lists to give the appearance of a secondary dropdown menu. This is working well for the most part. I recently refactored the CSS code to make it cleaner and easier for me to understand, but now I can't seem to get the secondary (dropdown) menu to appear behind the top-level menu. Both elements have pos...

Are there any good php based html filters available?

I am currently in a project with php frontend. We're pretty concerned about security, because we'll have quite a lot of users and are an attractive target for hackers. Our users are able to submit html formatted content that is visible to other users later. This is a big problem because we're vulnerable for the whole set of XSS attacks. ...

jQuery replace text leaving siblings intact

Hi, I'm having trouble wrapping my head around what should be a simple solution. I want to replace text within a label tag, without affecting the other 'siblings', if they exist. Sample markup: <fieldset class="myFieldsetClass"> <legend>Sample Fieldset</legend> <ol> <li> <label> <span class=...

Make array of data from $(this).serialize()

Hello, I have a product page wherein if the user clicks on edit, an overlay form window is populated to make it editable. After the edit is completed and the user clicks submit I want to update the text() of each field of the product which was changed. So instead of getting value of each input field and updating is there a way I can u...

Headers and MIME types for HTML email messages (sending through PHP)

What is the correct header information and MIME types for an email message with HTML content only, not mixed type (with both text and HTML). Just to inform, I am using Swiftmailer (PHP) to this job. ...

special html characters are not rendered correctly in the browser

I am storing pieces of XHTML as text on a search index. Once the user submits a search request, I insert this text in my page and return it to the server. This all works fine except when there is a ISO 8859-1 Symbol in the text (such as a copyright symbol ©). The symbol is not represented correctly in the browser, it is displayed as t...

[Ajax] Holding old image until new image is ready to update.

Hello, I am using setInterval and the jQuery load function to periodically update an image tag. var refresh_days = setInterval(function() { $('#box_name').load("dynamic.php");}, 1000 ); This works, but there is a slight delay before the new image is fully loaded, during which nothing is shown. Is there a way I can wait until th...

Html or pdf from mobile

I have Nokia 2700 How to read html and pdf/djvu from him? Or it's impossible? ...

Conditional comment not working for a <link>

I have a a conditional comment in my page to fix a double padding-top problem with IE7. I am trying to add "padding-top:5px;" to a DIV only in IE7. The rest of the browsers (including IE6 and IE8) use "padding-top:10px;" contained in stylesheet.css. stylesheet.css contains .clImageSamplerText {padding-top:10px;} stylesheet_ie7.css ...

How to create block that is not resized to parent's width?

I have such a situation: <div> <a href="#"><img alt="" src="img.jpg"></a> </div> div { width: 200px; } a { display: block; width: auto; } What I expect is the minimum required width for "a" element given - the width of an image in this case. But instead I got "a" with width of 200px. How to prevent this resizing? ...

What versions of Excel support loading HTML tables?

I can make a simple HTML table in a plain text file, including some simple styles, and open it in Excel, and Excel loads the table cells into spreadsheet cells and even interprets colors/styles. I'm using the latest version of Excel. How long has this feature existed? What's the oldest version of Excel that can load HTML tables? And ...

What in my HTML/CSS/javascript would be causing a strange gap on the right side of the screen?

I currently have in development that's having a problem where there is a gap on the right side of the screen. There is a horizontal scroll bar even when there normally wouldn't need to be, and when you scroll about 10-15px to the right there's a gap running down the right hand side of the site. I do HTML/CSS development all the time and...

How do I strongly suggest the size of a <div></div>?

I have a web page that is laid out in HTML and has some Silverlight imbeded into the main portion. This Silverlight needs to be absolutely positioned on the screen for reasons out side the scope of this question. In order to maintain the flow of the HTML which is statically positioned I wrote the code below. <div id="div2" style="heig...

What's XLSHTML?

What's XLSHTML? I want to generate, as simply as possible, a file which will open in Excel when a user double-clicks it, and which has some minimal styling. XLS meets my user requirements, but it's not easy to generate. CSV is easy to generate but has no styling. HTML is easy to generate and has styling but won't open in Excel when d...

How can I embed a webpage within another and isolate CSS

I need to embed one webpage within another, the inner page will be wrapped by a <div> and not contain the html,head title or stuff like that, however the inner page can contain <link>'s to css that I dont want to affect the outer page I currently fetch the html with ajax and insert it into the outer dom, to workaround the styles conflic...

Drop down price filter

Hello, I created a product matrix/selector using Jquery and its working fine overall except for the price filter which is also working but kinda separate to the selector. Basically, at the moment when a feature is selected from the list it will present the product and if one wanted to filter based on the price they would select from the...

What characters must be escaped in an HTTP query string?

This question concerns the characters in the query string portion of the URL, which appear after the ? mark character. Per Wikipedia, certain characters are left as is and others are encoded (usually with a % escape sequence). I've been trying to track this down to actual specifications, so that I understand the justification behind ev...