html

Ideal post data limit throgh form.

What is the ideal limit for posting the data through the form. ...

Find word using JQuery

I need a little piece of advice. I have a test page with 2 fields: word number and URL Also i have a button Push. When i push the button i want to open the specified URL (it's local html files) and highlight the word at the "word number" position Of course the code must ignore element nodes (<p>,<b>,<table> and so on) ...

Is there a way to group `<li>` elements?

I need to divide into groups several <li> elements in a list, is it possible? (I know I an give each element different class names/separate into different <ul>) ...

Can I initiate loading of frame B from frame A?

On my web page I plan to have a "header" containing links to different parts of my site. The same "header" will be present on every page. My header also contain an image. I started to implement this idea and start to think about frames. I though that my be I should put my header in a frame and the main content will be displayed in anoth...

css name should be?

i am making style sheet for a website. css style name should be related to website or content? my website is about web development.is that right to use style name- #web-development-header .web-development-company-london-content or should use #header .content is css style name can help for seo? ...

Sending Variables in Post without the input tag

I want to send only one variable via the post method. I have queried the database and have to post $row[id] variable to the page along with the form. To send the user's input we simply write like <input type="text" name="xyz"></input> and then we access it as $_POST[xyz]. This way we can send a variable that a user write. But, I want to ...

How switch off image border in IE

Its very strange... i write img{border: none} ... <img src="..." border="0" style="border: 0"/> But it still not working, and IE debugger show me image "border: medium". And my div's more and more fat(( For 10 px per image. Damn IE, it gonna make me crazy... ...

Where can I find sample XHTML5 source codes?

Where can I find sample *X*HTML 5 pages? I mainly want to know if it is possible to mix and match XHTML 5 with other XML languages just like XHTML 1 or not. For example is something like this valid in XHTML 5? <!DOCTYPE html PUBLIC "WHAT SHOULD BE HERE?" "WHAT SHOULD BE HERE?"> <html xmlns="WHAT SHOULD BE HERE?" xmlns:u...

How to get elements from a page using Simple HTML DOM Parser

Hi I am trying to parse a HTML page using the Simple HTML DOM Parser. This HTML page doesn't make use of IDs which makes it harder to refer to elements. On this page I am trying to get the Album name, Song title, download link and the album image. I have done this but I can't even get the Album names! $html = file_get_html('http:/...

jQuery get value from checked element with a given name

I've got an input like so: I'd like to use jQuery to grab that element, and add the function call foo() to the change event. Currently I can get it done, but there are two hacks involved. My (working) code: $(":input[name*=myfield]").change( function( $(":input[name*=myfield]") ) { foo(); }); )}; There are two hacks in there ...

Virtual Includes not recognized

I am attempting to include a header in my html file. <!--#include virtual="/header.shtml" --> This is not being read by the browser. The file works fine when I go to it alone. It works fine when I had it in the header (not through an include file). Do some servers not allow this kind of include? ...

Select all Checkboxes in HTML

HI, I have an HTML which has several a list of items with a checkbox (these are placed in a table). Each row in the table has the following coloumn: <input type='checkbox' name='Events[]' value='1'> <input type='checkbox' name='Events[]' value='2'> etc I would like to have make a link names "select all" that when clicked will select ...

Pound symbol not displaying on web page

Hello I have a mysql database table to store country name and currency symbol - the CHARSET has correctly set to UTF8. This is example data inserted into the table insert into country ( country_name, currency_name, currency_code, currency_symbol) values ('UK','Pounds','GBP','£'); When I look in the database - the pound symbol appea...

Controlling the scope of a document.write call coming from a third party

Dear all, I'm writing a webpage that relies on an external javascript file (that I have no control of), which returns data by using document.write's. Is there any way to dynamically call the function without it overwriting the whole document? Here's the most concise code I can think of: <html> <head> <script type="text/javascript">...

php: replacing double <br /> with </p><p>

i use nicEdit to write RTF data in my CMS. The problem is that it generates strings like this: hello first line<br><br />this is a second line<br />this is a 3rd line since this is for a news site, i much prefer the final html to be like this: <p>hello first line</p><p>this is a second line<br />this is a 3rd line</p> so my current...

Parsing HTML: Call to a member function > children() on a non-object

Hello all, I was just helped with this question but I can't get it to move to the next block of HTML. $html = file_get_html('http://music.banadir24.com/singer/aasha_abdoo/247.html'); $urls = $html->find('table[width=100%] table tr'); foreach($urls as $url){ $song_name = $url->children(2)->plaintext; $url = $url->children(...

DOMNode reference doesn't work anymore after appending it to another element twice

Hi, I'm using the a wrapper around the PHP5-class DOMDocument to generate my HTML. This makes it easy to modify the HTML by using the DOM. An example is creating element #1 and adding it to the element #2 and still be able to modify element #1 directly. A problem arises however with the following: Element #1 is added to element #2 El...

get element position

how can i know that a specific is on another specific after dragging the first and drop it I am using this code in the head of my document to enable drag and drop of my divs var dragapproved=false var z,x,y function move(){ if (event.button==1&&dragapproved){ z.style.pixelLeft=temp1+event.clientX-x z.style.pixelTop=temp2+event.c...

blogger custom template - bizarre color

I have a blog at www.discosinauditos.com I am using this template called cosmo. When I switched to the new editor in blogger all the post headings and hyperlinks switched from this mild white to this hideous blue color. I am no expert in html, but I have looked to it and have not been able to correct this color. Since this template is...

304 latency vs inlined javascript

There seems to be a general conclusion floating around the internet that external js files are better. The main reasons are caching, maintenance, and debugability. However there does not seem to be much discussion on the overhead of the 304 http requests. I went to yahoo.com, and noticed that 304's for each javascript file has an overh...