html

Hyperlink in Table

I juz wana make the 'url' row data as hyperlink. Someone help plz. I already tried but the data is not displaying in the table neither the hyperlink. while ($rows = mysql_fetch_assoc($run)) { echo "<tr>"; echo "<td>". $rows['file_ref'] ."</td>"; echo "<td>". $rows['file_name'] ."</td>"; echo "<td>". $rows['o...

How do I allow a webpage to update while a javascript is running?

There has to be an easy way to do this, but I'm new to JS. I have a javascript program that (1) takes user input, (2) updates the webpage based on that input, then (3) performs a lengthy calculation. The trouble is that the webpage doesn't register the update till after the lengthy calculation. Isn't there a way to pause execution s...

What's the support for .className.andClassName in the current browsers?

Confusing title? Sure! In CSS, you can specify: .button.blue { ... } Which will target elements that have both class names. Does anyone know what the browser support is? ...

Quality of code improvements.

Hi, This is more of a improvement and suggestions question than one clear defined answer. I have been working on the website for Naked CSS Day 2011 for a bit and was wondering if anyone had any suggestions on my code quality/efficiency. In the spirit of the event I am attempting to bring everything into in the purest and cleanest form of...

How can I parse this HTML with a regular expression in PHP?

Hi, I'm working on regular expression to find a whole heap of text that sits inside <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; and a tag that says end of menu... which looks like this: <!--END MENU--> This is the code i wrote but it's not spitting o...

Weird &nbsp problem in firefox

Hey guys, need some help here. http://www.otojo.com/ is the site. If you scroll down to the article titled 'Latest Cyanogen nightly adds FM radio to Nexus One', you can see that the description went out of place in firefox. If you inspect it via Firefox addon, it shows a lot of &nbsp. But if you view its source, there's no &nbsp. Seems l...

style and script tag sequence

Normally HTML page contains following tags <script> <link> <style> I found number of times that changing the sequence of those tags, mess up with page layout. So what would be the reason and what are the points to avoid this situation? EDIT After looking the answer of @Anurag, I'm actually assuming that we don't have a case where ...

Div relative positioning issue in Internet Explorer

The HTML: <div id="broadcast"> <div id="broadcast_header"> Neighbourhood Broadcast </div> </div> The CSS: #broadcast_header { background-color: #A0522D; width: 100%; height: 20px; position: relative; top: -20px; font-weight: bold; } Firefox: All fine, header appears 20px above the div, its cool. IE: Refuses to...

Chrome extension to append tab index to title

I am trying to create a simple extension in chrome that appends the tab index number to the tab title. This is my first attempt at creating an extension so I don't have much experience. I would appreciate it if someone could point out what I am doing wrong. { //My manifest.json "name": "Tab Selector", "version": "1.0", "descript...

problem in lightbox for video ?

i am using a thick box for flv player, when we click on the link for video (these videos list coming via AJAX), large size of videos are not playing, i think it is buffered, how can play the large videos? i am using flv player downloaded from www.adobe.com. ...

How to make HTML combo box save values added by user in textbox?

I have made a combobox for a web page. It takes values from user into text box & adds those to list on double click in text box. I want to make user entered values permanently stored as option in list. How can I do it. One more question is how can I count the number of options in list so that I add an element next to that. Here is my co...

term highlight algorithm (HTML)

Hi, I know there are quite some term highlighting questions asked but as far as I know none answers mine. The search terms are put into an array $keyarray = array("DE", "ABCD"); $string = "ABCDEF"; foreach ($keyarray as $value) { $string = str_ireplace($value, "<b>{$value}</b>", $string); } The results will obviously be ABCDEF rath...

Mouseover/leave problem

I have a span that includes an anchor and a span. Example below <span id="x"><a id="a_in" href="">link</a><span id="x_in">x</span></span> Now I am attaching a mousenter / mouseleave event on the span with id="x". When I mouse over the the span id="x" it triggers the mousenter / mouseleave that's fine. The problem is when I mouseover t...

2 boxes of same height (percentage)

How to create two boxes (floating side by side) of same height. I want to create boxes of height 40% of the container/window? ...

import java class in js

Hi, I have a html website and I am using JavaScript. I have a java Class transformation.java with a method convert(a,b) that I would like use in the javascript in my html document. How can I import the java class in my java script and use the method convert(a,b)? Thanks. ...

new XMLHttpRequest cannot run on Firefox

The script below work perfectly in IE for the XML respond. But seems i cant figured out how to run on Firefox or Chorme. Try few modification but still not able to run it. Kindly need assistant. <script type="text/javascript" language="javascript"> var xmlhttp; var timeStamp; var currentTime = new Date() var month = currentTime.getMo...

How build a list dynamically and pass/save user selected values from an HTML form to server?

I think in this case I need to write a client side script that onpageload/onchange gets options from server & builds a list dynamically. & stores new options to server via some JavaScript script. I will prefer to save user input in a file on server. I will be very thankful for any help. ...

Problem executing different js functions on span elements click nested inside a HTML hyperlink.

Hi, I have a couple of span elements inside a HTML hyperlink like this. <a href="Default.aspx"><span id="span1" onclick="adddata();">Span1<asp:Literal ID="Lblcount" runat="server"></asp:Literal></span><span id="span2" class="removetab ui-icon ui-icon-circle-close" style="float:right; margin: -2px -10px 0px 3px; cursor:pointer;" onclick...

HTML table - fixed width columns and horizontal scroll

I need to create an HTML table which has fixed column widths, say 200px for each column. If the table exceeds the horizontal width of the browser viewport then there should be horizontal scroll to view the columns which are off-screen. As the table is being dynamically generated from a database there will be an indeterminate number of co...

How do I create a 'linklist' like a tooltip with HTML and CSS or jQuery and CSS?

Hello all, I hope you can help solving my problems. Any help is much appreciated. Thank you in advance. HTML&CSS: I tried creating a 'linklist' with HTML and CSS which you can find in this fiddle. Unfortunately and logically the 'linklist' displays by hovering over the link 'Linklist', by leaving the link there won't be any display. ...