html

IE8 - Container with margin-top: 10px has no margin

EDIT: This happens only in IE8, it works fine in IE7, Firefox, Opera etc First of all, here is a picture I have made in photoshop to demonstrate my problem: http://richardknop.com/pict.jpg Now you should have idea about my issue. Here is a simplified version of markup I'm using (I left out most irrelevant content): <div class="left">...

Is there a way to have the title attribute of an html element to display for a longer time?

Without using tooltip plugins or such, is there a way to extend the duration of time that the title attribute of an html element will display for? thanks! ...

How to send HTML form RESTfully?

I have a URI for a collection of resources called 'facts', and URIs for each 'fact' resource in that collection. The form for creating a new 'fact' should be requested with a GET, I believe, but I'm having trouble deciding what URI it should be made to. A GET to the collection URI should return a list of the 'fact' resource URIs. Each ...

TinyMCE issue where all text is getting centered if user centers top line

I have a website where i embed tiny mce to allow the users to edit the main content on the site. The issue is that if a users highlights the top row and clicks center button, the text alignment for the entire document (multiple paragraphs) all get centered. has anyone seen this or have any suggestions? ...

JQuery html on a different pages

Hey guys, One of my pages is becoming overcrowded with html forms and js. So I was wondering if there is a way to have the form on one page and then the js on another. If you could refer me to a good site that addresses this I would really appreciate it. Thanks ...

Sifr Horizontal Menu with LI

Hello, I am designing a very simple horizontal menu with sIFR and CSS list. The thing about it is that it assigns a certain width to it that makes texts of different widths´ spacing look weird on screen. I´ve seen a default width and height of a certain amount, but what I need is to make it so that the flash is exactly the size of the ...

Jquery Animate Background Image Transition

I have a navigation bar that when hovering over an item, the background image is changed, that works fine. However, I would like this image to slide in from the top, and slide back up when you stop hovering. I've been trying to do this with JQuery, using css bacgroundImage and sliding or toggling, but none of that seems to work. How can...

Tabbed Browsing Causing Javascript Inconsistencies?

In a tabbed browser (FF 3.5 in for me), I often open links in new tabs with CTRL-click or middle-click. When the link contains a Javascript function, either: A blank new tab opens with javascript:window.print() or what-have-you in the address bar. The function executes successfully and a blank new tab opens. Thing is, this doesn't s...

Weird CSS behavior (sprite nav w/rollover)

Here's the navigation image in question: What I want to do is pretty basic and I've done it numerous times in the past, I just can't understand why it isn't working right now. Basically use the above image as the nav background and adjust the widths and background-positions accordingly. Here is my CSS: #navigation { width: 960px; h...

How does the Javascript print function work? Can I create a document using javascript and print it off?

I know you can use window.print() to print the current page... but what I want to know is can I build a document using javascript in order to populate it with data and print it off? Just like you can have html/xml as a javascript object, can you do something similar to this: var name = "Matt"; var htmlDocumentToPrint = "<html><body><di...

Get Search Engines to link to sub-pages instead of index

I wrote a blogging system from scratch (http://seanhess.net). I have the last 10 posts displayed on the index page /, and each post has it's own page /post/a_simple_post. I'm getting a good rank in google when I search for specific info from my posts, but google links to the index page instead of the post page. How do I get the search en...

Can a Flash application alter the HTML of the page it's on?

Suppose I have a flash application; let's say a chess game. The user is playing against a computer opponent. After every move, I want the flash application to add the move's "description" into the HTML of the page. Does flash have this ability? Are there any common round-about ways of doing this? Maybe the flash app updates a databas...

Should I specify height and width attributes for my IMGs in HTML?

If I know the height and width of an image that I'm going to display with an image tag, should I include the height and width attributes, or just put the information in CSS? Or both? Ex. <img src="profilepic.jpg" height="64" width="64" /> or <img src="profilepic.jpg" height="64" width="64" style="height: 64px; width: 64px;" /> or...

how does facebook do this onkeyup and onchange at the password change?

I noticed that in the facebook the change passwords, they have this nice alert at the bottom telling you that the passwords do not match or if the confirm password is too short. However when i use the firebug, i do not see any onkeyup or onchange. And they did it very well regardless whether i type or if i copy a string and paste, it w...

Detect key event (Enter) with JQuery in Javascript (on Linux platform)

Hi there, Update: =========================================== I finally figured out that "keypress" has a better compatibility than "keydown" or "keyup" on Linux platform. I just changed "keyup"/"keydown" to "keypress", so all went well. I don't know what the reason is but it is solution for me. Thanks all who had responsed my questi...

Div content not refreshing in IE (screen refresh)

my application working well in all browsers except IE. In my application I have a div popup form which contains some fields. In the text box it i pressed any key it was not displaying. If i move the mouse then the entered texts are displaying actual thing is screen not refreshed How to solve this. mycode: <form> //this is popup for...

Jquery ajax onSuccess event

I am doing AJAX with JQuery but every time the "onSuccess" event must be executed after another AJAX request disconnected. Here is the code: d.ajax({ url: f.options.url.offline, dataType: "jsonp", jsonp: "callback", cache: false, data: { status: "offline", ticket: f.co...

Recommended tools for a beginner PHP programmer on Windows?

I'm going to teach PHP (plus HTML, plus MySQL) to a complete beginner. What tools do you recommend for Windows in term of editor, web server and general set up? ...

Converting sanitised html back to displayable html

I'm getting html data from a database which has been sanitised. Basically what I'm getting is something like this: &lt;div class="someclass"&gt;&lt;blockquote&gt; &lt;p&gt;something here.&lt;/p&gt; &lt;/blockquote&gt; And so on. So if I try to display it, it is displaying as <div class="someclass"><blockquote> <p>something here</...

HTML Frame Source

Hey is it possible that I insert the source for a frame in the same page in which it is defined. Like instead of giving the location to the document, can I insert the source in the frame tag? The problem is I'm calling a function, which is not valid in the other page. So I have to call it in the same page, Got mE? ...