html

Setting width of table cell contents based on available width

I have an HTML table whose cells contain, among other things, spans, like this: ... <td> <span style="height: 20px; width: 20px; margin-left: 2px;"> <span style="height: 20px; width: 20px; margin-left: 2px;"> <span style="height: 20px; width: 20px; margin-left: 2px;"> </td> ... I'm looking for a way to shrink the width of ...

Dynamically create an element in google desktop

How can I dynamically create elements, like labels and such, using the google desktop API? Put differently, how can I duplicate the browser's: document.createElement('br'); ...

My Dropdown menu works right on every browser but IE 7. Why?

I'm making some basic drop down menus based on this tutorial So its all dandy except for IE7. It appears when you hover on it but when you move the mouse from the main element to the ones below it it hides again. /* General */ #cssdropdown { position:absolute; right:0px; top:0px; font-size:medium; font-weight:bold; } #cssdropdown, #cssd...

Check if an object is an element on google desktop

In javascript on a browser, I can do this to see if an object is DOM-related: obj instanceof Node How do I accomplish this with google desktop? Node is undefined, and this doesn't work either: obj instanceof basicElement ...

Absolutely positioned div on right causing scrollbar when the left doesn't

I'm trying to "flank" a centered div with some design elements that are absolutely positioned outside the main div's width. I'm getting a scroll bar due to the element on the right, but not the element on the left (IE6/7/8, Chrome, Firefox). How can I get rid of that horizontal scrollbar? <html> <head> <style type="text/css"> html, ...

Why do I keep getting php error saying unexpected ')' in FOR statement?

I am programming an HTML 10x10 table, Each cell with a separate ID and link. It was taking way to long with copying and pasting and changing so I decided to use PHP, using the FOR command which I am not very familiar with. I am using this code: <table> <?php for ($r=1, $r<10,$r++) { ;echo "<TR>"; for ($d=1, $d<10,$d++) { echo "<TR id=...

Is it possible to embed images in e-mail message in Sharepoint?

Currently I'm sending E-Mail messages by SPUtility.SendMail. I'd like to embed images into my message so i can give it a little bit style (div backgrounds, logo images etc.). Is this possible? P.S. I can't give direct URL addresses to image SRCs because the resources are located in a site which belongs to a private network which requir...

Font looks different in IE than it does in Firefox and Chrome...why?

Hi, I am creating a website and the font looks different in IE (it's larger) than it is in Firefox and Chrome. Does anyone know why? And how do I fix it in IE? Here's my code: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&...

How do I get alt text to support vertical-align: middle?

In the following test case, the alt text is horizontally centered, but it's stuck to the top of the box. How do I get it in the middle? <html> <body> <div style="height: 300px; width: 300px; border: solid black 1px;"> <img src="asdfasdf" alt="foo" style="display: block; text-align: center; vertical-align: middle"/> </div...

How to log into Facebook programmatically using Java?

I'm trying to write a Java program that can automatically log into Facebook. I've got the below code so far that downloads the home html page into a String but don't know how to send the email and password to log into Facebook? Also will the Java program need to handle cookies returned to remain logged in? public static void main(Strin...

Change style of all elements of a class via prototype javascript

This is probably really simple, but the prototype docs on the $$(function) really suck. What do I DO with all the items once the function gives them to me? First I tried: $$('div.category').style.height = 400 +"px"; Then: $$('div.category').each(.style.height = 400 +"px"); Finally: for (x in $$('div.category')) { x.style.heig...

Adding text to p tag in Beautiful Soup

I was wondering if anyone knew how to add text to a tag (p, b -- any tag where you might want to include character data). The documentation mentions no where how you might do this. ...

Back Button enabled deep-linking in IE

This is a problem that SWFAddress have fixed. But essentially, I'd like to write my own solution that strips out a lot of unused functions. Explanation below: You can use the following code to get the hash value of the an URL link like this xxx.xxx.com/?#/DeepLinking/ window.location.hash Using anchor tags with href='#tab1...etc. an...

Error: Object Expected Code 0 Char 1 Line 474

done some html code updates on my company's asp.net website and the above error appears. i dont have a line 474 on the errored file. this error only on IE, and not FF. anybody? ...

ajax and no forms, what will happen?

I notice my site does not have a single <form> with the exception of logging in. I am not sure how or why it happened but i found i use jquery and ajax to post everything then refresh (or not if i dont need to). How and why would the user suffer from this? Some of my 'forms' include Leaving a comment on a page Removing messages Send...

Clip borders/ rounded corner of webpage like twitter?

I want to build a webpage like twitter or microsoft hohm. Like clipping borders, buttons, clipped text box. How can I do this in Dreamweaver? Is these things are done by photoshop? Any tutorial or links will be very helpful. If there are any webdesign template of twitter of something like twitter please let me know. ...

Why is Html.DropDownList() producing <select name="original_name.name"> instead of just <select name="name">?

I have an editor template whose job is to take a SelectList as its model and build a select element in html using the Html.DropDownList() helper extension. I'm trying to assign the name attribute for the select based on a ModelMetadata property. (Reason: on post-back, I need to bind to an object that has a different property name for th...

XSLT for displaying XML as HTML

I have an XML document (in a .net C# web app) that I want to display in its simplistic form (similar to IE). I need it to be browser independent (or as much as possible) and have a consistent display. I have tried pushing the xml document through as "text/xml" and this is inconsistent and doens't work in some browsers. http://sources....

How to make second test passing in these C# Xml unit tests? What do I miss in initialization of XmlReaderSettings?

Issue description: I need to fix an issue with resolving of standard HTML entitities. I've implemented HtmlEntityReader - implementation of XmlReader which has a code to resolve entities Public API of our system provides a methods with usage of XmlReader, so user can pass XmlReader created using one of the XmlReader.Create methods ...

Python URL Characters

I really new to Python and coding in general, but I have been making some good strides. I am able to pull some data off of the web through an API, and the result should be a string. What I am seeing though, are some instances such as "& amp;"" and " &quot". (I modified the character sets so it would print properly to the screen) I fig...