Strip whitespace from Mako template output (Pylons)
Hi guys, I'm using Mako + Pylons and I've noticed a horrendous amount of whitespace in my HTML output. How would I go about getting rid of it? Reddit manage to do it. ...
Hi guys, I'm using Mako + Pylons and I've noticed a horrendous amount of whitespace in my HTML output. How would I go about getting rid of it? Reddit manage to do it. ...
I'm trying to resize an image in an XHTML 1.1 web page based on browser's height. So in the stylesheet I have img { height: 100%; } This works fine in Chrome, but has no effect in Firefox. Any ideas? ...
Say I have an absolutely positioned div inside a normal one. <div id="wrap"> <div id="sidebar"></div> </div> In this case, when I state top and left for the "sidebar", they are calculated inside of the "wrap", because the latter is position="relative". However, when I change the "sidebar" to position="fixed", the coordinates are calc...
I have a grid which has a link to next page and I have a button to navigate back to the grid from the current page. Until now I was using this method to navigate back i.e <INPUT TYPE="BUTTON" VALUE="Back to Datagrid" onClick="history.go(-1);"> But I faced some issues navigating when I had some other constraints along with that, s...
Hi, I am trying to understand callback functions in javascript. There is a function something like function load() { var func = function(data){ /// }; } Can anyone explain me from where the parameter "data" will be returned, as I dont see any variable declared in the file. ...
I'm using XML::LibXML to parse a document. The HTML file behind it, has some minor errors, and the parser reports them: http://is.gd/create.php?longurl=http://google.com:15: validity error : ID smallink already defined nal URL was <a href="http://google.com">http://google.com</a><span id="smallink" ...
i have a ul <ul> <li>1</li> <li><a href="#">2</a></li> </ul> i need a thing that i want to make first li to anchor means <li>1</li> to <li><a href="#">1</li></li> and remove anchor from 2nd means <li><a href="#">2</a></li> to <li>2</li> how i can do this in jqeury ...
hi, everyone, I want to ask a question about the javascript "onload". I am writing the JSP page and I use the <%@ include file ="body.jsp". and I use the following statement in the body.jsp. <table onload="function()"> to load a javascript function, but it doesn't have any action of the page. Is the "onload" can only be used in the ...
Hi, Well, it may be a idiot idea... But we need DropDownList.java to wrap all data of a "List employees" dropdown list. The object is populated at server side and used by JSP and javascript (json) for rendering view. Just something like org.apache.struts2.components.Select but in POJO format. We already created our own classes but if t...
Hi there. I have a problem setting value of an hidden input element. I've tried using jQuery and $("#SomeHiddenElement").val(sSomeValue) function, and plain JS document.getElementById("SomeHiddenElement").value = sSomeValue; but nothing works... When I set the element to text type it works just fine... The problem persists both in FF ...
I want arich text editor for embedding in webpage but it should have tools and textbox seperable, i mean they should not be integrated ...
New Google Analytics code looks like one below: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-0000000-00']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protoc...
This is code snippet of my html page can i validate the two text feilds specified using jquery ,i am not using any form tag in my html page <div id="panel1"> <fieldset id="fieldset1"> <legend>Registration Details:</legend> Name of business:<br/> <input size="30" type="text" id="businessname"/><br/> ...
<html> <body> sdadfasdf a <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> asfdasdfasdfadf </body> </html> Output is sdadfasdf a Coffee Tea Milk asfdasdfasdfadf How to remove above and below spaces in Order list ...
I have tried to use the standard AJAX HTMLeditor from here (http://www.asp.net/ajaxlibrary/act.ashx) and I have try to work with the FCKEditor (from http://ckeditor.com/) But both don't do everything. I call the AJAX standard control A and the FCKeditor F. With the A editor it is impossible to get your HTML text in the HTML content. Yo...
I have an HTML page that has this doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> However, the HTML contains this tag: <applet src="blahblah"></applet> (EDIT: actually the HTML doesn't contain the applet. The applet is created dynamically by other javascript code). Yes, I know...
How to add a custome attribute to a HTML control. <input type="text" validate="xyz"></input> I want to add a new attribute to the HTML control. validate here is the cutome attribute. ...
how can i increase the space in this table "Row 1, cell 1"? <html> <table border="1"> <tr> <td>Row 1, cell 1</td> <td>Row 1, cell 2</td> </tr> </table> </html> pls check here for the image: http://img227.imageshack.us/img227/6166/htmln.png is this correct: <table border="1" td.my-cell { padding:100px; }> <tr> <td class=...
I've just got started with the basics (as well as a few intermediate aspects) of HTML, CSS and PHP. What is a good starting point to practice these 3 languages? I was thinking of writing a URL shortening script but I was wondering if anyone here might have a better idea. I am looking to develop something that would help me broaden my ...
I need the following layout for a webapp: +---------------------------------------------+ | header | +-------------------------------------------+-+ | |#| | content | | | |#| +-------...