html

Javascript getting DOM children as a String

I have an HTML document with the following code <html> <head></head> <body> <div id="wrapper"> <div class="label">First Name : </div> <div class="value">John Doe</div> </div> </body> </html> Using javascript I want to access the contents of div#wrapper as a string like var s = '<div class="label">First Name : </div><div class="va...

Are these snippets possible with HTML and/or javascript

Question: We have a situation at work where we would like to run the following scripts: xcopy /s c:\STANDAARD_DETAILS_V2\PDF\8.1A.pdf C:\STANDAARD_DETAILS_V2\TEMPDUMP del /s "C:\STANDAARD_DETAILS_V2\TEMPDUMP\*.pdf" However the I.T. manager is dead against batch scripts is there a html or javascrip code/ equivelent for doing this. ...

html: how to make all the DIVs in the center of the page?

like: <body> <div></div> <div></div> </body> How can I make all the DIVs at the center of the webpage? I mean in the browser. ...

How to use CSS in ASP.NET application

I want to know to use CSS in ASP.NET. If I have set of CSS files and I link my master page to them, how to utilize them to make my application look good. I'm not talking about CSS itself but about how to use its elements in the source of any ASP.NET page. I'm looking for suggestions, resources, sites, or opinions. ...

Netbeans "application/x-javascript" tags

I am using Netbeans to edit my HTML project. I have defined the project as a PHP project (although it is just HTML). The problem: Netbeans does not recognize this as Javascript: <script type="application/javascript"> or <script type="application/x-javascript"> As such it does not enable Javascript editing features. (Autocomplete a...

Can jqueryui tabs load new complete html page?

Hi, I created an index.html page that have 3 different tab. With the function tabs() of jqueryui I want load with ajax an html page. Every html page use jquery library, so every page have this code: <link type="text/css" href="css/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.3...

Weird issues in setting style using JavaScript while using a DOCTYPE.

I am trying to add a <div> using JavaScript and then change its width/height/top/left attributes. But when I use the XHTML 1 Transitional doctype, it stops working. This is how I am creating the <div>: var div=document.createElement("div"); document.body.appendChild(div); div.innerHTML='<div id="myID" style="z-index:9998;border: 1px so...

Internet Explorer 7+8 jQuery Error with infiniteCarousel

Hai guise! I am having a spot of trouble with some jQuery I am using, this was previously working but I have made many developments since then and tried to track back to find out what the issue was, but I am unsuccessful - hence, my presence on here. Anyway, I am getting some JS errors in both IE7 and IE8 with the catch my frame jQuery i...

append using HTML/ java?

I would like to append a .txt file ussing HTML or java I know this is possible but keep on running into the ActiveX warning, which in this case is just annoying (we know ActiveX stop being so darn dogmatic) is there just a simple way of scripting this without AxtiveX prompts? The current script as follows (or at lest snippit of) <titl...

Http Agility Pack - Accessing Siblings?

Using the HTML Agility Pack is great for getting descendants and whole tables etc... but how can you use it in the below situation ...Html Code above... <dl> <dt>Location:</dt> <dd>City, London</dd> <dt style="padding-bottom:10px;">Distance:</dt> <dd style="padding-bottom:10px;">0 miles</dd> <dt>Date Issued:</dt> <dd>26/10/2010</dd> <d...

HTML DIV inner scroll

I need a DIV to have constant width, regardless showing the scroll bar. This is what I have so far: <div style="overflow: auto; width:100%; height: 100px;"> How should this be changed ? ...

Is this html declaration repetitive

I have a doctype declaration as seen in the first 2 lines. In the third line, the html tag also has some xmlns declaration and xml:lang and lang. Is any of these xmlns, xml:lang, or lang repetitive? Do they duplicate anything from the doctype. I'd like to keep the doctype and remove all the declarations on the third line if they're rep...

check whether checkbox is checked or not using jquery

Hi there, I want to check whether checkbox is checked or not using jquery. I want to check it on checkbox's onclick event. <input type="checkbox" onclick="javascript:check_action();" id="Public(Web)" checked="checked" value="anyone" name="data[anyone]"> Is it possible? How? Thanks. ...

Can I use jQuery with HTML5?

Possible Duplicate: What browsers support HTML 5 / CSS3 I keep hearing about HTML5. If I start learning it and using it, will I have any browser compatibility issues? I use jQuery considerably. Has it been upgraded to be compatible with HTML5? Basically, is it safe to use HTML5 now, or better to wait? ...

Hidden value is passing while the div's display style is none using PHP

Hi all, Here is my JS: <script type="text/javascript"> function display(action, id) { if (action == 'show') { document.getElementById("explanation"+id).style.display = "block"; document.getElementById("link"+id).href= "javascript:display('hide', "+id+")"; document.getElementById("link"+id).innerHTML = "Close"; } if (action =...

Expanding Background whilst keeping original aspect ratio

I would like to be able to set a background on our homepage which can expand and contract with the window size whilst keeping the original images aspect ratio.... I'm guessing this will need some clever Javascript or similar. The effect has been implemented here whereby then the window exceeds around 1500 pixels in width the background ...

Adjust height on jQueryUI dialog to be as tall as content up to a max

Using jQueryUI's dialog boxes, I want to popup information. My problem is I want to set the height of the dialog to however high the content is. If I don't specify a height, this works perfect. The height is automatically calculated based on the height of the content. Problem then is if the content is very tall, the dialog gets very ...

List of sites which pay for articles.

There are nice sites where to get information about javascript, html, css. I can think of some: http:// www.alistapart.com http:// www.smashingmagazine.com http:// www.sitepoint.com If you write an article for them (sharing some of your developer know-how) you are going to get paid. Can somebody add up similar sites ? I would li...

Javscript prevent drag and drop outside browser window

I've got a dialog screen which is placed on top of my web page. This dialog can be dragged around the page, but also outside the visible part of the page. How can I detect the 'limits' of the browser window and prevent dragging the dialog outside the page? The following part of an case statement is exectuted when I drop the dialog windo...

HTML/CSS: how to put text both right and left aligned in a paragraph

What would be the best code to have two bits of text in a single paragraph, one left aligned, the other right aligned, that also is: the least code as possible the easiest for clients to render (i.e. using least resources) I add this last one to be sure <table><tr><td></td><td align=right></td></tr></table> would get ruled out. Not o...