html

change the absolute position from left to right on a span tag depending on class.

Hi. This is my first question here but I'm sure there are many more to come. I have a small position problem that I would like to know if it's even possible to achieve. I have an unordered list (<ul>) with floated <li>s, for the main options i float these left, and for the contact and support options I float them right, so far so good....

Best practice for filtering items client-side with JavaScript, hide or remove from DOM?

I have a relatively large dataset of items (a few thousand items) that I want to navigate by applying a number of filters client side in a web application. Applying the filtering logic itself is not an issue, the question is about which method to use for updating the table of matching results to get the best user experience. The methods ...

Image in SELECT element

I know how to have pictures show up next to the options in a HTML dropdown form element using the CSS background-image property. However, the images do not show up on the selected element. Is there any way to do this (preferably using only CSS)? EDIT: Here is an example of the working code for the list elements. However, when the drop...

Prevent Table Resizing

I'm working on a web page where I have a dynamically generated table where certain columns should be of variable width (sizing to the text) and certain columns must always be a specific width. However, the table is inside of a containing div, and firefox is resizing the table such that it stays within the confines of the div. The trouble...

vertical and horizontal scrolls not working

I have a master page which is using the style sheet.. My problem is that my vertical scrollbar does not work and horizontal scrollbar is not showing when i restore down the page. here is my .aspx code.. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD X...

Drag and drop a html table into another application

I'm having a problem dragging an html table from my C# winforms application into an external application (Outlook email message) and getting it to render as a table instead of a plain text version of that table. I know that when you copy/paste in the clipboard you have to put the table in CF_HTML format but that doesn't seem to help with...

php checkboxes always showing checked

Hi all, I've got a single checkbox which i'd like the unchecked value to be 0 and the checked value to be 1, but when the post goes through, it always shows as 1 whether the box is checked or not.. Here's the checkbox: <input name="stock[]" type="checkbox" id="stock[]"> value="1" /> here's what it spits out regardless of whether it's...

PHP open link in iframe

I have the following code presently: if(isset($_POST['Movie'])) { $check = $_POST['Movie']; echo "(left angle bracket)a target='imdb' href='http://www.google.ca/search?hl=en&source=hp&fkt=3948&fsdt=45174&q=$check imdb } This gives me a link to click which when I do click opens in an iframe called imdb. How do I cut out the ...

javascript get selected html elements

User is on a webpage , uses his mouse to select stuff, how can i use javascript to know what has been selected? ...

Selenium: Not able to understand xPath

I have some HTML like this: <h4 class="box_header clearfix"> <span> <a rel="dialog" href="http://www.google.com/?q=word"&gt;Search&lt;/a&gt; </span> <small> <span> <a rel="dialog" href="http://www.google.com/?q=word"&gt;Search&lt;/a&gt; </span> </h4> I am trying to get the href here in Java using Selenium. I have tried the following: ...

How to fit two inline elements to the body width?

<html> <head> <title>Title</title> <style type="text/css"> #container { position: relative; } #line { border-bottom: thin solid gray; display:inline-block; position:relative; bottom: 1ex; width:90%; } </style> </head> <body> <div id="container"> <span id="title">Title</span> <span id="line"></span> </di...

Using HTML Purifier to stop links to own site

I have used HTML purifier to weed out any suspect stuff coming in from my public facing WYSIWYG editor. The incoming HTML is also displayed in the public portion of the website. I have allowed links, and I also automatically linkify URLs in plain text (using the purifier). Is there a way to allow external links, but ban links to the sa...

getting null for google.gears object when working offline ...

Hi, I am new to gear, We are using gear in our web application were flow is ... When ever user assign with some task user will get message attached with static html file, In that html we are showing work assign to user in html form once user submit we are creating local database and saving data to local database, But the problem is we ...

Nested Server Controls to allow nested html

Does anyone know how to make nested server controls accept nested html without "injecting" it out from serverside, ie. <uc1:CustomServerControl runat="server"> <NestedControl></NestedControl> <NestedControl2></NestedControl2> </uc1:CustomServerControl> but to do this: <uc1:CustomServerControl runat="server"> <div> ...

css height 100% problem

Hello, Currently, I have a code like this <!DOCTYPE HTML PUBLIC "-// W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd"&gt; <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <style type="text/css"> body { background:#000; } #header{ float:right; width:800px; } #topbar ...

Stop blink (jQuery plugin) using stopInterval

Hi, I am using this jQuery plugin for text blink http://plugins.jquery.com/project/blink But I don't know how to modify it to do a .stopblink() Can someone help? Tanks ...

How to remove HTML tag in Java

Is there the regular expression that can completely remove a HTML tag? By the way, I'm using Java. ...

HTML CSS Table Background

I have a form which is presented in a table. In the third column, there are 4 rows for selecting the preferred method of contact (radio buttons). I'm currently using a label to write this text in the first row. I'm told, however, it doesn't look as nice as using a custom image. The image is supposed to sit nicely amongst the form conten...

change link text in HTML using JavaScript

I have an html page which has a link called "open". Once the link is clicked the text "open" should change to "close". How do I do this? ...

How to apply pagination in IFrame.

I have an IFrame with a Table enclosed within it. I want to display 15 rows of a table and than a Next button must be there to move forward. How to apply pagination for IFrame? ...