html

question regarding img tag in html

Hi All, I was just wondering if the <img> tag should be wrapped in <p> tag or it can be just used without <p> tag. Thanks ...

HTML. Set the scrolling bar in a determinated position

I would like to set the position of the scrolling bar in a determinated position. In my case I have in a <div> all the hours of the day by hh:00 hh:30 so 48 rows and I would like to set the position in the current time of the day or aprox. Is there any way to do that? Update I'm talking about a div element. I forgot to put the escape ...

jQuery hide/show <div> element appearing behind image

Hi all, I have a div with a height of 35 pixels and a hidden div with a height of 200 pixels. I have a jQuery function which hides the smaller div and shows the larger div when clicked. This all works fine. The problem is, when the larger appears it is behind an image which is below it. I have set the z-index of all affected object to...

alternate to onchange event in <input type='file' />

Seems really a simple thing but can't figure it out. I've been using the onchange event on element and it works well. Once the user browses and selects a file, I get the path and upload it using a my custom js function. The problem is this doesn't work if a user selects the same file twice in a row, the onchange doesn't fire (which mak...

How to prevent multiple inserts when submitting a form in PHP?

Sometimes the user may press Enter twice, and the post is inserted twice. Is there a solution to prevent this other than check if there is already a post with the same title and content? ...

CSS background with ) in its name?

Hi StackOverflow! I want to display a div with a background image called something like this:"image_(1)_125x192.jpg". It doesn't display, presumably due to the ")". Is there a way around this without renaming the image? #div { background-image: url(image_(1)_125x192.jpg); height: 192px; width: 125px; } Thanks! ...

Turn Div into Link

I'm trying to turn a div into a link. The code below works fine in firefox but in IE the mouse pointer doesn't react to the link. Is there a way around this? Thanks. <html> <head> <style type="text/css"> .test{ width:100%; height:100px; background:#666666; } </style> </head> <body> <a href="http://www.google.com"&gt; <d...

Make radio buttons "checkable": HTML

How do I make radio buttons operate more like a check box? I need the function of a radio button, but it needs to be able to be de-selected. ...

Centering an image within a div

I have already set the border of an image within a div to be none. I now want to center that image within its containing div. I have tried using the margin: 0 auto; but that did not work. I am sure I am overlooking something stupid but I would like to enlist the help of the stackoverflow community so this doesn't take me an hour of st...

XML links not working inside Flash

Hello, I have an XML which should display a simple link inside of my Flash site: <U><a href='http://dat.erobertparker.com/WAStore/shopdisplayproducts.asp?id=1&amp;cat=Books'&gt;Purchase Here</a></U> I am leaving the link as it may be relevant; it is not a simple path i.e. www.google.com. Anyway, you can check the problem by going to h...

how to retrieve particular datas from html page in objective c

I am new to iPhone development. I want to display data taken from inside a html table from a web page. Is there any way to retrieve the data from the table in the html page? Html page is the source code of a page in a website. I have only the url of the webpage. From its source code(html file), I have to retrieve only a part of data from...

Why are my <pre> and <code> tags reading the markup instead of producing code snipets??

I'm working on this resource page for Churches who want to assist my organization (CURE International) in the Haiti earthquake relief effort: http://blog.helpcurenow.org/test/mockups/jan2010/jan2010_haiti_church_resources.html The trouble I'm having is that under step 4 you'll see I've created banner ads and I'm trying to produce code s...

Loop through javascript improvement

The below code works properly, but it is hard coded. I would like to be able to create an array of field sets, hide those fields, then each time I click on the "#createEventForm-eventInformation-addElement" button it displays the next one. The problem with the below code is that it is hard coded and thus would break easily and be much ...

How to space some DIVs in columns without a <br />

I'm trying to have two or more columns worth of DIVs for input elements in a form. It's a very complex form, and some elements will be hidden and shown depending on some answers. The problem is I can't get the DIVs to space accordingly in IE6 while having an effective hide/show. This is what mostly works: .first_column { float:left; ...

Why is <div /> not treated the same as <div></div>

I was just testing this and in both IE8 & Chrome I see the same thing, empty (styled) divs are rendered differently depending which way you do it. It annoys me because the former seems so much neater. Why? EDIT: thanks for the clarifications on XHTML Vs HTML. Currently I have this: <html> <head> <meta http-equiv="Content-Language" con...

How can i include the clicked element's id in an ajax call?

I'm trying to bring over the IDs of the input elements "submit" and "skip" and do some logic based on which button was pushed. It doesn't appear to be coming over in the Request object. How can I do this??? <div id="modal"> <% using (Ajax.BeginForm("Promo", new AjaxOptions { UpdateTargetId = "modal" })) { %> <div id="mo...

z-index not working properly in FF3, works in IE & Chrome

So I was expecting problems getting my site design working on IE, but not FF. However after some investigation I've narrowed it down to this simple test case. <head> <meta http-equiv="Content-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Test</title> </head> <body bgc...

Tracking opening of an Overlay element.

I'm using a Yahoo User Interface Overlay on a page, and wondered if there is anyway to track interaction with it, if only just how many times its been opened. The overlay is triggered by click on an image, is there something I could add to this event? ...

(python) sgmlparser and how to extract data between tags, not attributes/values

Every example I see for sgmlparser involves finding a tag, then finding the attributes/values of the tag. So for it would be the ability to extract 'google.com' out. but i want the data between tags. so if i used sgmlparser, i would look for and extract out everything in that div until it's closing tag. is that the job of sgmlparser, ...

How do I create an animation of scrolling text with just HTML and CSS (or java i guess) like apple used to have on their livepage?

I have a banner at the top of my website that is blue with a light radial gradient on the left side. I want to have white text animated that scrolls up on the right side of the banner. I want it to fade in as it appears and then fade back out. I would like to do this without the use of Flash, and as little Java as possible. I can wo...