html

IE layers issue when dtd with doctype tag is not added

Hello colleagues, I am facing a very strange issue because of which when i do not add the below line to the html the layers(z-index) is not working. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"; "_http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; Please let me know if you are aware of the issue and how to g...

jQuery Lightbox Clone is not initialising properly

Help...? Hey, I have the following function on an onClick call: function addComment() { jQuery.noConflict(); jQuery('head').append('<link rel="stylesheet" media="screen" type="text/css" href="colorbox/colorbox-images.css" />'); //this doesn't add correctly. jQuery.fn.colorbox({inline:false, href:'boxes/add-co...

smarty: {if div with class="one" is enabled, (HTML snippet1) Else (HTML snippet")

Hi, on the site I'm working on, I need to show two different HTML snippets depending if another element is activated or not. Like: {if "div class="box expandResults" is enabled(or appearing on the page)"} ....HTML.... {else} ....OTHER HTML.... {/if} How can I do this with Smarty or jQuery? I only have access to the .tpl files. ...

how to get doctype tag with url using xsl:output

Hi, i have added the below xsl:output tag in xslt <xsl:output method="html" indent="yes" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" ></xsl:output> as a result i get the below doctype tag in the html output- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> how can i mention the url in the do...

Why do Facebook followers not shown in Safari & IE8?

Hello Everybody We integrated facebook in our web application [Java GWT]. Facebook page followers shown in Mozila firefox 3.07 and Google :) but not shown in Safari and IE8 :( we used following script in our Java coding to show facebook page followers[Like]: <script type='text/javascript' src='http://static.ak.connect.facebook.com/j...

jQuery noob: change Display of one element when another is enabled.

I made an attempt at changing the CSS of an element display: block; when another div is enabled.. Here is a jsFiddle example. What am I doing wrong? Website example: click FILTER MENY and select one of the filters. When the div "DU SØKER" is enabled, Filter Meny should stay open, when Du Søker is not enanbled (remove your filter choi...

Can't calculate width of elements

I try to get width of DOM objects: function resizeArea(){ var width = 0; area.children().each(function(i){ alert(this.offsetWidth); width += this.offsetWidth; }); area.css('width', width); } In get results: Chrome: 800 Opera: 708 FF: 783 IE: 714 But if see it in firebug, dragonfl...

Is there any Rendered HTML Diff engine for .NET

There are some questions on SO about Html diff engines, but i cant find right answer. What i need is .NET library for comparing two rendered html strings and displaying diff (like SO renders questions/answer editing revisions (example)). ...

Scope of This JavaScript Variable

I have a question and an issue wrt the code below: My question is what is the scope of the variable loaded here. The reason why i ask this is the onload="if(loaded==1)inittextarea() code is working fine on Firefox and not IE8. Why is this happening? Is there something specific i need to do here? Or is it not a valid practice? <html> <h...

Different ways to use browser and system media resources

Examples: <img src="system://media/icons/logo.png" alt="OS"> <style> img.browserIcon {background-image: url(browser://media/icons/logo.png); width: 16px; height: 16px;} </style> On Firefox you can access to some resources like this: <style> .button {background: transparent url(chrome://global/skin/button/startcap.png) no-repeat s...

Make jQuery-ui draggable handle cover entire page

What would be the best way to make an element draggable when clicking anywhere in the window? Would I have to use a container <div> that covers the whole window? I tried making the body draggable but that didn't work. The problem with using a container <div> is that it moves and therefore doesn't cover the whole of the screen any more...

html emails using mail.php

Hi i am creating a email system which works on our devbox but on our 1&1 server i get a internal server error 500. The way which i generate the email is by using a simple_dom_parser which reads a html file and replaces for a specified value. I have managed to get the email to send now and everything works within it. Here is the code <h...

Rendering html/js in J2me app?

Is is possible to display html document in J2ME mobile app? Is it possible using for example WebKit? I was looking for some webkit's j2me implementation or some tutorial or advice in google but found nothing. ...

jQuery selector: this.parent, is there such a thing?

I have a lot of div boxes with nested div .titles, with a button inside. Is there a way in jQuery to select the parent of the button? Something like: $("#button").click(function(){ $("this.parent").css({'border-bottom' : 'none'}); }); Or am I going to have to rename all of my title classes to unique classes? ...

Difference in display for jQuery created img tag and ASP.Net created img tag

My web page has two ways of displaying a particular content. 1. When the page is loaded, the items ( images with anchor tag) are generated using ASP Repeater. 2. When user perform some Ajax action, the images are returned as JSON and I use jQuery for creating the a & img tags. In both these methods, the anchor tags with images are dis...

htmlspecialchars() - How and when to use and avoid multiple use

Hi, I'm building a PHP intranet for my boss. A simple customer, order, quote system. It will be denied access from the Internet and only used by 3 people. I'm not so concerned with security as I am with validation. Javascript is disables on all machines. The problem I have is this: Employee enters valid data into a form containing an...

BlockUI jquery plugin keeps page blocked after "back" button. Opera/FireFox

I use jquery blockUI plugin (v2) and call $.blockUI when user submits a form. Web page smoothly fades out and new page appears. That's ok. But when user presses "back" button in opera/fire fox he observes fade out page with hourglass mouse cursor that is completely blocked. Chrome/IE visualize page ok. What would you suggest? Thank y...

How to print a web page without using the WebBrowser control

Hi there, We are using a client application to print out grade sheets from an online application. This has been working flawlessly until the systems were upgraded to IE 8. I now receive this error (Access Denied): http://img707.imageshack.us/img707/5259/62270489.png Apparently, this is a known issue and it cannot be solved. How can I ...

Style:Display and Visibility errors ?

< table border="1" cellpadding="0" cellspacing="0" width="100%"> < tr> < td>1< /td> < td>1< /td> < td>1< /td> < td>1< /td> < td>1< /td> </tr> < tr style="display:block "> < td>2< /td> < td>2< /td> < td>2< /td> < td>2< /td> < td>2< /td> </ ...

php function output ina table row... how?

I want to run this function but show the result in a table row strlen($cat_row['sms'] This is what i came up with but it is not working: echo "<tr><td bgcolor=#626E7A>".**strlen($cat_row['cars']**."</td></tr>"; How do you show result of a php function in a table row? i am trying to format the output some how. please help ...