html

Widget -what to do and what not

I would like to make a html/js widget that people can add to their blogs, sites etc. I have never made widgets before so I would like to hear what should be done and what not. For example, how do I make the styling? Inline, own css file or what is the best practise? I believe i cant use head and body stuff in it. What about h1, h2 etc? ...

DHTML Drop Down Menu

Hi I need to generate Dhtml menus. but i want to use a tool. does anyone know what FREE tool should I use? I used CoffeeCup Dhtml menu builder but i does not compatible with IE. ...

Is it possible to create support for tab button in html textarea with JavaScript?

I hate when I try to edit html in textarea, because it doesn't recognize tab button, so I cannot indent my code. So is it possible to generate tab support to textareas with html? And is it possible to create support for tab button with JavaScript? ...

Is there a way to specify a fixed (or variable) number of elements for lxml in Python

There must be an easier way to do this. I need some text from a large number of html documents. In my tests the most reliable way to find it is to look for specific word in the text_content of the div elements. If I want to inspect a specific element above the one that has my text I have been enumerating my list of div elements and us...

Overlapping divs, absolutely relative?

A wordpress theme I'm working on has headlines which span across the entire content area. These headlines are overlapped by the sidebar which is absolutely positioned at 100% width. The issue, is when the sidebar's content exceeds the page's content, it stretches OUT of my wrapper overtop of the footer without forcing the it down (beca...

Best Online Code Editor (with a Textarea)

Really surprised, Googling for a decent online code editor provided little results. Just wondering if anyone has any recommendations for an online code editor which is: Good looking Ideally jQuery Uses a <textarea> Highlighting for CSS Has line numbers So far the best I can find is: http://codepress.sourceforge.net/ Thanks in advan...

CSS + FONT + Image replacement

I stumbled on a site yesterday and forgot to bookmark the url. I'm stumped though because google is not helping me trace my steps. The site was basically a text to image converter for preserving your specific fonts in the browser. What made this one unique was that the text was fully selectable, however what was being displayed was th...

IE6 fix for site

Here is the url to the site in question: http://www.katiesamsonlaxfest.com/index.html The site looks fine in all the browsers except IE6 and below. I would like if possible to find an easy css fix because as you can see the content is not contained within the divs. ...

How do I rotate an image in Javascript or CSS

I am creating a simple game. I want to use jQUERY to rotate the joints making it move. I am using .animate ( http://api.jquery.com/animate/ ) to animate CSS properties but if it is also possible to use Javscript, I can make my own custom code. More TO-THE-POINT How do I rotate images in CSS or Javascript? I prefer CSS but Javascript i...

JSP / servlet / IE combination doesn't submit form detail on Enter

Using IE 7, JDK 1.6 and Sun Web server 7. Inside the jsp form, we have: <input type="text" name="id" maxlength="20" /> <input ... type="submit" name="send" value="Send"/> i.e. a text box and a "Submit" button (called Send). and the servlet has: if (request.getParameter("send") != null && request.getParameter("send").trim().length()...

Dropdown Option set innerHTML sets value as well

I just found out that in FF, if you are dynamically creating an OPTION DOM element inside a SELECT element and just set its innerHTML, it sets both the innerHTML i.e. the displayed text as well as the value of the OPTION. var opt = document.createElement('OPTION'); opt.innerHTML = 'Opt'; this set the "value" attribute as well of the e...

Cache HTML Content by storing inside javascript variable in external js file?

I have a web application where the masterPage/template contains some static HTML that never changes but is sent with every request. (a lot of this HTML are hidden elements that are shown after a user does something) I'm wondering if there is some way of caching it? I was considering putting the HTML inside a javascript variable and doi...

differentiate between a scroll caused by .scrollLeft and a user trying to scroll in an HTML page

I have a scrollbar that has to follow some timeline. It is being constantly scrolled with .scrollLeft using setInterval. I still want the user to be able to naturally take control and just drag the scrollbar away. If I can detect the user did that, I would just turn off the setInterval timer and leave the control to the user until he e...

RegEx: Matching a especific string that is not inside in HTML tag

<tag value='botafogo'> botafogo is the best </tag> Needs match only botafogo (...is the best) and not 'botafogo' value my program "annotates" automatically the term in a pure text: botafogo is the best to <team attr='best'>botafogo</team> is the best and when i "replace all" the "best" word, i have a big problem... <team att...

Changing a hyperlink from entire table cells to just the text in the table cells

Hello, In the table below, the entire cells are hyperlinks. How can I make just the text in the cells hyperlinks? The corresponding CSS is also below. Thanks in advance, John <?php echo "<table class=\"samplesrec\">"; while ($row = mysql_fetch_array($result)) { echo '<tr>'; echo '<td class="sitename1"><a hr...

jQuery events and .load()

Hi All Never ran into this problem with jQuery before. I have the following: $(document).ready(function() { $('#browser_cat a').click( function() { $('#browser_cat').hide(); $('#browser_cat').load('/api/browser/catchildren/'+$(this).attr('id')); $('#browser_cat').fadeIn(); return(false); }) }); ...

Pages disappearing from asp.net cache

I use shared hosting. I have set my page to be cached indefinitely. The page gets cached after the first request. However on the next day when I visit my site it is no longer in the cache and has to be regenerated. What is happening? Is the hosting removing my pages from the cache? Or something else? Any ideas? ...

<ul> overflow to next line in XHTML and CSS

I have a list of items (<ul> containing <li>'s) which I want to limit by height. Let's say I have the following code: <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> <li>Item 6</li> </ul> This will display as such: Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 I would like it to di...

How to incorporate Spring security using open id into a GWT project

Well its simple, Basically I want to follow GWT's "One Page" paradigm and yet integrate Spring security into the application. What i understand that if the cookie is not found in the system, spring will redirect user to a Open id referrer page asking for login else it would simply send my server the user's open url id. This is what i tr...

jcarousel, I need :active state on external controls

I am running a Jcarousel and I want to add a.active to the current pagination option. I have seen other posts around about this same thing. /** * We use the initCallback callback * to assign functionality to the controls */ function mycarousel_initCallback(carousel) { jQuery('.jcarousel-control a').bind('cli...