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
...
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<...
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...
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 ) %>...
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 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;">...
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...
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
...
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 ...
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 ...
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?
...
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...
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="#">...
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?
...
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...
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...
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...
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...
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...
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...
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...