jquery

How to make a Javascript DropTree

I am trying to determine the best way to create a treeview list in a dropdown. I have found many JS controls of treeview's, but not how to implement in a dropdown list. ...

ASP.net Ajax and JQuery - partial postback

A radiobutton list and a repeater are in an updatepanel. The repeater is using a jQuery tools plugin - scrollable. The scrollable plugin works after the initial page load. It does not after I click on a radio button. I put in an input button to run the script below after a partial postback and the scrollable functionality works a...

jquery contenteditable linebreak

Hi Guys, I have a content editable area and im trying to disable enter/return and shift enter from creating a new paragraph, i have this working with the script below but it disables the buttoms all together, what i wish to do is have return just place a line break rather then go to a new paragraph. $("#content").keypress(function(e){ ...

JQuery attributes

Hi, the following is my HTML DOM element... <input type="text" style="width: 200px;" id="input1"/> I want to keep the date value in it..But somewhere i need to specify that it is going to hold date value in the Dom element.. How can i do so..Please suggest me ...

Quick jQuery question: What's the way to get all elements of a queried set EXCEPT the first?

I forget offhand. ...

adding a function to jquery countdowntimer plugin jCountdown

hi i would like to use this plugin, but it does not have an option to stop counting, or change the countdown timer value: http://plugins.jquery.com/project/jCountdown how can this featuer be added? thank you! ...

Quick jQuery question: Stopping event propagation?

I have a set of elements that respond to mouseUp events, and inside of them are child elements that respond to mouseUp events as well (all via. jQuery). How do I make it so when a child's mouseUp event occurs from a user mouse click the child's parent's mouseUp event doesn't also occur in jQuery? ...

Need to cancel click/mouseup events when double-click event detected

How is this done? ...

Jquery and adding row to table.

I have the following jquery code. var destTable = $("#numbers"); $(document).ready(function() { $("#btnAdd").click(function() { //Take the text, and also the ddl value and insert as table row. var newRow = $("<tr><td>hi</td></tr>"); $("#numbers").append(newRow); }); }); What I would really like is to store a reference to ...

interpret http_build_query($_POST) in cakephp

Hi, I am using CakePhp and JQuery in my application of FOrmBuilder. I am having form as like <form action="/cake_1.2.1.8004/index.php/results/submit1" method="post" id="ResultSubmit1Form"> <fieldset style="display: none;"> <input type="hidden" value="POST" name="_me...

Jquery Ajax post and object as data.

var dataO = new Object(); dataO.numberId = 1; dataO.companyId = 531; $.ajax({ type: "POST", url: "TelephoneNumbers.aspx/DeleteNumber", data: "{numberId:1,companyId:531}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { alert('In Ajax'); } }); I would like to pass the dataO object as t...

Format numbers in javascript

Is there a simple way to format numbers in javascript, similar to the formatting available in C# (or VB.NET) via ToString("format_provider") or String.Format()? ...

jQuery attr href, why isn't it working?

I thought the following line of code should work fine: $(".1").attr('href', '#Home'); Right? But why isn't it working when I integrate it with another jQuery script? $(window).bind("load", function() { $('.1').click(function() { $('.1').removeClass('tab1'); $('.2').removeClass('active2'); $('.3').removeClass('active3...

How to use the jquery.rotate and jquery.cycle plugins together

I have a series of photos (3 series actually) that need to cycle, which the jQuery cycle plugin does nicely for me. My problem is I also want to rotate them (rotate as in turn) by a few degrees each in varying directions on page load, to achieve a 'scattered' look. jQuery Rotate does this nicely too ... my problem is I can't get both r...

jQuery Lightbox/Modal Windows for a Pop-Up Web Screen

Hi, Within my web application, I was thinking of creating a pop-up screen of a page for a user to do some processing in. I basically want this page to be like a drill-down window of displaying detailed reords based on a button you press from a top-level summary record. Instead of a pop-up, I was thinking of a jQuery lightbox feature /...

selecting divs retrieved through AJAX in jquery

Hi, I'm creating a basic forum where every message contains the authors name, some text and the date it was created. I'd like the forum to update constantly through AJAX, and show new posts that were created on the fly. I currently have a PHP file getlatest.php?lastid=... that retrieves all posts from the ID given to the most current. It...

How to make the function into order in jquery

$("#maincontent").animate({"top":"450px"},1200) .html($("#"+Lidentity).html()) .animate({"top":"0px"},1000); Hi friends, This is jquery code, which is working fine. As 1. animate maincontent top to 450px 2. get the content and placed into maincontent 3. again animate maincontent top to 0px. this will give the effect simila...

jQuery remove HTML table column

Hello. I have a HTML table like this: <table border="1"> <tbody> <tr> <td><a href="#" class="delete">DELETE ROW</a>COL 1</td> <td><a href="#" class="delete">DELETE COL</a>COL 2</td> <td><a href="#" class="delete">DELETE COL</a>COL 3</td> <td><a href="#" class="delete">DELETE COL</a>COL 4</td>...

Calling jQuery Function with Javascript Function

Having some trouble getting this to work, specifically with $.getJSON(). I want to wrap the getJSON function from jQuery in a Javascript function like so: function reload_data() { $.getJSON("data/source", function(data) { $.d = data; }); } But when I call reload_data() it doesn't execute the jQuery function inside. Any...

How to wait for document to finish loading in javascript when i am inside an event that occurs before

Hi I am using JQuery Address plugin for address.change event the problem is that this event occurs before document is fully loaded ( in FireFox & safari ) how can I wait for it to load? thanks. ...