html

z-index problem when printing from Internet Explorer

When you print in IE it prints content in the layer below the top one. Any way around this. I'd rather do it via css than a setting in the browser. Many thanks, Jools ...

How do I run an if statement in aspx?

I would like to run an if statement but the condition uses a variable from the code behind. How do I call that variable? Side note... I am using a gridview and the variable is in a dataset (dsResult - idnbr colum) <ItemTemplate> <% string temp = (Eval("idnbr").ToString()); if (temp.Contains("X")) { %> ...

Childwindow javascript method opening another child window

I am opening a child window using window.showModalDialog(). In child window I am calling another javascript method OK button click. When I do "OK Button" click in child window, another new child window is opening un-wantedly. Please follow my steps Here is the Parent Javascript method with window.showModalDialog() 2.In ProfilePic.aspx...

Removing the underline from an Html.ActionLink

I have an Html.ActionLink on my page and I am using the following CSS on it to give it an image and try and remove the underlining..... a.searchButton { background-image: url(/content/images/DropAcross.png); background-repeat: no-repeat; height: 16px; width: 16px; display: block; text-decoration: none; clear:...

Floating Variable Number of DIVs to the Center

I defined two CSS classes that set the background to an image (shown below). One is a yellow block, and another is a grey block. .block-gray { background: url('grey.gif'); width: 15px; height: 3px; } .block-yellow { background: url('yellow.gif'); width: 15px; height: 3px; } What I want to be able to do is to define a variab...

Is it possible to generate form fields in a webapp from a list of generic objects?

Here's the situation: We want to have a Search page that takes in an ordered list of Attribute objects, and based on their 'type' (text input, dropdown, checkbox) generates and displays it in the appropriate manner. We'd also need to process the values for these fields in order to filter results. I'm at a loss for how we can accomplish t...

How to reposition a dynamic HTML element on the right side of a browser window?

I am using jQuery to do the following in one function: initially I have a aboslutely positioned DIV; I set inner HTML of the DIV to some needed text/HTML; then I am showing the element at some certain coordinates using css({top: initialTop,left: initialLeft}). Everything works fine inside the left and center area of the page - I see th...

I can't add html elements dynamically in IE

I have this javascript code to add html elements dynamically. It works perfectly in chrome but it doesn´t work in IE, nothing happens, just seems to add spaces that are maybe divs. Please Help Me!! <script type="text/javascript"> var numero = 0; evento = function (evt) { return (!evt) ? event : evt; } addCampo = function () { ...

Need some help to submit a value in the database - phpBB

Well guys, to ask the question is pretty simple, but myself, I'm having a problem on finding the answer, and I need this badly... The question is: I have the following function in (donate/index.php) function submitted_amount() { global $db, $user, $auth, $template, $current_dir; global $config, $phpbb_root_path, $phpbb_admin...

ASP Net - Casting a Request.Form control from Code Behind

This seems really simple, but for some reason Im stumped.. Im dynamically generating an HTML Select Box, lets call it myselect. Im creating this select box based on some database values Im generating an HTML Select Box.. almost like a string that Im just spitting out to the page. So it's never a control in the codebehind, just part of a...

issue with replace() method in javascript when replacing spaces

This is the function I am working with: function replaceH1s() { $("h1").each(function(){ h1name = $(this).text(); stuff = h1name.toLowerCase().replace(' ','-'); $(this).html('<img src="/assets/image/h1_' + stuff + '.png" alt="' + h1name + '" />'); }) } I can't figure out for the life of me why this function replaces th...

Isolate CSS in element from rest of page

I am displaying HTML emails in a page and often those come with general style information that I need to isolate from the main page. For instance, if the email looks something like this: <style type="text/css"> body { background-color:#000; } </style> <div> email's content here <div> I end up with a black background on the whole pag...

document.getElementById(control).value not working with IE8

var tagID = document.getElementByn("<%=ddlSectionHeaderID%>").value; var tagIndex = document.getElementById("<%=ddlSectionHeaderID%>").selectedIndex; var tagName = document.getElementById("<%=ddlSectionHeaderID%>").children(tagIndex).innerText; var exportID = document.getElementById("<%=hdnExportID%>").value; This gives me "Object does...

Help Translating image to table

I have a image that has 4 rectangles on it. The rectangles are (30, 50, 100, 100), (120, 107, 230, 159), (5 , 210, 70, 233), (133, 20, 328, 80) I need to figure out how to translate that to a html page using tables so that each rectangle is one cell. I solved it! Thanks guys :) I ended up using absolute positioning and divs as per s...

which css style handles the click event on a button? other than hover

I see this site that has a button, when I hover over it the background changes. When I click on the button, the button shading inverts i.e. reacts to the click event. Which CSS style is this? I know :hover is for hover, but what about a click? ...

child div height of 100% being ignored

I'm using peter's excellent example for a 100% height div with a sticky footer (HERE). I've omitted the footer parts a i'm not using it. However, whenever i use a child div and try to do the same thing it doesn't work. I want a child div to also take 100% of its parent's height. Here is CSS: <style> html,body { margin:0...

Can crystal reports display input in html form?

If I have a varchar column in a SqlServer db containg html, is there any way that crystal reports can display it the way a brower would? For example, if the field contains the string <b> <u> This is my text. </u> </b> crystal would know to display it as This is my text. I am using the crystal reports that comes with vs2008. ...

Odd problem with input hidden and innerHTML

I have a text area with some text. I also have an "onsubmit" event handler. In that I have an alert of the text area's innerHTML and I get back the text that is inside of the textarea. I then try to assign this to the "value" attribute of a hidden input element. However the value is never assigned, when the form posts, the hidden element...

Keyboard accessible web dropdown menus?

Is there a way to build keyboard accessible dropdown menus on web sites? Our current web application has standard hover menus, but this really slows down our data entry clerks (who are accustomed to desktop apps where there's a keyboard accessible menu and no need to use a mouse). We figured out how to show the menu with a keyboard s...

Moving divs + array with text in jquery, problem in IE

Hello, Please see the following website (http://www.intra-interieur.be/www) in Firefox, chrome, safari, .. It works fine. Then, open it in IE (7 or 8, doesn't matter). It doesn't really work :-). You can view the source of whatever you want, but here are the important things. I think the array with text that is being replaced is causin...