html

jQuery.load() - Inside External Javascript

Hi, i load an external page with $('#myContainer').load('myfile.html'); in myfile.html theres an <script type="text/javascript" src="otherscript.js"></script> Some users report that the otherscript.js is not loaded... i've tested a all common browsers (firefox, ie 6/7, safari, opera etc.) - i cant figure out why this wont work.....

Crash Course in Web Development (PHP+HTML)

Hi, I started this semester Databases course which I enjoy a lot. We are required to work on a project of our choice at the end of the semester. It seems that everyone in my class is gonna do it on the Web. So far so good! But I am the only one out there who don't care about Web Development, and in fact I am at best an advanced user of ...

Change HTML-select element value with mousewheel in Firefox

Hi there, Is there any possibility to tell Firefox to use the mousewheel für scrolling through the select element. In firefox after selecting another value the select element looeses its focus, and in IE it doest loose its focus, so if i use my wheel the onchange event is fired. Try here. Is there any solution? Thank you ...

Textarea contenteditable

I am trying to make a textarea content editable and I am failing. I am using this code: <textarea id='' class='' name='notes' rows='12' cols='67' contenteditable='true' ></textarea> I am expecting a result like http://html5demos.com/contenteditable Does anyone have an idea why it's not working? Edit: I am doing this because I am t...

How to use CSS float without hiding parts of a DIV

When CSS float is used on a DIV, other DIVs that are not floated continue to occupy the space of the floated DIV. While I am sure this is intentional, I do not know how to achieve the effect I am looking for. Please consider this example: <html> <div style="width:400px"> <div style="width:150px;float:right;border:thin black solid"> ...

Is there an Open Source HTML renderer written in C#?

I started to write a HTML renderer in C# just as a learning exercise. I managed to get the simple stuff like bold and headers going. In doing so I bumped into a number of problems and I hoping I could have a look at how other people got around those problems. ...

IE 7/8 CSS Menu Problem

I'm having a weird problem with my CSS drop down menu. It shows up, but it's hidden behind another element, and there is a growing space between the list items. CSS code is pretty standard: /*CSS Menu*/ #navigation li.menu ul { visibility: hidden; position: absolute; top: 40px; right: 5px; height: 15px; padding...

button styling in IE

I noticed that IE sometimes has very large padding around button text. It seems to be proportional to the amount of text the button has. This makes for very ugly buttons. I am hesitant to make buttons with fixed width because of internationalization issues. Same goes for percent widths. How has people dealt with this short of styling D...

overlay html over flash?

Is it possible to overlay a piece of html over a flash animation given this context: -flash contents underneath is NOT clickable -html will contain js link clicking which will open an iframe popup similar to: http://www.dynamic-tools.net/toolbox/popUp/ thanks! ...

With nested HTML forms, is it possible to target which one's content is transmitted upon submit?

I have a form within another form: <form id="a"> <form id="b"> <input type="submit"> When the submit button is clicked, it seems that the outer form is submitted. Is there a way to target which form is submitted? ...

Firefox hides vertical scrollbar if element's height is less than 32px

Hi all, in FF3 (3.0.14) I'm seeing an issue where the vertical scrollbar is hidden on an element if its height is less than 32px. In my (much simplified) example below, the scrollbar doesn't appear on "shouldScroll" - even though its child is larger than it - until I increase its height. Does anyone know if this is a known issue with pa...

Submit Form problem... Enter key

Hi... I have a form containing several drop lists and a text field, and a button... When I click the button, an ajaxfunction is called... the ajax then calls a php function which gets results from a mysql db... The problem is that I cant do the same thing by just hitting enter in the form, the page just gets refreshed... That explain...

another Form submit question...

Hi again... I have a form that onsubmit calls an ajaxFunction()... The ajaxfunction calls a php function which returns results from a mysql db... Problem is the back button... I want users to be able to search and then search again and then use the back button to get back to the previous search, but this wont work... Remember, the form...

Anchor tag, to go to the beginning of a div class w/ USING jQuery

I want to implement a global anchor type of functionality. I want to include a link to the main part of the web page, globally by inputting into my header.inc file. When you select the link, it will scroll to the main part of the page, which is within the div class content-body <div class="content-body"> main content </div> So it ...

SWF file not reliably loading from server

I have created an application using Adobe Flex. I took all the files from the 'bin-release' folder and put it on the server. Then when someone connected to the server through http it is forwarded to the "index.htm". The "index.htm" page is the HTML page created automagically by Adobe Flex during compile time, I just renamed it to that...

How can I convince a client that audio on a website is a bad idea?

I have a client that wants audio to play while the user is browsing the website. Besides the fact that audio is annoying when it starts automatically and plays when you are browsing, I thought of the following technical struggles. Having to use frames to allow audio to play uninterrupted. SEO issues with using frames Having to use aja...

IE7 versus FF floating issue

The following code renders differently in IE7 and FF3 (NEW CODE POSTED OLD CODE WAS MISLEADING - sorry for confusion) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head> <style> #boxr1{ background-color:#FFFFFF; border:3px solid #DDDDCA; float:ri...

file:/// to http:// communication via IFrame

Hi All! Maybe some of you could have ran into the same problem i did. Imagine you have a file on your machine: file:///c:\test.html And you have an IFrame inside of this file. You need to indicate whether the IFrame contents are loaded or no. Bacically, what we have here: 1. location, href, or any other property is inaccessible from ...

HTML Tables - How to make IE not break lines at hyphens

I have some table cells containing dates formatted like this: 2009-01-01. I.E 7 seems to be breaking these into two lines at the hyphen. Is there any way to turn this off? ...

How do I prevent text and/or page content double-click highlighting in html and javascript?

Kind of an odd question, but I have a game I am making for a Halloween party. Javascript/HTML for quick and dirty development. (This is going to be full screen on a projector and use a Wiimote for mouse control). This is what I am using, my question is not intended to invoke criticism of my code choice. It works great, except for one...