html

Parsing XML with jQuery

I've used this: $(document).ready(function () { $.ajax({ type: "GET", url: "http://domain.com/languages.php", dataType: "xml", success: xmlParser }); }); function xmlParser(xml) { $('#load').fadeOut(); $(xml).find("result").each(function () { $(".main").append('' + $(this).find("language").text() + ''); $("....

<span> tag selection problem within anchor using jquery

Dear expert, I have facing a problem to select span tag using jquery. Please give a solution. code: <ul> <li> <a href="#Document1">Document 1 <span id="tab_close> x </span> </a> </li> </ul> ...

Show PDF in a web

I want to display the contents of PDF file in a webpage. I don't want the browser to download when the user clicks. ...

For my website, is it possible to create a button where users can click on it to create an ICON on their iPhone desktop?

User clicks the button, and an icon is added to the iPhone desktop. If possible, can I activate this button manually? ...

How to write php+html in one file more beautiful?

<? if($id == 2) { ?> html goes here <? } else { ?> if id is not 2 then something goes here <? } ?> How can I write php+html in one file more beautiful without learning smarty? ...

Is there any issues with always self closing empty tags in html?

Are there any browser issues with always collapsing empty tags in html. So for example and empty head can be written like this <head></head> but is can also be written like this <head/> Will the second case cause issues in any scenerio? Thanks ...

How is this input tag linking to another page?

Response.Write("<div><input type='submit' name='submit' value='Update Cart' /></div>") Response.Write("<div><input type='submit' name='submit' value='Shop More' /></div>") Response.Write("<div><input type='submit' name='submit' value='Checkout' /></div>") that is some example code from my teacher, but he hasn't answered my email in ...

How can I make a link open in a new window using css?

I need to make a set of links open in a new window - the good thing is they all have the same css style - what do i need to do in css to get these links opened in new window? ...

XUL: how to render special html entities(copy, trade, deg...)?

If I just put in label value or anywhere else &trade; or &deg; it will give me parse error. ...

How to create a hover effect in a newsletter?

I'm creating a newsletter, and i want to have panels that change background-color on mouse over. Seeing as the newsletter wont have a head, I am defining all styles inline. I'm pretty sure most popular mail clients will block JS. So I was wondering if I can define a hover effect in the style attribute. Or is there any other solution to a...

Firefox, prevent rendering between javascript statements.

I'm trying to create some kind of zoom around the mouse cursor feature on my website which ultimately runs these two lines (+ the same for height/scrollTop). canvas.style.width = someValue; canvas.parentNode.scrollLeft = someOtherValue; The problem is that in firefox(3.6) the page is re-rendered directly after the first row has been e...

Set a callback function to a new window in javascript

Is there an easy way to set a "callback" function to a new window that is opened in javascript? I'd like to run a function of the parent from the new window, but I want the parent to be able to set the name of this particular function (so it shouldn't be hardcoded in the new windows page). For example in the parent I have: function DoS...

Get URL and save it | Chrome Extension

Basically on my window (when you click the icon) it should open and show the URL of the tab and next to it I want it to say "Save", it will save it to the localStorage, and to be displayed below into the saved links area. Like this: Something like bookmarks :) ...

Xpath and innerHTML

What Xpath expression can I use to find all the anchor (just 'a') elements whose actual text (the innerHTML) is Logout. something like //a[@innerHTML='Logout'] Would that be correct? ...

Making ExtJS Window maximize animated?

Hi, My question is simple: is there a way to animate the maximize of ExtJS windows? Currently my windows just maximize without any animation and it looks "boring". ...

What is the use of DTD in HTML?

Hello, Could anyone specify what is the need and use of the Document Type Declaration in HTML pages. What is the advantages of it? I searched through the Net and found the results to be little bit confusing. Please someone highlight. ...

Seeking through a streamed MP3 file with HTML5 <audio> tag

Hopefully someone can help me out with this. I'm playing around with a node.js server that streams audio to a client, and I want to create an HTML5 player. Right now, I'm streaming the code from node using chunked encoding, and if you go directly to the URL, it works great. What I'd like to do is embed this using the HTML5 <audio> tag,...

Split file with PHP and generate contents

How do I split the content below into separate files without the placeholder tags. I'd also like to take the text inside the placeholder tags and place them inside a new contents file. <div class='placeholder'>The First Chapter</div> This is some text. <div class='placeholder'>The Second Chapter</div> This is some more text. <div c...

Dynamically alter outter div as inner one gets bigger.

I have two divs, one inside another. The outter one is called #wrapper, while the inner one is called #pad. Now #pad allows user input, and I have a javascript (jQuery) function that changes the content of #pad based on what the user input is. Sometimes, because of this function, #pad's content will cause the div to become more elongat...

JS - Why is this hidden div not showing in IE?

Hello. I've made a page which should show a div when the user clicks on a input text box. The div will contain more information about the required input, etc. The page works fine on FireFox and the div shows, but when using IE the div just doesn't show. It seems like I've tried everything and nothing has worked so far. This is the page. ...