html

Adding click events to user control

Hello All, I have a user control in an asp.net web application. The control outputs an html list that is customized based on the currently logged in user. The list items are generated from a database look up and the user control is formatted to appear as a drop down list in the page. The control itself is simple and looks like this: ...

Running a PHP script at a specific place in the code.

Ok, So I have a external php script that get data from a DB and displays it in a table. I want to run it in a specific div in my html so the data gets echoed out in the right place? Any ideas how to do that? Html div <div id="statsContent"> <?php include('updatestats.php'); ?> </div> Heres the PHP code. <?php //Start session ses...

xsl transformation of arbitrary list structure

I'm trying to transform the content of a chm (microsoftcompiled html help) file's index which holds structure information in very arbitrary HTML lists with xsl (see the first code snippet-the actual index file's structure is a bit different, but the important parts are there). I've checked out the index of several chm files but the ul / ...

DIV background does not span 100% for entire body

I'm posting this because I am going crazy. I have a page where the content is centered in the page and must span from top to bottom no matter the content, with two columns. So I have a content div with a left child div and a right child div. The code is the following: <html> <head> <style type="text/css"> html, body { mar...

How can I discover what JavaScript function is called when clicking on something on a page?

I'm trying to deconstruct part of Gmail and can't seem to be able to find what is happening (what functions are called) when a specific button is clicked. I used Google Chrome's inspector and found the HTML for the button: <tbody id=":8y" class="vC " idlink="" role="option" aria-labelledby=":8x :8w"><tr class="vI"><td><img class="vt SF...

jQuery - sepcify a directory for cycle plugin

forget my question for a while... bad choice of words i am using this code for a jQuery Cycle Slideshow... script is here... you may skip it and proceed to question <script type="text/javascript" src="code_snipets/jquery.js"></script> <script type="text/javascript" src="code_snipets/jquery_plugin_cycle.js"></script> <script language="...

php: Get html source code with cURL

How can I get the html source code of http://www.example-webpage.com/file.html without using file_get_contents(): I need to know this because on some webhosts allow_url_fopen is disabled so you can't use file_get_contents(). Is it possible to get the html file's source with cURL (if cURL support is enabled)? If so, how? Thanks. ...

need to change the class of a table row when a checkbox is check the table is made dynamically using php and mysql

i need the tr to change background color, text color and have a line through the txt. To-Do Item Priority Due Date " value="checked" /> ...

Change Div background when input is clicked - How?

Does anyone know how to the change the background of a DIV when the a <input> is clicked? ...

Change in the sidebar

Hello! Wondering what the piece of code I can use to change the look of my sidebar for example how "categories" "tag clouds" and so put themselves in boxes? Right now many of them flush with the box (right), has been the center but it was not pretty. Does not own any idea what it might be to change, it is in the style sheet or in the si...

how to open outside links in a new tab

On my website i have many outside links, as well as internal links. i'd like some kind of solution in javascript or w/e that detects outside links and opens them in a new tab, but leaves internal links to be opened in the same tab. thanks! =) ...

Performance of setting img src to unchanged value?

If I have an img tag like <img src="example.png" /> and I set it via myImg.src = "example.png"; to the same value again, will this be a no-op, or will browsers unnecessarily redraw the image? (I'm mainly interested in the behaviour of IE6-8, FF3.x, Safari 4-5 and Chrome.) I need to change many (hundreds of) images at once, and man...

Submit form in javascript using form name

Hi, I'm dynamically generating forms with hidden input in a webpage using django templates, which should be submitted when clicking on some associated text label. The problem is that I just can't get it to work. {% for tag in tags %} <form name="remove_{{ tag }}" id="{{ tag }}" action="/filter" method="post" accept-charset="utf-8"> ...

CSS Menu Problem

I have this CSS Menu. It's fully functional. But when I put it in my page inside some table cell, it blows up like this. Don't mind the silver and the blue lines, they are from the page. Now I have debugged the page and the menu itself. No error still this weird behavior. Then I got another menu and put that in here and it showed t...

Parsing HTML easily like PyQuery in Python 2.5

I am writing an app for GAE (Python 2.5) and I was wondering if there is any library like PyQuery (which runs on Python 2.6+). All I have to do is to load an HTML file and get the content of a especific tag through its ID. In PyQuery, or even Python2.6's libraries like lxml, it is very easy, but I don't know how to do that with Python 2...

ASP.NET Code Behind - DB data to HTML

Howdy! :D How are ya? I'm a PHP developer initiating my studies of ASP.NET, out of necessity, and I would like to know the easier way to retrieve some data from DB into an array and use this array to write some HTML. In PHP I'd pull the data, then use a foreach() loop to write, for example, rows of a table. But I don't have idea of how ...

HTML character entities and character encoding set

When including HTML entities in an HTML document, do the entities need to be from the same character encoding set that the document is specified to be using? For example, if I am going to use the copyright sign in an HTML document that is specified as UTF-8, is it necessary to use the Unicode HTML entity (&#x00A9;) or is it okay to use ...

Advanced css/html table styling

I'm trying to achieve table similar to this using css/html only. Is it possible ? http://img687.imageshack.us/img687/6139/11717002.png So the white area is the 'places' table. This is the HTML for the table : <table class="places"> <tr> <td class="solid">K</td> <td>&nbsp;</td> <td>&nbsp;</td> <td cl...

Getting text from inside an HTML tag within a local file with grep

Possible Duplicate: RegEx match open tags except XHTML self-contained tags Excerpt From Input File <TD class="clsTDLabelWeb" width="28%">Municipality:&nbsp;</TD> <TD style="WIDTH: 394px" class="clsTDLabelSm" colSpan="5"> <span id="DInfo1_Municipality">JUPITER</span></TD> My Regular Expression (?<=<span id="DInfo1_Municipal...

Does google index pages with opacity:0 or hidden or display:none

Does google index pages with opacity:0 or hidden or display:none ...