How can I put inline perl code in html, like php?
Do not you know a method to carry out the following code like php? <html> <?perl print( 'test' ); ?> </html> ...
Do not you know a method to carry out the following code like php? <html> <?perl print( 'test' ); ?> </html> ...
Hi I have a little peculiar problem that I currently solve using a table, see below. Basically, I want to have two divs take up 100% of the available width, but only take up as much vertical space as needed (which isn't really that obvious from the picture). The two should at all times have the exact same height with a little line bet...
Okey, guys I have following code: #adminmenu li.hideshow-news, li.hideshow-users, li.hideshow-pages, li.hideshow-gallery, li.hideshow-references, li.hideshow-settings { display: none; font-size: 11px; background: #fff; padding: 3px; } I want to achieve (as I tried here) using only one line for diffrent classes on in div "adminmenu"....
Hi there, I'm looking for a way to display a confirm dialog that's always centered on the page, and floating over the page. Tried that, but it's not 'always centered' at all, since the position is fixed: .Popup { text-align:center; position: absolute; bottom: 10%; left: 27%; z-index:50; width: 400px; backgr...
I am building a drag'n'drop gui builder in Javascript. So far so good. As I add items to the GUI and configure them; I have two mechanisms for addressing them: the 'class' - which I use for doing things to all instances of an item (eg CSS, generic functionality and so on and so forth) and which I can bind javascript libraries to... an...
I have a container div which i add to external websites using a bookmarklet to do some functions, the problem i face that this div contains some elements and each element has its inline style, but when i put in the external site, sometimes it overrides styles from the site CSS. There is a way to stop any overrides on this div? ...
Possible Duplicates: <button> vs. <input type=button />. Which to use? Difference between <input type=button /> and <input type=submit /> Hello to you all, What is the difference between <button> and <input type="button">? Also, what is the difference between <button type="submit"> and <input type="submit">? ...
I have got a canvas tag in a page wrapped within a div. In order to show the canvas in IE, I'm using the excanvas script from Google. I'd like to be able to scroll the contents of the canvas, since it's supposed to be wider and taller than the viewport (the div). I have defined the following styles: The div overflow is scroll or aut...
Hello everyone, I am developing some html pages which embed media player (Windows Media Player and Silverlight player, like sl12videoplayer from codeplex http://sl2videoplayer.codeplex.com/ ). I have learned how to embed players into html, by using DIV/OBJECT tags. I have proved it works technically. My question is, I want to find and ...
Hey everyone, I wrote some PHP code that will allow me to create an html dropdown box, and then choose what should be the selected value. The code is: $role_drop = "<select name='role'>"; $role_drop .= "\r\n<option value='Resident Assistant'>Resident Assistant</option>"; $role_drop .= "\r\n<option value='Community Assistant'>Commu...
Greetings! I have some HTML that may or may not be valid. If the HTML is invalid, a best attempt can be made, and any errors that arise are acceptable (ie, grouping too much because some tag isn't closed correctly). In this HTML are a variety of elements, some of which may have a class (call it "findme"). These elements are of varying ...
I'd like change the CSS for disabled checkboxes in a grid (they are too hard to see, per the users). What is a simple way to do this? My preference in technologies used (in descending order): CSS JavaScript jQuery Other ...
We've developed a security product which identifies certain types of unauthorized traffic on a network. The interface for displaying the messages is a Java Servlet generated page. At this point, the page is a glorified console log. There is a big text box with lines of text added as warnings and messages are generated. A couple of cool...
Purely out of curiosity, what browsers does Base64 image embedding work in? What I'm referring to is this. I realize it's not usually a good solution for most things, as it increases the page size quite a bit - I'm just curious. Some examples: HTML: <img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."...
I'd like to create a macro which moves all my page specific style and javascript to named files. For example: default.aspx contains <html> <head> <title>Weeee</title> <link type="text/css" rel="stylesheet" href="../content/style.css"/> <style type="text/css"> /*page specific style*/ </style> <script type="text/javascript" src="../con...
I'm trying to center a block element (the WordPress caption box, including the image) but it won't work. I've tried: .imagecenter { margin-left: auto; margin-right: auto; display: block; } But it just won't work. I've also tried margin-left: auto; margin-right: auto; but that won't work either. Is there anything I'm doing wro...
Hi, I know this kind of question must get asked all the time but I haven't found a solution for my problem yet. Using FF, Opera and the IE that is on Windows 7 (can't remember what it is), the page looks exactly as it should, but using IE7 on Windows Vista, there is a gap between my navigation bar and the rest of the page which frankly...
This is a simplified Chinese page, link: http://www.vanillafactory.com/clients/womensclinic/www/sc/resources/weekbyweek.html You'll discover that the page is blank when it renders in IE7 (FF, Chrome are fine). However, if you download this page on your desktop and then remove the title tag, then the page works fine again. What's the p...
Heres my Jquery $(document).ready(function(){ $('a.toggle').css('background-image','url(http://blah/resources/img/close.gif)'); $(".sectiontitle").click(function(e){ $(this).next('div').slideToggle("slow"); el = $(this).find(".toggler > a.toggle"); currBg = el.css('background-image'); if (currBg=="url(http://blah/resources/im...
I am setting the css class in the code behind in ASP.NET I could either do: txtBox.Attributes.Add("class", "myClass"); or txtBox.Attributes["class"] = "myClass"; What are the differences? Are there any situations in which one should be used over the other? What happens in case 1 if the class is assigned in the aspx page already?...