html

How do you execute a Javascript function without 'onclick' like "Grippie" in a new post on SOF

Such as the <div class="grippie" style="margin-right: 59px;"/> on stackoverflow when you post a question or answer. I get a nice css curser which lets me know of the moveable edge but how is the Java script which resizes the field finding out I clicked on the 'Grippie'? Thank you. Edit: Thank you for the answers which lead to Jque...

Automatic file transfer from HTML

I'm building a web application that guides my users through the configuration and installation of an application. It builds a set of configuration files dynamically, then sends them in an archive (.ZIP file) along with an installer for the application. The web page is generated from a linux shell script (sorry), and for security reason...

Updated- more specifics-->How can I do a script to catch strings as input and open them on a firefox document?

How can I do a script to catch strings as input and open them on a Firefox document? Each link would go to a different window or tab. Any ideas would be much appreciated. I just want to be able to take some links and open them. For example I have 50 Links. And copying and parsing those 50 Links take a really long time and also a lot of ...

How do I implement client side replacement with Javascript?

I have a HTML page with which I want to do some client side replacement using Javascript. The values I would like to replace are in an array like so: var searchFor = new Object(); var replaceWith = new Object(); searchFor = [ "quick", "brown", "fox", ]; replaceWith = [ "nimble", "black", "cat", ]; So every instance of 'brown' s...

how to create multi select auto complete combobox ??

IN my case i want to implement multi select auto complete combobox using html,javascript,jsp. Is there any body who knows how to implement it. Which will be similar to text field shown in stackoverflow while adding multipal tags to any question. ...

Report section style list numbering in CSS?

Now I know about the "normal" CSS list styles (roman, latin, etc) and certainly in years past they were somewhat inflexible in not allowing things like: (a) or a) only a. Now I believe that you can get an effect like the above with the :before and :after pseudo-elements. Is that correct? And whats the browser compatibility like ...

How can I add column resizing to a MooTools sortable table?

I want a table similar to this one, but where the user can adjust the height of the table as well as sort it. How can I do this? ...

json_encode and mysql unicode problem

i have the following javascript code: http://www.nomorepasting.com/getpaste.php?pasteid=22561 Which works fine(the makewindows function has been changed to show it is a php variable), however the html contains unicode characters, and will only be assigned characters leading up to the first unicode character. If I make a small test file...

RegEx for extracting HTML Image properties

I need a RegEx pattern for extracting all the properties of an image tag. As we all know, there are lots of malformed HTML out there, so the pattern has to cover those possibilities. I was looking at this solution http://stackoverflow.com/questions/138313/how-to-extract-img-src-title-and-alt-from-html-using-php but it didn't quite get ...

Determine record in multi record html form

In a html form, I'm displaying multiple records from a table, ready for update. Right now I use: name=<column-name>_<pk-id> value=<value> for the fields. Then in my python-script I go for: for key in form.keys(): if key.startswith('<name-A>_'): update <table> set <name-A> = <value> where pk=<pk-id> if key.startswith('<n...

Making an expandable button in HTML

I need to make OK and Cancel buttons in my HTML, and I'd like them to be a fixed width so the two buttons are the same size. For example, like this: <style> button.ok_cancel { width: 50px; background-color: #4274af; font-size: 9px; line-height: 12px; color: #fff; cursor: pointer; text-transform: uppercase; ...

Setting GridView header text to wrap as directed.

I have a GridView that has columns such as: | A | B C | D E / F | I want these to be wrapped in a particular way - that is, I do not want to leave it up to the browser to work out whether to wrap or not depending on the column width. So in the above example I may want the following: | A | B | D ...

Using Lookahead to match a string using a regular expression

I need to match a string holiding html using a regex to pull out all the nested spans, I assume I assume there is a way to do this using a regex but have had no success all morning. So for a sample input string of <DIV id=c445c9c2-a02e-4cec-b254-c134adfa4192 style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDE...

Styling issues with a file input field in firefox

Mornin' all! Not entirely sure whats going on here, I am currently doing the front end for a site with looooads of forms, all styled up and looking pretty in IE, but I've just noticed that in firefox the file input fields aren't responding to any of my styles, all the other types of input fields are fine. I've checked it in Firebug and ...

Vertical Table in a web page.

Hi, I want to switch between vertical and horizontal table layout for same data. Although it is possible to do it by making applying the same CSS for the first column for the vertical layout as the css applied for the header row for the Horizontal layout. Is there is any way where we can make the webpage render the way we like it (Ho...

Is there any way to modify query strings without breaking an ASP.Net postback?

From reading here and around the net, I'm close to assuming the answer is "no", but... Let's say I have an ASP.Net page that sometimes has a query string parameter. If the page has the query string parameter, I want to strip it off before, during, or after postback. The page already has a lot of client-side script (pure JavaScript and j...

Stacking Divs with CSS

I know this is particularly difficult with CSS and the current set of browsers, but nonetheless I have the requirement. I need to be able to have 3 divs in a column. Each div should be able to take up a certain percentage of the vertical space (for example, 33%). The contents of each div could end up being larger than the available spac...

How do I make LINQ to XML and HTML work together?

I have an html table <table border="0" width="100%"> <tr class="headerbg"> <th width="5%"> No </th> <th width="30%"> Name </th> <th width="20%"> Department or Division </th> <th width="25%"> ...

CSS display:inline property with list-style-image: property on <li> tags

I'm having a problem using CSS's display:inline property with the list-style-image: property on <li> tags. Basically, I want to output the following: * Link 1 * Link 2 where * represents an image. I'm doing this with the following bit of HTML: <ol class="widgets"> <li class="l1">Link 1</li> <li class="l2">Link 2</li> </ol> ...

Finding a node (or close to it) using XPath in non well-formed HTML

I'm using XPath to locate a node (or something close to it) in a template that has non-well-formed HTML about 10 levels deep. (No I didn't write this HTML...but I've been tasked to dig through it.) I seem to be able to retrieve an XPath to the element in question using the XPartner add-on for Firefox; however it only gives me the loc...