html

How would I alter HTML displayed in VB.net application using Gecko

Hi, I would like to know how I would go about altering the HTML that is displayed by my VB.net application using GeckoFX. What I would like to do restrict certain words/names/attributes from showing in the browser. Any info/links would be greatly appreciated. Thanks! ...

How can I hide empty html table cells with jQuery?

What I have to work with: An html table 5X7. On many queries, there are less that 35 items filling the complete table. How can I "hide" the empty cells dynamically in this case, using jQuery (or any other efficient way)? Thank you. ...

Inspiring web experiments and technical demos

Probably everyone knows about Chrome Experiments: http://www.chromeexperiments.com/ that contain some stunning examples of what JS is capable of. It would be nice to compile a collection of similar projects (usually just blog posts) that showcase some original JS/CSS/HTML/Flash or any other web-related ideas and solutions. ...

Trying to modify the text of a document onkeydown is inserting text incorrectly.

I have the following html: <html> <head> <script> function myKeyDown() { var myDiv = document.getElementById('myDiv'); myDiv.innerHTML = myDiv.innerHTML.replace(/(@[a-z0-9_]+)/gi, '<strong>$1</strong>'); } function init() { document.addEventListener('keydown', myKeyDown, false); document.designMode = "on"; } windo...

How to make a table, which is wider than screen size, scrollable and keep header row fixed?

I've a table with 2 columns and each column is 800px wide. I want to show this table in 800x50 window. So there should be horizontal and vertical scrollbar to view complete table. While I've found few related solutions (this and this) on SO, they only work if table width is smaller than screen size. In my case screen size is 1200px and ...

render HTML (convert to bitmap)

Can somebody recommend the best (and preferably portable) way to render HTML documents onto a bitmap? As far as I understand my main 2 options are WebKit and Gecko, but I wasn't able to find a good starting point on how to do it. When I last tried doing this 5 years ago, I ended up using Gecko to send the document to a printer, which i...

How do I bind to a table <tr>

When someone double clicks on the entire row, I want an alert. How do I bind a double click to an entire row? ...

How do I modify this jQuery :submit selector example?

Looking at this jQuery example, how can I modify the code so that it only changes the color of the cell if the value of the submit button in that cell is a certain value. i.e.- var submitEl = $("td :submit") //Only do the below if the submit buttons value is "XYZ" .parent('td') .css({background...

Html / Email / Distribution list problem from a noob

I need to create a feature for a website that will allow a user to enter their email in order to receive a free promotion (which will be emailed immediately) and be added to an announcement list. I haven't done any web programming and am wondering where I should start? Should I just create a database and everytime an email is entered, ad...

How to have html table's height = height of parent div when div's height is not set

I have an html table, inside of a div. The div's height is based on other elements in the div. How can I have the table's height be equal to its parent div's height? (table height: 100% won't work because the div's height is not set) Update: I need to support IE6,7,8 so the css recommendations should be understood by these browsers. ...

How do I alter the URL?

I'm currently working on a big web application for a company and we are about 4 months in, but we have a harmless(but annoying) problem that we have just left because we didn't time to change it. The way we setup our MVC is leaving us with the Servlet being stacked one after the other endless amounts of times on the URL so if we had a S...

How to detect hidden field tampering?

On a form of my web app, I've got a hidden field that I need to protect from tampering for security reasons. I'm trying to come up with a solution whereby I can detect if the value of the hidden field has been changed, and react appropriately (i.e. with a generic "Something went wrong, please try again" error message). The solution sho...

text editor that works direct on a server? (aptana?)

Are there any good free text editors i can use directly on the server if i give it my ftp details? failing that one with a good save-to-ftp shortcut (ie ctrl-shift-s) I work with mainly php and jquery, my primary editor is aptana? ...

Execute javascript from link

Hi, i am just trying to create a link which execute some JavaScript in stead to redirect the user to a particular page I tried the following but it doesn t work <a href="#" onclick="javascript:location.replace('http://http://stackoverflow.com/questions/ask');"&gt;www.google.com&lt;/a&gt;&lt;br /> <a href="javascript:location.replace...

Horizontally and Vertically Center Modal Div IE Issue

I'm trying to horizontally and vertically center a modal window inside a div. I want it to be cross browser compatible. You can see from the picture below that when I resize IE8 then click, "show modal" button it displays not exactly horizontally centered. This does not seem to be an issue with Chrome. Any thoughts? How would you gu...

How can I pass an HTML file content from PHP to CGI (Perl) Script

The content of the an HTML file generated by a PHP is stored in a string variable called $output I am trying to send the contents in $output to a CGI script. I have tried the following CURL in PHP... $output = "long string, with strange non HTML characters..." $c = curl_init(); curl_setopt($c, CURLOPT_URL, 'http://www.example.com/cg...

jQuery plugins for HTML5 video playback?

I'm looking for a good jQuery plugin that allows HTML5 video playback, with graceful fallback to Flash (and potentially further, to default system player, etc). I've googled, but nothing I've found has been quite what I'm looking for. Any suggestions? ...

How to Tab through elements in HTML.

Hi, I have a method called checkKeyCode(obj) which simply takes the character you type into a textbox and replaces it with its keyCode. This method is called from onkeydown attribute of textbox input (onkeydown="return checkKeyCode(this)"). The problem is then I want to be able to press tab and focus to the next element. I don't have ...

Dynamic HTML body width (over 100%)

I am creating a horizontal webpage and I am trying to make the body dynamically expand according to the content within it. I am building the website here: http://www.obliquo.co.uk/ As you can see it all works, but I am forced to setting a huge body width in pixel value. The content on the page will be changing all the time. If I don't...

HTML form with table cell height problem

Hello.. I have several forms like this: <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_std"> <tr id="exam_String_newValue_row"> <td width="150" class="table_defaultHeaderColumn">Προκαθορισμένη Τιμές</td> <td width="802" class="table_defaultHeaderColumn" > <textarea n...