html

How to delete extra DIV element from HTML Document

I am developing a News application and for this i am using a web product for fetching News Headline. When I call a NewsHeadline, product sends a Html Code including News Headline. <div class="mydiv"> <script type="text/javascript"> document.write('&lt;div style="display: none"&gt;'); </script><div style="display: none;"> <div>< a h...

str_replace of html using php

Hi, I have this code: $newphrase = str_replace('href="/Css/IE6.css"', 'href="http://www.company.com/pgrddedirect/iefix.css"', 'href="/Css/IE6.css"'); So that I can search the html file in php using DOM in an attempt to modify the location of the .css file before I redisplay it. I intend on uploading the new .css file to my server and...

Div covering text input in chrome and user cant select it

On one of my web sites there is a text input box on the left for search. http://wiki.guildwars2community.com/ However in chrome you cant select the input as if you right click>Inspect element it selects a div. Whats strange is the links and buttons underneath it work fine. Any ideas or is this a chrome bug? I have tried setting the z...

Online file editor

How can I create an online file editor? My web application will allow a user to create a new text file, edit it and save it. He can do so with multiple files open in multiple tabs. ...

What's the best way to get a description of the website, in Python?

Suppose I downloaded the HTML code, and I can parse it. How do I get the "best" description of that website, if that website does not have meta-description tag? ...

Why is there a border on this table?

On this page, there seems to be a small problem... there's a sliver of white showing. Here is the relevant HTML: <table id="topbar"> <tr> <td id="topbar_logo"> <a href="http://stackmobile.com/" style='padding: 0px;'> <img src='images/logo.png' style='width: 48px; height: 40px; border: 0px; margin: 0px;' /> </...

What is the difference between relative and absolute tags of div element ?

What is the difference between relative and absolute tags of div element ? ...

jQuery: HTMLInputElement has no method 'val'

I'm looping through cells in a table row. each cell has a text box in it, and I want to take the value of the text box and push it onto an array. function dothing() { var tds = $('#'+selected+' td'); var submitvals = new Array(); tds.each(function(i) { var val = $(this).children('input')[0].val(); ...

How to disable browser default password pop-up?

I am developing a Google chrome plugin. under the options page I am running a AJAX request to the server that requires PASSWORD I just want to catch the error if Password was incorrect, but browser is giving a popup window. Can I disable it and how? ...

ScrollTo horizontal problem- top div contents briefly show in bottom div on nav. click

I am using ScrollTo and LocalScroll on my single page site, which scrolls in all directions. I have four large divs inside a wrapper, two on top and two below those. Each div is a 'page' of the site. Onload, the page goes to the 'home' div anchor, at the bottom left of the window/page. My issue is that anytime I try to scroll horizonta...

CSS width: X percent +/- Y pixels

I would like to do some simple layout math. I remember the syntax below worked in opera last time I tried it. Standard CSS lacks any calculation support as far as I know. So how can I achieve this with standard css(IE7 compatible)? #myDiv { width:100% - 260px; } Edit So here is some context: I will try and draw my situation with so...

difference between px and em

What is the difference between px and em? ...

Echo each Catagory from a table into its own DIV

Hey, My problem seems complex to me, but im sure theres a simple way to do this. Essentially, I have a treatments list. On the MYSQL table the list's items are broken up by catagory, title, description and price. I need to echo out each catagory into a div each, sectioning them off. So, if the user has 4 catagories of items then I sho...

solution to this design?

i was looking forward to some designs as done here. how is it possible for the background to remain static and the content to move over it?? ...

Editable DOM in HTML, like Google Docs

I'm a little curious about how the editing of Google Docs works. How did they implement an editor within the DOM? It does not really looks like a form with a textarea, but rather a normal document body with an additional cursor. I guess it is some javascript technique behind. Is there any free library that I can use for achieving this k...

Iframe default height

Why does iframe have a default height of some 100px when the html content inside has only 20px? You can view an example here: http://www.tulumarka.com/galerija/28497/after-beach-party---02072010papaya/?pid=418319 Below the thumbnails there are two iframes that push that content below them but shouldn't do that cause they have no conten...

CSS problem - centering floating divs inside a container

Hi all, I'm having some issues with centering a bunch of floating divs. I've searched SO quite a bit (specifically here and here), but I seem to be missing something. I'll post my code and hopefully somebody here can see what the problem is... What I'd like to accomplish is something along these lines The behavior that I'm curren...

Click heatmap and mouse coordinates! - Javascript

Hi folks, I'm trying to build a simple heatmap for one of my sites, but it seems a lot trickier that I thought! 1) There are different themes for the site, 1 is aligned to the left, another one is aligned to the centre. 2) Screen sizes change throughout the users. I need to track clicks on the site, but unfortunately event.PageX and ...

HTML page submission without redirection

Is there any method to submit an html form without redirecting from the current page without using ajax ? ...

Why it is accepted to use an UL, LI structure in menu lists?

I'm new to HTML. When I started reading documentation about lists, I've noticed that everywhere an <ul>, <li> structure is used, even for creating very simple lists. But for me it's most comfortable to use only <a> elements with CSS: display: block; /* and/or */ float: left; So, why use <ul>, <li> instead of just <a>? Thanks a lot....