html

Disabling tab focus on form elements

hello, I have several divs within the same form. What I am trying to do is to disable the tab key in one of the div in the form without disabling the tab in the other divs in the same form. Example: Form div1 - disable tab key div2 - tab key works div3 - tab key works ...

How to make list in webOS look like Grid?

I tried 'float: left;', but when scrolling(slowly is clearer), only one list item scroll..but not numItem of one row..(But photos app built in palm pre ROM woks just fine) In one file: <div id="results-list" class='thumb-list' x-mojo-element="List"></div> In another: <ul>#{-listElements}</ul> In another: <li class='thumb-item'>...

updating value in html table via javascript

Hi is there any way to upadte cell value with no events (i dont want to use 'onClick' or others)? The scheme is: user is filling form value, then clicks 'ok', and then value should be showed in cell in html table ? thx in advance for all help ...

Flex Textfield doesnot gain focus when cursor is in text field of iframe

I have a web page which has a SWF file embeded. I have an issue with the focus. Steps to reproduce: 1)Click on a HTML Text Field which is inside a Iframe 2)Click on a Flex Field. 3)Begin to type some text. Expected Result is the entered text should go in the Flex TextInput field but the actual Result is it goes into HTML text field. ...

How to serialize beautifulsoup access-paths?

i have code, which does something like this: item.previous.parent.parent.aTag['href'] now i would like to be able to add filters fast, so hardcoding is no longer an option. how can i access the same tags with a path coded in a string? of course i could invent some format like [('getattr', 'previous'), ('getattr', 'parent'), ..., ('ge...

Install a font in to a Server

Hi. I have developed a PHP project. In this I want to implement the font style in Wendy Medium. But I don’t know how I install this font in my server. Does any one know how to do this? Thanks in advance. ...

What's the best way to check for the presence of a hash?

Right now I'm using if(window.location.hash != '') Is this foolproof? Or, is there a way to return a Boolean value instead? ...

jQuery wait for above code execution to complete

I've written some javascript using jQuery to replace any select lists with a div and ul alternative so that it will give me some more styling control and make the drop downs look the same cross browser. The below code works 99% for me but I have one issue. At the bottom of the code I have had to use .delay() to tell the code in a way to ...

How to fix HTML from WCF-webservice in AJAX Client Side-templates

I have a problem with my templates, when I return HTML, it's encoded by default, and I cannot find a way to "fix" it. I want to replace NewLines (\u000a) with a straight <br />, but I always end up with &amp;lt;br&amp;gt; I've tried to fix it with this function: function cleanNewLines(text) { return $("<div>" + text.replace(/\u000a...

What is the difference between clicking a checkbox and calling its '.click()' function ?

Consider the following code: HTML: <input type='checkbox' /> <div>Click here</div> JS: $(function() { $('input').click(function() { document.write($(this).is(':checked') ? "checked" : "unckecked"); }); $('div').click(function() { $('input').click(); }); }); When the checkbox is clicked, the output i...

Seperating first paragraph from others

Let's say, that I have the following source output: <p>This is first paragraph</p> <p>This is second paragraph</p> <p>This is third paragraph</p> What I want to achieve is... I want to split them, first paragraph goes into one variable, others into other. Like: $first = "<p>This is first paragraph</p>"; $next = "<p>This is second par...

Usage of <address> tag in HTML: copyright or webmaster?

Hello. On the footer of my client’s website I have his address and copyright notice, and under there is the address of the webmaster. With both I will use the hCard microformat. With which of them I should use the <address> tag? Thanks. ...

Some Kind Of PHP Replace

I have this html tag <a href="<navigation>3</navigation>">Go Here</a> I want to find any and all references to <navigation></navigation>, retrieve the int value thats between the <navigation>3</navigation> (in this case the number 3), run an sql query and return a record where the id is the value between <navigation>3</navigation> (ag...

How to make Beautiful Soup output HTML entities?

I'm trying to sanitize and XSS-proof some HTML input from the client. I'm using Python 2.6 with Beautiful Soup. I parse the input, strip all tags and attributes not in a whitelist, and transform the tree back into a string. However... >>> unicode(BeautifulSoup('text < text')) u'text < text' That doesn't look like valid HTML to me. An...

Truncating html text appropriately into a fixed size area

In a generated html page, we have a fixed size area (lets say 200 x 300) in which we need to fit in as much text as possible (like a regular paragraph of text), and if it doesn't fit, remove an appropriate number of characters and append "..." to the end. The text is NOT in a fixed sized font, and although we are using one specific font...

Html: Create table of divs where row heigth are different

How can I create a table of two columns, made by div's, where the row heights are not the same height. How can I do this with CSS for example? This is wat I have: XXXX YYYY XXXX YYYY YYYY YYYY YYYY ZZZZ ZZZZ ZZZZ And this is what I want: XXXX YYYY XXXX YYYY YYYY ZZZZ YYYY ZZZZ YYYY ZZZZ The X,Y and Z are divs...

Event bubbling experiment (did you know div and p tags cannot be nested?)

I've been playing with event bubbling and came upon a couple of things new to me... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html onclick="alert('html')" xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-type" content="t...

How can I tell which "button" is being tapped in mobile Safari?

I have an html "button" which is really just this: <div onClick="window.location.href=somePage.htm"> <img src="img.png"/> </div> Works fine in desktop Safari. And it works in mobile Safari... however when I tap the "button" in mobile safari I don't see the little gray outline box indicating exactly what I'm tapping. How can I ge...

Issue with Font and underline in HTML email

Hi, Wonder if anyone can help - I am testing an HTML email in various clients, it has a arial black set as a font, and the customer wanted the the underline taking off the link. All fine and dandy in browsers when i use the standard inline css to do this - However when I test in the clients the underline shows, after a bit of investigati...

jQuery script fails in IE and Opera

http://dev.mindboiler.lv/ (you'll be taken to intro page, just click on logo to get into real site) This is website I'm currently working on. You can change the language to English to understand it a little better, but anyways, it's full of dummy text. There are these Read more links which, when clicked, execute the following jQuery: $...