html

How to set focus on an div from a button click through javascript

I have a aspx page where in I have made a form. There is a help button on this form.When I click on the help button I have created html code in Javascript. function help_For_admin() { var Message_Help = '<p><b>Admin Page Description</b></p>' document.getElementById("help").innerHTML =Message_Help ; document.getElementById("Div...

Change Font Size to automatically fit Div's height/width

Hello Stack! I'm trying to make text automatically resize to fully fit inside a static 200 width 100 height div. Basically I want the maximum font-size available depending on the lenght of the content fed in the div. I'd like to use the least amount of Javascript/Jquery possible. Thanks in advance! ...

Live Connection from Javscript/html

Is there a way to have a live connection (like for a chat server) with a server using only HTML(5)/JavaScript? ...

Disable caching youtube videos

YouTube achieved quite a feat when they made youtube videos work with cache. However, this is causing a problem on my ajax site and would like to know if there is a way to disable youtube videos being cached. Especially in Internet Explorer. Any one know any solutions? ...

Chrome put content in <td> on a new line. FF Doesn't

I'm creating an overview with data from a database. But in Chrome (and Safari and Opera) The <td></td> content starts on a new line, while Firefox and IE(8) display it on the same line. Name Event: <td>'.mysql_real_escape_string(mysql_result($result, $i,"event_title")).'</td> Max # Persons: <td>'.mysql_real_escape_string(mysql_result($...

HTML+CSS Table, trouble setting borders

Hi all, I'm trying to make a Sudoku board online using an HTML Table and formatting it with CSS. Ideally the output would look like this image: http://www.examiner.com/images/blog/wysiwyg/image/sudoku.png The problem is I'm having trouble setting the borders properly. Below is the code for a single 3 by 3 box, it unfortunately isn't ou...

Background images not showing in Firefox

Hi all, I have a firefox-specific issue with this page : http://www.buzzarab.com/feedback.php It renders fine in IE, Safari, Chrome and every other browser invented by man, but in Firefox the background images do not show (The 'Feedback' link on the left and a white box around the content). Any help appreciated, I'm completely stumped...

rails page titles

I don't like the way rails does page titles by default (just uses the controller name), so I'm working on a new way of doing it like so: application controller: def page_title "Default Title Here" end posts controller: def page_title "Awesome Posts" end application layout: <title><%=controller.page_title%></title> It wo...

HTML table horizontal sizing issue

I'm sure this is an easy problem to solve, but I'm just not much of a html/css wizard yet! I have a table that I generate and the spec calls for there being a fixed header while allowing the body to be scrollable. The problem is, now the horizontal direction is scrollable also, which I don't want it to be. There is no reason it can't ...

Is there a way to force the user to download a file from a href link rather than to open it in a browser window?

Basically I wrote a script that generates a xml file based on user input. After the file is generated a download link appears like so: <a href="path/to/file.xml">Download File</a> But when clicked it opens the xml in the browser, I want it to start downloading when the link it clicked instead. Is there any way to achieve that? ...

What are good JS libraries for game dev? (HTML5)

If i decide to write a simple game both text and graphical (2d) what libs may i use? Assuming we are using a HTML5 compatible browser. The main things i can think of Rendering text on screen Animating sprites (using images/css) Input (capturing the arrow keys and getting relative mouse positions) Perhaps some preloading resource or dy...

Grouping list items (LIs) to OLs/ULs using jQuery

Is it possible, using Javascript and either jQuery or regular expressions, to group multiple sibling list items in HTML as in the example below? I need to convert TikiWiki markup to HTML, and it uses ungrouped lists (just adjacent lines appended with #). <li>Item 1.1</li> <li>Item 1.2</li> <li>Item 1.3</li> <p>Paragraph</p> <li>Item 2.1...

using jquery to slide down to a hash position

My homepage has a series of links. When those links are clicked, I want the user to be brought to a certain area of the clicked page. Typically I would use the following HTML on the homepage: <a href="products.html#link1">LINK</a> Where #link1 is the div I want to scroll to. This time, I want to use jquery to give it a nice elegant sc...

Trying to strip a RSS feed from a specific site (ASP.NET)

Not a programmer here, but I want to strip a RSS from this site, not being the admin, but a user (looking for a job) Usually, for non-RSS sites I use feed43 or Y!Pipes, but with this one I have a problem: the default view is with 5 jobs showing in all the categories. I wanted it to show 50 jobs in one category. So I searched in the page...

Set iframe height to that of internal content (on same domain)

I have an iframe embedded within my page - it's just part of my page, not the whole thing. I am reloading the iframe dynamically and want it to resize according to the height of the content within it. The content is on the same domain, so (hopefully?) no need for a solution as complex as that given in Resizing an iframe based on content...

Items unclickable/selectable/focusable in IE after being hidden/shown with jQuery

I have a set of tabbed divs that I am hiding and showing with jQuery hide() and show(), this works great in all browsers except IE where the tabbed elements that have been hidden, when shown, are not clickable as links, or focusable/selectable as form select, text field, etc. Has anybody had experience with this? Is there some sort of r...

Text Editor(ckeditor) not working inside my DIV box

Hi I have a div box that opens on my page and then loads a html file which contains CKeditor to deal with the text area. The problem is that if I view the html file in my browser everything works well and I have all the editing options. When I use it in my JS script I get nothing. Can anyone help me please ? The JS code that does this ...

Draggable, resizable and movable iframe

I can't find any draggable, resizable and movable iframe on the web. Can anybody help? jQuery would be better. ...

Build templates using HTML/CSS

If you are building a simple website using just simple HTML/CSS/Javascript that has say 5 pages, is it possible to build a template so that the headers and navigation can be called in each page? ...

How to work around IE6/IE7 margins disappearing when relatively-positioned floated div is moved with jquery .hover()?

Here is my code: http://jsbin.com/uhera3/edit When I use jQuery to .hover(), the relatively positioned floated divs jump to the left (seemingly losing their margins) in IE7. Any ideas how to fix this? ...