html

Animate backgroundPostion always returns 50% ?

I'm trying to do a very very simple mouseover that animates a change in background position. js $('li.services_w') .css( {backgroundPosition: "0px 0px"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(0px -35px)"}, {duration:500}) }) .mouseout(function(){ $(this).stop().animate({bac...

PHP Simple HTML DOM Parser: Extract entire DOM tree

How can I use the SimpleHTMLDOM Parser to get the entire DOM tree snapshot? Any pointers would help. ...

HTML/CSS - Remove spaces from line breaks in code for LI

Hey, Is there a way to get browsers to ignore line breaks in the source? <div id="navbar"> <div id="navbar-container"> <ul> <li>HOME</li> <li>TUTORIALS</li> <li>BLOG</li> <li>FORUMS</li> <li>LINKS</li> <li>&nbsp;</li> </ul> </div> </div> #na...

Displaying a List of Filters applied to a search Sample

I have a datatable that I display in an asp.net repeater. I then have several search fields that allow the user to filter the results of the repeater. I'd like to display each filtered term as a sort of tag; similar to how SO displays the tags for a given post. I'd then like the tag to have an "x" on the side so that the user can remo...

CSS href vs inline stylesheet difference

Hi, I have a small CSS file with contents: <style type="text/css"> li { padding: 10px; font-family: Arial; } </style> Supposed to leave some space between list elements and change the font. Now, If I include this CSS file in the HTML like below: <link rel="stylesheet" href="./css/lists.css" type="text/css" /> it does not work...

holding all inpute tag's value on submit

how can i hold all inpute tags' value such as text boxes in my aspx file, when i submit the form to the server. i need these tags to hold their value ...

UIWebView doesn't update

I am using UIWebView loadRequest to request a new URL. The UIWebView is inside a TabBar View. When I place the request inside awakeFromNib it works. When a make a subsequent call the view does not change. [webDisplay loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]]; If I place the initial r...

Ok to wrap JSF components generated html with own divs using jQuery after page load?

Using RichFaces 3.3.3, JSF 1.2 and Facelets. For some presentation purposes I need to wrap the contents of some divs with other divs to be able to style them a certain way. I am using jQUery to do this as its cleaner when writing HTML and it can be controlled in one location, otherwise I have to hardcode the extra divs every place I wa...

Exporting from Java Swing/Graphics to HTML

Hi All, I wrote small java Swing/canvas program where I can draw some textboxes. Now I'd like to export those text areas to a set of HTML div. What would be the best way (font-family ? font-face? css selectors ?) to obtain the same rendering as in Java ? Thanks ...

how i can embed google doc in my website

how i can embed google doc in my website using it like a editor ...

Unclosed tags in string

Hi. In my string I have some unclosed html tags. For example <div><p></p> or <p><b></p> I'm using asp.net c#. Maybe regex can works. ...

Add ActiveX and NPAPI Plugin in one page using Nested Object Tag

I want to embed both an ActiveX and NPAPI plugins in one page using nested object tags (as recommended by Mozilla) instead of relying on user agent. The problem is: I want to use one object id, such as id="MyObject", which will be defined in both object tags (for the ActiveX or NPAPI) so that my Javascript calls the object MyObject dir...

Is there a jquery event that fires when a new node is inserted into the dom?

Is there an event jquery fires on a dom element when it is inserted into the dom? E.g. lets say I load some content via ajax and add it to the DOM and in some other piece of javascript I could add an event using .live() so that when an event matching a specific selector is added to the DOM the event fires on said element. Similar to $(...

Does Adobe Air apps work in iphone and ipad ?

Does Adobe Air apps work in iphone and ipad ? ...

Stretching 4 col template with two fixed columns in the middle and custom SOC. Possible?

Hello :) The html code source order should look like this: <body> <div>col2</div> <div>col3</div> <div>col1</div> <div>col4</div> </body> and should look like this: <----------------------100%-----------------------> +--------+-------------------+-----------+--------+ | col1 | col2 | col3 | col4 ...

php, mysql how can I produce a dynamic html with fields in the first column and data in the next colums ?

I found this great example which takes an sql statement and dynamically adds the field names into a header row and the data into the following rows? Heres the example http://www.weberdev.com/get_example-4249.html ...

onclick go full screen

I'm creating a web-app for the upcoming Chrome Web-store... Is there a way to simulate F11 being pressed? Or simply a command that will make the current window go full screen (HTML / Javascript) ??? ...

How to force single line in a HTML textarea element?

Is there a way to make a HTML textarea element to allow only one line? I want to do this because I will have a button to expand it, but if user is allowed to enter multiple lines when the textarea is not expanded (only 1 row) it doesn look very nice, and if I use a textbox for the not expanded state, it looks weird when I replace it wit...

How can I modify HTML files in Perl?

I have a bunch of HTML files, and what I want to do is to look in each HTML file for the keyword 'From Argumbay' and change this with some href that I have. I thought its very simple at first, so what I did is I opended each HTML file and loaded its content into an array (list), then I looked for each keyword and replaced it with s///, a...

Textmate shortcut for add/remove HTML or JavaScript comments

Is there a shortcut in Textmate for quickly adding/removing comments in HTML/JavaScript? ...