So I'm writing a simple page that I want to be able to slide some content down when a button is clicked. Unfortunately this also causes some issues with the button I have underneath the sliding content. When I click the first button to slide content down, it works fine. As soon as I click the 2nd button, it slides the first content up, a...
Hi,
I'm developing a JavaScript API service. Main html page looks like this:
<html>
<head>
<script type="text/javascript" src="scripts/logic.js"></script>
<script type="text/javascript" src="scripts/jquery-1..."></script>
<script type="text/javascript" src="http://mydomain/api/main.js"></script>
</head>
...
</html>
In t...
I have a form with a select field. Depending upon the selection, an optional second field (different for each selection) should appear to gather further information. I had a script I wrote in jQuery to do this and I converted it quickly to a plugin (with the intent to add more of my commonly used form related code to the plugin at a la...
I have a requirement that needs two separate autocomplete actions on a single textbox, the autocomplete in use is determined by a dropdownlist.
My initial thought was calling dispose on the previous autocomplete before loading the next one would work, however it doesn't. Has anyone gotten this to work?
The other alternative would be t...
So heres my problem. On the first fire of my code it works perfect but I reload the submit button using javascript (rather then refreshing the page). Everything that doesn't have to do with ajax runs fine on the second click but I can not for the life of me get the ajax to run the next time the button is clicked.
Here is my code:
$("...
I have searched a lot and have found enough about it but I am unable to apply it.
I have an Ajaxhandler to request as:
..test.ashx?pagenumber=1
And I want to make it crawlable.
...
Using just the DOM API, what are all of the different ways I can access a node?
For example, I know I can call document.getElementById("header");. I'd like a complete list of ways to get access to this node.
...
I'm attempting to integrate fancybox, but I've run into something which is confusing me.
I want to have a standard gallery, but if javascript is disabled then clicking any image takes you to a page which shows all the images in large.
I've crafted a url like this:
<a href="/pages/all-photos" class="photo_group" image_path="/system/ima...
I am using the Google CDN to call the jQuery 1.4.2 Min File into my application. One FF, Chrome, Safari everything is working great. But for some reason, i get a "Access Denied" error for the jquery.min.js file on line 127...? I don't get it. Anyone have a clue why this is acting up in this way? I am totally clueless.
!
Screenshot
a...
Hi!
I'm looking for a very small (one liner) ajax javascript library to add on the first line of a small script to make some requests.
I already tried:
http://www.openjs.com/scripts/jx/
http://code.google.com/p/microajax/
But they do not work at all. Alternatives?
...
I wrote a comparison validator, that compares two inputs values.
Originally in tried using the primary input's name attribute to store the secondary inputs id.
//example: does not work in IE7
<input id='txtPrimary' type='text' class='compare' name='txtSecondary'/>
<input id='txtSecondary' type='text' />
This work in every browser exc...
I'm developing a Firefox extension and have the following code:
function initialize() {
// For accessing browser window from sidebar code.
var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Compon...
Is there already a plugin for jquery to re-create this: http://www.imgmodels.com/details.aspx?navbtn=1&cityID=1&modelid=261005&pic=054.jpg&subid=5569&mainsubid=5569&catID=2&indx=1
Best Regards,
...
Scenario:
- fill object1
- copying the content of object1 to object2
- delete element from object1
Result now:
- both object1 and object2 have 1 element deleted...?!
Wished result:
- object1 should have 1 element less than object2
The code:
var object1 = new Object();
object1['key_one'] = 'value_1';
object1['key_two'] = 'val...
Hello All,
I want to build a tracker application where the end user gets a JS code which he puts on his website. I want to track data related to that website like http referer.
What I am currently doing is to feed the client jQuery and a code snippet. The JS checks document.referer and sends that back to my php script via jQuery ajax G...
Hi, is it possible to pass multiple arguments using a single variable? For example, if I wanted to do something like:
function foo(x,y){
document.write("X is " + x);
document.write("Y is " + y);
}
var bar = "0,10";
foo(bar);
The example above is an simplified example of what I was trying to do. It doesn't work (because the "...
I FORMULATED MY SELF VERY BADLY!
I will start over :) I appreciate your good answers, and if you can, try answering this: ( I will try to be more specific this time)
What I want is, that a <form>element onsubmit, onclick of a button or whatever takes the value of an <input type="text" value="Default value"> and inserts it in a couple o...
I need to inserd a record into sqlExpress thru javascript in aspx. Any Idea?
...
(function($)
{
$.vari = "$.vari";
$.fn.vari = "$.fn.vari";
// $.fn is the object we add our custom functions to
$.fn.DoSomethingLocal = function()
{
return this.each(function()
{
alert(this.vari); // would output `undefined`
alert($(this).vari); // would output `$.fn.vari`
});
};
})(jQuery);
// $ is the m...
What Javascript has to be written for a popup when a link is clicked? Correct me if there is anything else to be done.
Link is written like this.
<div style="float:left; padding-left:9px;"><asp:LinkButton ID="lnkActiveInactive" runat="server" OnClick="lnkActiveInactive_Click" CssClass="linkclass" Font-Underline="True">Cancel My Accoun...