html

How do I open a different page depending upon if user selects open in new tab or not.

I am opening links on a page into an IFrame. But if the user right clicks and selects open in new window that will ruin the look I want since it will not have the parent page holding it. So is there a way to open the page as i have it working now when the user clicks on the link but if they choose to open in new tab to have it load the c...

Strict doctype - form and input element

Does anyone know the reasoning behind the strict doctype not allowing input elements to be direct descendents of a form element. I find it annoying that i have to wrap a submit button which is a block level element inside another block level element say a fieldset or a div. However, I cannot find an answer anywhere as to why this actua...

Extracting a table row with a particular attribute,using HTMLAGILITY pack

Consider this piece of code: <tr> <td valign=top class="tim_new"><a href="/stocks/company_info/pricechart.php?sc_did=MI42" class="tim_new">3M India</a></td> <td class="tim_new" valign=top><a href='/stocks/marketstats/indcomp.php?optex=NSE&ind...

Good online HTML5 tutorials

Are there any good tutorials or resources online for learning HTML5? I already know HTML I am just looking to learn about the other things in HTML5. Thanks in advance! ...

Urls treated as relative urls when using chrome-extension link?

I use chrome.extension.getURL for a file, and on the page it is placed, it treats it as a relative url (e.g. http://example.com/chrome-extension://ajs8dh8dsfauhdf8auhaffh/blah.js) How can I make it treat it as an absolute URL instead? It is placed into the href component of a tag. EDIT: I've seen people's plugins do this for CSS, so I ...

click two radio buttons at the same time?

is there a way by which if i click a radio button(s) in say, FILEA.htm, a corresponding radio button in say, FILEB.htm, is automatically clicked? ...

Embedding script with timeout in case server goes down

I need a way to make sure my script won't block the viewed page, if the server serving the script is down (port 80 is blocked for some reason). Currently when I test it and take down the server (Apache), or close the firewall, I see in the browser that it is trying to load the resource (script in that case), without success for long sec...

Delete default value of an input text on click

Hey, I have an input text : <input name="Email" type="text" id="Email" value="[email protected]" /> I want to put a default value like "What's your programming question ? be specific." in StackOverFlow, and when the user click on it the default value disapear. ...

auto adjustable layout for all content

Hi sof fellows, I need to dev a very flexible layout for a cms so that the structure auto-adjusts regarding the content. The basic layout min-with layout is suposed to obey 1024px wide and it works fine for the most os the cases, but as we're talking about a cms, the editor very often creates content or copy/paste it from word and the c...

PHP Beginner: How to pass PHP variable from one PHP code segment to another ?

I have index.php which uploads a file to server and sets several PHP variables (like $target_folder_and_file_name). index.php also has the following line (it was originally index.html): <script language="JavaScript" src="main.js.php"></script> After index.php returned to the browser, the browsers asks for main.js.php from the server ...

Show a picture when mousemove over a text with jquery?

Hello, do you know any tutorial or script that shows a picture when mousemove over a html text? ...

How to insert PHP script into HTML the best way?

Hello, I have to insert full path to every single image/css file of my website, because of url_rewriting and I'm looking for the most officiant way to do it. Of course I could do: <img src='<?php echo $full_path; ?>/images/theImg.jpg' alt='alternative text' /> But somewhere I saw people doing it like this, or something: <img src='{...

XPATH query, HtmlAgilityPack and Extracting Text

I had been trying to extract links from a class called "tim_new" . I have been given a solution as well. Both the solution, snippet and necessary information is given here The said XPATH query was "//a[@class='tim_new'], my question is, how did this query differentiate between the first line of the snippet (given in the link above and ...

HTML website templates for programmer's website

Where could I find HTML website templates geared toward a programmer's website? I have looked on Google but couldn't find templates specifically for a programmer's website. EDIT: To clairify, I want this as information about me, my projects, a blog, and some other stuff. ...

Using Javascript to submit forms.

EDIT: For some reason if I change the input into an , the submit code works fine. Ok, this works, I'll just style the a tag to look like an input tag in css. I am using a jQuery function to submit a form when a certain button is pressed, however this seems to have no effect on the form. My code is as follows: HTML: <form id="loginForm...

jQuery Actual image diamension

I have a 1024x768 image <span class="frame"> <img alt="Image" title="Image" src="hD41120CA-7164-11DF-A79E-F4CE462E9D80_Green_Sea_Turtle.jpg"> </span> and the below CSS sets the image width to .frame img{ width:425px; } And the jQuery code $('.uploaded_image img').attr("width"); returns 425 How can i retrieve the actual ...

URL "fragment identifier" semantics for HTML documents

I've been working with a new installation of the "MoinMoin" wiki software. As I was playing with it, typing in mostly random test pages, I created a link with a fragment blah blah see also [[SomeStuff#whatever|some other stuff about whatever]] Then I needed to figure out how to create the anchor for that "whatever" fragment identifier...

Does http-equiv="refresh" keep referrer info and metadata?

Hey guys, I'm posting this here because the Doctype community seems to be sleeping in. If I set up a page like this: <html><head><meta http-equiv="refresh" content="0;url=http://internic.net/"&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt; Will the browser send referrer info and other metadata when the redirection is performe...

Automatically select option from select menu with link

Hello there, I am trying to use php (and if not php, javascript) to link to a page and include a "?type=foo" or "#foo" at the end of the link so that when the linked page loads it will automatically select a specific option, depending on the end of the link, from a dropdown menu in a form. I have tried to search for this but do not know ...

How do I pass a value through this input field?

How do I get the value of what the user inputs into the text field for quantity? echo"<label>Qty:</label><input type=\"text\" name\"qty\" size=\"3\" maxlength=\"3\" value=\"1\"/>"; ...