I have a situation where I'd like to add a "last modified" timestamp to the paths of my js files (ex. "custom.js?2009082020091417") that are referenced in my ScriptManager (contained in my MasterPage) and in any ScriptManagerProxies (content pages).
I can easily get access to the ScriptManager in code and then iterate through it's Scrip...
Okay, since none of you guys like my question, let me rephrase it.
User logs into an HTML form. With JavaScript, their password is hashed locally (salted too). The server knows what the password + salt should be, user is already registered, blahblahblah. Now the user requests a page. The server sends a random ID to the user. When t...
One of the new features in ASP.NET MVC 2 Preview 1 is support for the concept of Editor Templates and Display Templates which allow you to pre-define how a given object will be rendered for display or editing with a simple HTML helper call:
<%=Html.EditorFor(customer => customer) %>
<%=Html.DisplayFor(customer => customer) %>
This is ...
Hey,
This is my first foray into OO JS, having issues.
Ideally in this scenario, I'd have a mapLocation object, which i could just pass in coordinates, icon, the HTML to display upon click and that's it. I'd add it to my Google map on the page and I'd have something somewhat re-usable. Obviously this would be refactored later.
Also,...
I have a web page that displays comments, and users can click a 'Flag' link to report an inappropriate comment.
When they click the Flag link, I use AJAX and innerHTML to display a dropdown box underneath the comment with a reason code, e.g. Spam, Offensive, Unrelated to topic, etc., as well as a Cancel button.
If the user clicks Submi...
I've been developing an Image panning tool, and after a kind member directed me to the draggable plugin for jQuery, I have most of it completed. Right now if the user drags the image (contained inside a div of about 300px by 300px), the image will first flicker, then pan. This problems seems to occur after a mouse down event, on the mo...
Hi there,
Im a noobo in the world of Javascript but am trying to get my heard around it (shouldn't take too)
Basicly what im trying to do is the following
I have a drop down box that when changed will change an image, which i have got to work using the following cose
<HTML><HEAD><TITLE>JS1</TITLE>
<script LANGUAGE="JAVASCRIPT TYPE="TE...
I know I can get the "value" attribute of a radiobutton but I'm finding it strangely difficult to get the text of the radiobutton.
Consider the example below. It has 3 radiobuttons and tries to alert the value of the first radio button, which is "red" and then trys to alert the value of the radiobutton, "apple" but that fails.
Getting...
Hi all,
I am trying to append a copy of a select menu to the bottom of a table when a selection is made in the last select menu in the list. At this point I'd only like to apply the behaviour to the last select menu in the table. The code below adds in the row to the table but fails to unbind the action successfully, and as a result the ...
Does anyone know how to get a page load event to fire if the page anchor in the URL changes, i.e., going from
http://mywebsite.com/#test1
to
http://mywebsite.com/#test2
when using the Back button?
I tried the code at the bottom (the history.navigationMode line along with the ready() function insures that the onload event fires ev...
I have
<span class="cssButton"><a href="javascript:void(0);" class="buttonBlue" onclick="swfu.startUpload();"> <img src="http://uber-upload.com/img/icons/up_16.png" alt=""/> Uber-Upload! </a></span>
And i want to make it so that if you press that button, it also sets a variable that makes it so that if you try to leave the page, it wi...
I want to create a string and pass it by reference such that I can change a single variable and have that propagate to any other object that references it.
Take this example:
function Report(a, b) {
this.ShowMe = function() { alert(a + " of " + b); }
}
var metric = new String("count");
var a = new Report(metric, "a");
var b = new...
I've got a very simple snippet of HTML (below) - and both sections seem to be enabled - the script runs and the noscript tag's content shows. What's going on here?
<SCRIPT language="JavaScript" type="text/javascript">
// script omitted
</SCRIPT>
<NOSCRIPT>
<IMG SRC="image.jpg" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""/>
</NOSCRIPT>
...
I have some data visualization animations I want to do in a webapp I have and am considering different alternatives I have. It will basically just be moving around text strings in a pretty way.
I am using the Mootools framework and the Mootools FX library basically have the stuff i want, but I want to manipulate around 100 text strings,...
Hi,
I'm trying to get JavaScript to parse a date and time format for me, with the eventual aim of telling me the days passed since that date and the time right now (locally).
Unfortunately, the date format I have to work with (it's from a JSON response which I don't have control over) is returning it in 2008-10-01 06:21:43 type format...
I have a json object that has properties into a type and product. I am looking for a way to loop through the elements and organize them into a tiered menu using YUI menu so the first level would group them by type and then the second menu would group them by product.
The json looks something like:
[{ "productId":1, "typeId": 1, "produc...
Hi,
Using javascript, I want to submit a asp.net button, how can I do this?
I know the onclick looks like: javascript:WebForm_DoPostBackWithOptions(new .....);
I am also weary because the ID of the control can change.
...
Is there a library/simple way to flip an image?
Flip image like this:
AABBCC CCBBAA
AABBCC -> CCBBAA
I'm not looking for animations, just flip the image.
I've googled to no avial and only found a complex version that utilized SVG on MozillaZine which I'm not confident that it'll work cross-browser.
...
I have an HTML table on my form. Column 1 contains a dropdown and a hidden span, Column 2 contains a hidden span. I need to show both spans and hide the drop down after a user makes a selection. I have done something similiar in other apps using code like this
var ddl_change = function() {
var ddl = this;
$("lbl1").text(ddl.options[...
I have an ajax script (jquery) that asks index.php to output generated variables. This index.php is also the file where the whole page is generated and initially populated with data. How can I only let the getNewData() function when ajax requests this file. Right now it duplicates the entire page and outputs it so there is two of everyth...