html

SmartNavigation issue in .Net 1.1 asp.net app.

Hi, I have a .Net 1.1 webapp with a aspx page with the attribute SmartNavigation=true set. I have a anchor in the page like this: <a href='#' onclick="$.copy('ANNUAL PAID OZ');">Copy to clipboard</a> Problem is when I click it the browser window scrolls to top. Any ideas why?? Malcolm ...

How to figure out the location of a keyword in an HTML document?

I have an HTML document as a string I want to search for a keyword in this document and figure out where did it appear in the document I mean in which tag did it appear did it appear in H1,H2 or TITLE tag lets say my document is $string = "<html> <head> <title>bar , this is an example<...

Asp.net Root folder of website in CSS

So, I thought I'd try my luck on ASP.NET, didn't get very far before I found my first problem. I have a Folder Layout like so: \ ->Admin -->Admin.Aspx ->CSS -->Style.css ->Images -->bg.gif Default.aspx Default.master Both admin.aspx and default.aspx use the default.master page, which contains the line: <link rel="stylesheet" type...

Most commonly used syntax for a templating engine?

I'm writing a template engine (something that will add data to a template to produce a document, like that used in Active Server Pages or JavaServerPages or PHP - or even shell/bash scripts, ant or Word form letters). Some examples: ${yourVariableHere} <TMPL_LOOP NAME=EMPLOYEE_INFO> <%= toStringOrBlank( "expanded inline data " + 1 ) %>...

Tree-like Select in HTML

I'm trying to create a tree-like <select> using HTML and CSS. To maintain accessibility I'd like to avoid javascript if possible. I'd also like to avoid using &nbsp; instead of padding, as this prevents pressing letter keys to jump to items. What I have so far is this: <select> <optgroup label="fluffy" style="padding-left: 10px;">...

how to hide parent div, keeping inner div visible?

Below is a simplified version of my problem. Considering the following piece of HTML: <div id="div1" style="display:none"> text i do not want <div id="div2" style="display:block"> text i want to keep </div> </div> But of course, "text i want to keep" will not be displayed because the parent div is not visible. Qu...

html control gets hidden behind aspx controls

Please check the attached link in which i have attached screenshot. The html dropdown gets hidden behind the aspx dropdowns that i created. Is there any solution to make the dropdown list be seen on top of the aspx controls? http://img23.imageshack.us/img23/2553/imageydn.jpg Thanks in advance, Geetha ...

Applying two CSS styles at once using jQuery

I'm developing a webchat system which shows the current 'members' of the chat as a unordered list. A chat member can either be a standard member of the public, a moderator or a police officer. So each list item has a different style: <ul id="MembersList "> <li class="Police">Mr Policeman</li> <li class="Moderator">Mr Moderator</li> <li ...

how to clip text in css like gmail does to emails subject listings

in gmail, they display the subject - followed by a short snippet from the body and it looks like the body text is clipped, i am assuming this is done with css, gmail style sheets are fairly complex, so am not certain anyway only parts of letters are showing at the end of the line where they get chopped off does anyone know how i can ...

Basic CSS Concepts

After discussion with some of my friends about css concepts, I have some questions to ask to you guys. When do we use Id and class in css? and we have a conflict idea with Div and Span. When are Div and Span are used? Any key to these questions? ...

Is it possible to load gzip compressed javascript without a webserver?

I have been trying, unsuccessfully, to get a HTML page to load an external GZIP compressed javascript file from the local filesystem using a HTML file such as this: <html> <head> <script src="test.js.gz" type="text/javascript"></script> </head> <body></body> </html> When I open this HTML file directly in a browser, the Javascript file...

Need Help With jQuery Hidden Div

I have a jquery code where when I click on a peice of text another div appears above it, but the div just go's on top of the original div, but what i want is for the new div to push the orignal div down with it. This is the code HTML: <div id="social">Content to Show</div> <div id="joinus"> <center><a id="activator" href="#">...

html table - which column will give ?

when you have a table where you define explicitically the width per <td> and the total is greater than the existing width that you have to play with. what determines which column will shrink and which will enforce the td width? ...

Two charset tags on a page, which to take?

I'm working on crawling pages for information, and have run into many problems with parsing the pages in Groovy. I've made semi-solution that works most of the time using juniversal chardet and just scanning the page for tag in the head, but sometimes two of these tags are found on one page, for example: <meta http-equiv="Content-Ty...

rails helper for select_tag?

I don't get the point how can I do that code with an select helper? <% @cube_names.each do |cube| %> " <% if @cube_name == cube %> selected="selected"<% end %>><%= cube %> <% end %> I have a list (@cube_names) and want a HTML select box width all values of the list and the default value (param @cube_name) sh...

Random Querystring to avoid IE caching

It is a well known problem that IE caches too much of html, even when giving a Cache-Control: no-cache or Last-Modified header to everypage. This behaiviour is really troubling when working with querystrings to get dynamic information, as IE considers it to be the same page (i.e.: http://example.com/?id=10) and serves the cached versio...

The Best Way To Represent key/value Pairs In HTML Class Names

I am binding things to HTML objects using javascript and need a slightly more sophisticated mechanism than just class names. My first approach was to use class names like structure declarations where the binding is on name position as so: Definition = identifier: foo bar baz Encoding some class name with this definition gives <p i...

Is there an easier way to reference the source element for an event?

I'm new to the whole JavaScript and jQuery coding but I'm currently doing this is my HTML: <a id="tog_table0" href="javascript:toggle_table('#tog_table0', '#hideable_table0');">show</a> And then I have some slightly ponderous code to tweak the element: function toggle_table(button_id, table_id) { // Find the elements we n...

Force all floating DIVs to match the height of their container

Howdy, I'm trying to figure out a way to make three floating divs match the height of the largest floating div of the three (which, via the clearfix solution, is the height of their container). My question is exactly like this question, only my question needs the requirement that the comments to the answer overlook :) ("what if the two...

Confirm delete before deleting dataview's row

Hello, I have a GridView which supports deleting. I'd like to add a pop up window with a question like 'Are you sure you want to delete this row?'. My code: <asp:GridView id="GridAccounts" runat="server" AutoGenerateColumns="False" ShowFooter="True" DataKeyNames="ID" DataSourceID="AccountDataSource" onrowcommand="Gri...