html

more then one dragable div on the page

Hi all, I am using AJAX toolkit controls like DragControlExtender, AccordianPane etc on my page. I am plotting the Accordian Div on the map. Now on click of a button I want an another div (draggable, regardless through javascript or by DragControlExtender) should be visible and draggable. It should remain on the top of the google map b...

jQuery Getting Wrong Value from Checkbox Group?

Given the following code, jQuery seems to only alert "1" as the value even after the user has selected radiobutton 2. What am I missing here? Shouldn't the trailing jQuery alert "2" when the second radiobutton is selected? <p> Coal <input type="radio" name="example" value="1" checked /> Candy <input type="radio" name="example" val...

li ul li is too long, line wraps but no indention

Hey i've a ul li .. list. If the second word is too long it wraps automatically but it doesn't indent the line. Any ideas how to solve that? Here is the example: http://tinyurl.com/yk32ek6 Then "Leistungen" and then click on KINDERZAHNHEILKUNDE. Now you see what I mean. Thanks for the help! Probably it's because of the css. don't know...

Problems with IE7 keeping two buttons in a same line

Hi all, I have a problem with IE7. I'm trying to put 2 buttons in the same line.. but its not working only for IE7 in all other browsers it works as it should( didn't check IE6, will no check). Here is a picture so you know what I mean This black border you see is just something I put so I can see how long/tall is my div. Which css s...

Is it possible to override radio buttons style with css?

I need to make special radio buttons, is it possible to make my own images to cover default style of radio buttons? If it is not possible what is best way to do this with jQuery or is there good plugin for this? ...

Embedding Content (iframes) with an HTML 4.01 doctype?

I have some existing code that I have been tasked with upgrading to a valid doctype of HTML4.01 strict. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; In the code I've come across an <iframe>, and this does not sit well with the w3 validator. <iframe OnLoad="javascript: LoadAddAtt...

Can I style a disabled control using CSS or script?

I have a HTML div element on a page that is updated when a select element on the page changes. Sometimes the input tags (text boxes) need to be disabled based on the selection. Here is the problem: the project stakeholders like the functionality, they just think in the "disabled" state, the text box contents are too light and therefore...

access iframe with DOM

In the following code, the alert works fine and prints "DIV : IFRAME" as it should however it then says that cNs[1].childNodes[1].document has no properties. Html: <div id="WinContainer"> <div style="display: none;"><iframe id="frame1" name="frame1"></iframe></div> <div style="display: none;"><iframe id="frame2" name="frame2"></ifram...

HTML text does not disappear... both is visible!?!?!

After including sIFR3 and configure the sifr-config.js the new flash-font is shown. But also the HTML-text is visible. How can I hide the old html-text? ...

Workaround for currentStyle in Safari

Accessing an html element's current style using Element.currentStyle only exists in IE. Is there any easy workaround for Safari or other non-IE browsers? ...

HTML/CSS - Styling a large collection of hyperlinks?

I have a Master Links HTML page in use for my Intranet sites. On the page are 67 distinct links which are grouped under 7 section headers. Currently the links are organized via tables. Is there a better way to organize the links while making them visually distinctive? ...

In Google App Engines, how to display the HTML source of a page of a fetched URL in Python ?

Hello everybody!!! On Google App Engine I found this code that is fetching a web page's URL: from google.appengine.api import urlfetch url = "http://www.google.com/" result = urlfetch.fetch(url) if result.status_code == 200: doSomethingWithResult(result.content) Is this the right code to fecth that page's HTML source? Does the resu...

span css help IE7 - How can I set the width?

I have this CSS and I cannot get the width set on a span element. Any ideas what I am doing wrong? #address-readonly { margin-left:150px !important; padding-left:100px; } I am using this in 2 areas in my application. Here is some of the HTML <tr> <th colspan="2">Address Details</th> <th><span id="address-readonly" class="a...

How to produce HTML new line by putting metadata in Oracle table.

We have a CRM solution where all metadata stored in Oracle table (don't ask me why). I am issuing an update statement but when get the data from database I see on front end '\n' as part of the text and not new line (like HTML's <br/>). I was trying to put directly in description but it shows as br/ on front end. What escape charact...

How to select all content between two of the same tags?

A similar question was asked before, but I'm looking for a jQuery solution using only the html below (ie. no classes or id attributes): <h2>Foo</h2> <p>asdf</p> <ul><li>asdf</li></ul> <p>asdf</p> <h2>Bar</h2> <p>asdf</p> <p>asdf</p> <h2>Baz</h2> <p>asdf</p> <p>asdf</p> I'd like to use some jQuery like: $('h2').afterButBeforeNext('h2'...

Service/App for viewing a Webpage as hex straight off the wire?

Are there any tools/websites/utilities for viewing a website in hex as it comes strait off the wire? I'm getting some strange non-printing characters back from somebody else's C++ code and I want to identify the characters to find out where they are comming from. I'm concerned that writing the file to disk messes with the characters ...

Javascript file- is function in error? Need help!

I am trying to see if my JavaScript file's function is written correctly in order to display "Sunday, December 24, 2006". So here is the function: function XmasDays(thisDate) { var XMYear = thisDate.getFullYear(); var XMDay = new Date("December, 25, 2005"); XMDay.setFullYear(XMYear); var dayTotal = (XMDay-thisDat...

Can I Toggle HyperLink and TextBox?

I have datacolumn in my gridview that has either a url, or plain text. How do I toggle a Hyperlink in the HTML? This is what I have so far... which returns "View Link..." with or without a url :( <ItemTemplate> <asp:HyperLink ID="HyperLink3" runat="server" Text="View Link..." NavigateUrl='<%# Bind("DocLink") %>' Target="_blank"><...

Grab HTML code from web

I'm working on a project for fun but i want to grab just the html code from a website which I will later have to extract just the links. I've been googling for a few minutes and I haven't found anything that does what I want specifically (just the text). ...

Putting a div on a new line (problem caused by floating <ul> elements)

So I have a 3 unordered lists like so: <ul class="menu"> <li class="heading">Title (Click To Download)</li> <li><a title="Download sample.mp3" href="http://example.com/sample.mp3"&gt;Sample Song</a></li> </ul> With the following css style: /* SITE MAP MENUS */ ul.menu { float: left; margin: 0 10px 0 10px; display: blo...