i'm using the below javascript to change an image on an aspx in asp.net c#
<script language="JavaScript" type="text/javascript">
var updateImageWhenHashChanges = function()
{
theImage = document.getElementById("ctl00_ContentPlaceHolder1_Image1a");
if(window.location.hash == "#size=2")
...
I like the visual behavior of the DOJO TitlePane widget, but it has too much other bunk for my purpose. http://dojotoolkit.org/reference-guide/dijit/TitlePane.html#dijit-titlepane
Is anyone aware of a jQuery widget that provides the same ability to expose and hide content in a stacked manner with the little flippy-arrow, pane highlight...
Ok, I'll admit I'm nowhere near the best programmer on the planet -
and I'm used to the answer staring me right in the face but not making
sense of it.
Problem
I need to display multiple markers on a map, each with their own
infowindow. I have created the individual markers without a problem,
but don't know how to create the infowindow...
Hi,
I am new to jQuery and would like to know how is it possible for me to hide an option in a selection box based on the selection of another selection box.
I have 5 selection boxes, this is for the administrator to select the users of a limited criteria. The <options> are create dynamically from the results of a database query and ph...
I am trying to load QUnit in js but the addevent function in QUnit.js is never fired, and it's just not working:
var appendQUnit = document.createElement('script');
appendQUnit.src = 'js/utility/qunit/qunit.js';
appendQUnit.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(appendQUnit);
...
I have the follow structure which is created with a nested sortable:
<UL id="container">
<LI id="main1">
<input type="checkbox" />
Lorem ipsum dolor sit amet, consectetur
<UL>
<LI id="child2">
<input type="checkbox" />
In hac habitasse platea dictumst.
...
Well after countless tries i can't get this work?
<script type="text/javascript">
$("td input").focusout(function() {
var column = $(this).parent('td').attr('class');
var row = $(this).parent('tr').attr('id');
$('#dat').HTML(row+" "+column);
});
</script>
And the html looks like this
<tr class="numbers" id=...
I have the following HTML DIV which does not work using FadeIn in IE:
$(".tip").fadeIn("slow"); /* Is not working in IE. */
$(".tip").show(); /* Works well in IE, that's weird. */
<div class="tip" style="width: 220px; display: none;">
<div class="tip-header">
<span><b>Title</b></span>
<div...
if (tag == 'td' && $(this).hasClass('status')) {
// I am clearing everything inside the td with class status
$(this).html('')
}
But it doesn't seem to clear... Any suggestion...
I am customizing a form plugin,
$.fn.clearForm = function() {
return this.each(function() {
var type = this.type, tag = this...
The old version of the question is below, after researching more, I decided to rephrase the question. The problem as before is, I need to focus a contenteditable div without highlighting the text, doing straight up focus highlights the text in Chrome.
I realize that people solved this problems in textareas by resetting the caret positio...
Given the following string in ColdFusion:
ul[0][id]=main1 &ul[0][children][0][id]=child2 &ul[0][children][0][class]= &ul[1][id]=main3 &ul[2][id]=main4 &ul[3][id]=main5
How can I create an array with the info above?
Thanks
...
Hi All
Just hoping soemone can help me to write better code than I can come up with on my own.
I am using the jquery validation plugin. I have some fields that are mandatory ONLY if certain options are chosen.
The below code works fine. But the thing is, is that that my list of 'OR's is much longer than I've put here. and it needs to...
I want to set GMT+5:30 as my timezone in jquery countdown.
Start Time for countdown is 'Thu May 20 16:00:00 IST 2010'
End Time is 'Thu May 20 17:00:00 IST 2010' as value.
+330 is my timezone given in minutes.
But my countdown starts from 00:35:00.
I would have expected the countdown to start from 01:00:00
Not sure why this is discre...
With this script I get data from JsonResult (GetDevicesTable) and put them to table ( id="OrderDevices")
<script type="text/javascript">
$(document).ready(function() {
$("#getDevices a").click(function() {
var Id = $(this).attr("rel");
var rowToMove = $(this).closest("tr");
$.post("/ImportXML/GetDevicesTab...
Is there any javascript(/jquery) framework/plugin which generates Balloons? The one that can be used in Comics. The balloon dynamically expands and contracts based on the length of the quote.
...
Hi,
I can normally get the ID of the default tree nodes but my problem is onCreate then jsTree will add a new node but it doesn't have an ID. My question is how can I add an ID to the newly created tree node?
What I'm thinking to do is adding the ID HTML attribute to the newly created tree node but how?
I need to get the ID of all of ...
i have a texbox and a treeview. i want the user to search in the treeview by typing in the textbox. i think the best way to do it is using JQuery.
how can i search for a word inside a treeview , color it, and focus on it using JQuery?
a simple example would be great...
i am using ASP TreeView. Sample code for my TreeView is:
TreeNod...
Hi there,
I'm trying to make use of google's ajax apis in a chorme extension's "content script". On a regular html page, I would just do this:
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("language", "1");
</script>
But since I'm trying to load the tranlation library dynamically from js code, I...
I have a php page named import.php. while executing this file a lot of database operation is doing.So i need to show the progress to the user, by using a progres bar.How is it possible using any of these php ajax, javascript, jquery,css, flash... methods
...
Hi,
I have a list of 179 thumbnail images that I am trying to apply a jQuery lightbox tool to an unorder list of hyper-links.
The problem I have is, the jQuery isnt firing until the images have finished downloading, each image is around 23K so on their own, not so big, but as a group this equates to around 4MB.
There is a delay on IE ...