Here's my ASP.NET form. When I click one button it calls both jQuery functions. It's probably a rudimentary HTML question but I'm not sure why:
<form id="form1" runat="server">
<div id="testDialog">
</div>
<p><input type="button" id="invoke1" value="test 1" /></p>
<input type="button" id="invoke2" value="test 2" />
<...
I have a SharePoint web part that I wrote in C# which is used to display SQL Server data based on user selections. I pull the data with a DataReader, fill a DataSet with it, and set that DataSet as the DataSource in a GridView and add that control to my page:
GridView outputGrid = new GridView();
outputGrid.CssClass = "OutputGrid";
outp...
How do I change the color of the check mark within an HTML checkbox input?
...
Why wont it countdown?
<script language="JavaScript" TYPE="text/javascript">
var container = document.getElementById('dl');
var seconds = 10;
var timer;
function countdown() {
seconds--;
if(seconds > 0) {
container.innerHTML = 'Please wait <b>'+seconds+'</b> seconds..';
} else {
container.innerHTML = '<a href="download.php">Down...
I'd like to measure to distinct user experience points during the rendering of an HTML page:
Point which user sees the first painting of the page
Point at which user can interact with the page - meaning sees 75% of it or can actually register a button click or link click
I am pretty certain these UX interactions can start before the ...
Now, menus are getting displayed in this way:
Customer
Quote
Table
But,i want it to display in this way
Customer Quote Table
http://dpaste.com/hold/183841/
...
<html><head><title>Test</title>
<style>
.main{width:600px;border:1px solid red; }
.main .left{background:lightblue; width:100px;clear:both; float:left;}
.main .right{margin-left:100px;background:lightyellow; }
</style>
</head><body>
<div class="main">
<div class="left">
title
</div>
<div class="right">
<div ...
I have created a HTML table which has a function written in javascript that takes the value of the cursors position within a large table cell and then prints the value into a cell.
How would i go about printing the value in a tooltip instead of a table cell?
...
I have a form using the GET method.
If values are submitted with special characters, they appear in the URI as:
?value=fudge%20and%20stuff
How do I make it clean?
I don't want to use the header function because this is happening within a page in drupal.
...
i use Adobe flash player in my site, and now i need to increment some filed in database, when user click on player.
here is the script
<div id="conteiner" style="text-align: center;" ></div>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","420","380","9","#FFFFFF");
s1.addParam("allowful...
I'm work on a quiz for school but I've bumped into a problem. I got a javascript file for custom radio buttons (CUSTOM FORM ELEMNTS by Ryan Fait if it's helping). The script hides the input buttons and adds custom styled spans instead.
Now what I want, when I click one of these JavaScript added spans I want to remove disabled for a but...
Is there a way to comment out a single line in HTML using just an escape sequence at the start of the line?
Similar to using # or // in other languages? Or is <!-- ... --> the only option for commenting in html?
...
I will be displaying news feeds from external websites on my website. So i need to open external links in those feeds in a new window, but give the user an option to return to my website.
Basically I'm trying to replicate Google Images' technique of opening a link in a window with 2 frames - with the top frame having an option to "Remov...
Hello.
I've been searching for a solutions for this problem a while but haven't seen any "valid mvc" solution for this.
I hope I can explain my problem clearly enough for you guys.
I need to create a dynamic block of HTML on my website. (eg. a block containing user's latest blog comments).
I have a template view file (a file containing...
I have this (simplification):
$(li).click(function{alert("test");});
<li>
<input>
</li>
What's the best way to bind an event to li but not fire when the user clicks on the input element?
...
Hello, I have been trying to use the PHP Universal FeedParser to read RSS feeds and display the output on my site. Problem is I am VERY green with this and although it seems very simple. the only link that is working is the link provided in the sample. When I try to add another address with the xml or rss.php extensions, I keep getting e...
I'd like to have an IFrame appear above my Silverlight control (top to bottom not Z-Order).
If I place the IFrame element before teh Form element only the IFrame appears on my screen.
To reproduce create a new Silverlight 3.0 Web Application. In you TestPage.aspx simply add:
<iframe width="600" height="200" src="http://www.google.com...
I am using MySQL and PHP to populate parts of a site, often with HTML stored in a TEXT field. I like to keep my HTML indented so that the source is neat and easy to read, for example:
<body>
<div>
<p>Blahblah</p>
</div>
</body>
However, when the HTML is pulled from MySQL, I end up with:
<body>
<div>
<p>Blahblahblah</p>...
I want to be able to preview an image for a user before they upload it.
I've of course discovered that all the modern browsers obscure the actual full path in one way or another, so my original plan of just setting an <img /> element with the local path is out of the question.
I've found this solution, which isn't bad, but I'm expectin...
I have the following code:
<?php
if ($x == 1){
?>
<b>Some html...</b>
<?php
}
else if ($x==2){ ?>
<b> Other html...</b>
<?php
}
?>
Now I would like to have two links below (a href) and somehow pass the variable $x (so Link1 passes x=1 and Link2 passes x=2) in order to load the relevant bit of code from if...