html

Updating table row by given id with jQuery

Hello all! I need to update a specific table row (via tr id="unique_key") after a successful AJAX call. HTML fragment: <a name=\"p{$product_id}\" class=\"tr{$product_id}\"></a> <tr id="p{product_id}" class="item-row"> <td><h3>{product_id}</h3><a rel="facebox" href="ajax_url">{product_name}</a></td> <td>{image_information}</td> <td>{im...

CSS, HTML: Internet Explorer 7 doesn’t move the term to the next line

hi, how can I fix this problem on Internet Explorer 7: If I resize the browser window you'll see that the letters of the last tag on the right (in the header) are displayed in vertical one above each other. This happen only in IE, and not in other browser (you can better see the bug by visiting the website: http://www.sanstitre.ch/dru...

make focusable element unfocusable on webkit

When a node has a tabIndex setting (other than -1), clicking it will give it focus. Removing the tabIndex setting should stop that behavior, so that clicking has no effect. However, on webkit, once a node has a tabIndex, even after tabIndex is removed, the node can still be clicked and focused. Setting tabIndex=-1 also has the sam...

upload and crop image before sending it to the server

is there some client components (jquery/swf) that will give the possibility to upload and crop (user should be able to select the area to crop) an image in the browser and then send the cropped image to the server I'm on asp.net-mvc (not sure if it matters) ...

html dl, dt and dd tags for generating a list

Hi, Does anyone use the DL, DT and DD tags? I have a list with each item having a title and description and was wondering if this would be the best thing to use for it or would the simple ul and li tags be better? Thanks ...

Adding images to the html with javascript

I've tried some HTML DOM code from several sites, but it isn't working. It isn't adding anything. Does anyone have a working example on this? this.img = document.createElement("img"); this.img.src = "img/eqp/"+this.apparel+"/"+this.facing+"_idle.png"; src = getElementById("gamediv"); src.appendChild(this.img) But it isn't adding anyt...

Super simple CSS tooltip in a table, why is it not displaying and can I make it work?

Hi, I have been trying to implement many different tooltips on this page for my client, he's adamant that we have a picture of the product show up when you hover over the product name in the order page. I decided to use the super simple CSS tooltip, it's very easy to implement and does exactly what we want. It works on a dynamic page, th...

Html page mini map or map overview

I have a big html page, like 4000x6000 px with images and text. I'd like to have something like a map overview of this page in a small div. A scaled version of the whole page which i could use to navigate. Does anyone know some js script or example how to do that? Thanks. ...

PayPal return URL

Here's the code for my Paypal button: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="button_subtype" value="produc...

horizontal table layout using css

instead of the usual vertical table data layout something like this: i'd like to display it like this in css: any ideas? my php/html code: <div class="center_div"> <table> <tr> <th>Author</th> <th>Quotes</th> <th>Arabic</th> <th>Reference</th> </tr> <?php while ($row= mysql_fetch_array($result)) { ?> <tr> ...

How can I shift html-text in the JButton to the left?

I use HTML to put text into a JButton. In this way I can play with colors and text size. What I do not like is the distance from the left border of the button and the text (this separation is too large). Is there a way to decrease this distance? I think it should be some parameter in the style of the HTML code. Sample of the code: JBut...

i see some symbols in my page, when refresh it

when i refresh my page, one moment it shows  symbols, only after it the normal page! i've set charset=UTF-8 in my page could you help me? thanks UPDATE: here is the link to my page ...

how to create submenu from main menu?

how to create under projects sub menu new project sub menu ...

How to remove margin from last li, in pure CSS with IE 6 support?

In this condition is it possible to not to apply margin-right to last li. I need pure css way and support in IE6 and 7 also and without changing HTML. is there any way to achieve this. ul li {display:inline;margin-right:10px} <ul id="nav"> <li><a href="#nowhere" >Lorem</a></li> <li><a href="#nowhere" >Aliquam</a></li> <li>...

Change image using jQuery

I have a html-page where used jquery-ui accordion. Now I have to add in this page 2 image which should vary depending on the active section. How can I do it? HTML: <div id="acc"> <h1>Something</h1> <div>Text text text</div> <h1>Something too</h1> <div>Text2 text2 text2</div> </div> <div id="pic"> <img class="change"...

How to write browser related script using jQuery?

How do I target different browsers using jQuery? For example the javascript for IE6 and IE7 needs to be different. TIA ...

Why does my submit button fail to trigger Javascript MVC?

I have a simple code from a book and the code should display data from my controller in the "results" span. What am I missing? Controller... public string GetQuote(string symbol) { if (symbol.Trim() != "") return "99"; else return "Sorry"; } ASPX... <%@ Page Title="" Language="C#"...

How to disable Cufon on certain elements?

Hiya, I currently use Cufon accross our site with something similar to Cufon.set('fontFamily', 'DIN Medium').replace('h1'); Now for a single H1 tag i would like Cufon to be disabled, this is without changing the H1 tag to any other tag, it must remain as it is. I can add classes etc to the H1 tag if required, and can do any HTML/CSS/JS...

How can I add HTML formating to 'Swift Mail tutorial based' PHP email?

Hello, I have developed a competition page for a client, and they wish for the email the customer receives be more than simply text. The tutorial I used only provided simple text, within the 'send body message'. I am required to add html to thank the customer for entering, with introducing images to this email. The code is: //send the...

Set Height of Div Equal to Parent Tag

Hello, I have a snip code HTML as below : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns:o="urn:schemas-microsoft-com:office:office" lang="en-us" dir="ltr"> <head> <meta http-equiv="X-UA-Compatible" content="IE=8" /> <meta name="GENERATOR" content="M...