jquery

jquery needs to rebind events on partial page postback

Hi, How can I rebind my events (jquery) when I perform a partial page postback? I am wiring everything up using: $(document).ready(function(){}; After a partial page postback, my events are not firing. ...

Jquery getJSON cross domain problems

I cant seem to get my JSON file to work when pulling it in from another domain using JQuerys getJSON. I have placed the callback part at the end of the url but still have no joy. Firebug tells me its a cross domain issue, which seems to make sense as if I place the json file locally the below code (excluding the ?jsoncallback=? works f...

JQuery $(document).ready() and document.write()

Firstly, is there a way to use document.write() inside of JQuery's $(document).ready() method? If there is, please clue me in because that will resolve my issue. Otherwise, I have someone's code that I'm supposed to make work with mine. The catch is that I am not allowed to alter his code in any way. The part that doesn't work looks som...

Delete browser history using jQuery

I have an ajax application that is based on jQuery. I enabled browser history using jQuery history plugin. But we find out that the application generated too much history. Especially, we provide an in-page "ajax-back" button that enable the page to return to previous ajax state. When the in-page "ajax-back" button was pressed, we w...

How to display count of child record in parent using Javascript or JQuery.

In the example below: <html> <head> <script src="some.js" type="text/javascript"></script> <script type="text/javascript"> //??? //??? ); </script> </head> <body> <table> <tr id="parent_1"> <td>Parent 1</td> </tr> <tr class="child"> <td>Child 1</td> </tr> <tr class="child"> <td>Child 2</td> </tr> <tr id="parent_2"> <td>Parent2</td> <...

Load another page in the dialog

I was able to display a dialog when clicking on a link. How do I the pull another page's contents while in the dialog? ...

What is a good image chooser in jQuery?

I am looking for a nice image chooser in jQuery. Ext has a nice one here (under Examples and Demos -> Views -> Image Chooser). Is there something like this for jQuery? ...

jquery masked input

I was trying to mask a text field and took a look at http://digitalbush.com/projects/masked-input-plugin/ Has anyone used this plugin before? I am trying to mask a text field so that users are only able to enter some dollar amount to it. dollar amount can be between 0 - 500000 Is that feasible through this plugin? ...

I have some problems with jfeed

I'm trying to use Jfeed to parse an rss feed. This line of code inside the jfeed file does not work this.link = jQuery(channel).find('link:first').text(); however this other line works this.title = jQuery(channel).find('title:first').text(); I noticed that every line of code which tries to retrieve a link or description f...

IE7 Crashing on some machines, errors in Debug bar, but don't see 'showstopper'

I've recently been made aware that my site is crashing in IE7. I tested it on a bunch of machines myself, but of course it always runs perfectly. My brother just showed me IE7 on his computer, and it definitely crashes. I've got 'debugbar' running, and it shows some errors in the HTMLCheck, and is warning that fb:login-button is not r...

Extended auto suggest functionality

Hi everyone... I have been able to get the jQuery autosuggest working without any problems, and I was just wondering if the results can be based on a combination of 2 form fields? Let me try and explain a little better! I have a form with a keyword text entry box and a select list with a list of countries. I'd like to provide suggesti...

How to Highlight HTML table row with only ONE row can be highlighted?

The following code is NOT working, but how to correct it? Thx! <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title></title> <link href="003.css" type="text/css" rel="stylesheet"/> <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function(){ $(...

JQuery Boxy plugin resize and access

How exactly does one resize a Boxy.load()? I can resize using: var tmp = new Boxy(); tmp.resize(40,40); But if I then try to use tmp.load('somefile.php'); it states that tmp.load is not a function. I've also tried: var tmp = Boxy.load('somefile.php'); tmp.resize(100,100); // Says that tmp.resize is not a function. How can I resize a b...

Selecting an object given a div name stored in a string

This is a simple question that hopefully has a similar simple answer to it as well. If the id of a div selector is stored in a string, how can I select the div object dynamically. This is what I currently do, and I am convinced that jQuery must have its own way of doing this: <div id="boo">Some content...</div> var divName = 'boo'; v...

jQuery: How to store form values in data() object?

Is there an easy way to store form data in a data() object after submit? Suppose this is my form: <form id='myform'> <input type='text' name='bar' value='lorem'/> <input type='text name='foo' value='ipsum'/> </form> After submit the data should be stored like this: $("#myform").data('bar','lorem'); $("#myform").data('foo','ipsum'); ...

Moving jQuery Slider as a div animates positions

I am trying to create a timeline player. I have a div object which moves from one side of the screen to another (i.e. using animate() to change the 'left' position of the div). Lets assume this animation takes 5 seconds to happen. I would like that a jQuery Slider keeps incrementing bit by bit alongside the animation. The slider must t...

intellisense jquery + external js in expression web?

Hi there, Can anyone tell me what i am doing wrong? I am trying to get intellisense in expression web 2 for external js and jquery I am able to do it in visual studio 2008 I have searched google but can't seem to find the way of doing it Any ideas? Thanks ...

JQuery hover, image map, loops and arrays

I want to use the jQuery hover method for rollovers above a base area image map that incorporates numerous odd shapes, so that rolling over each exact shape triggers an image swap, as well as an .innerhtml swap in a separate text block. I started with a placeholder “zero” image that’s completely transparent, then swap to a png above the ...

Why jQuery load() doesn't work?

Why the following jQuery code doesn't work? I put a div element in the body already. Thanks! $(document).ready(function(){ $("div").load("http://www.pagetutor.com/index.html"); }); ...

jQuery DIV height issues.

Good day :) I am using jQuery's animate() on both opacity and height, on a fixed-size div. It all works fine and dandy in firefox, but in IE8 (with and without compatibility-mode, so I am assuming it will have the same behavior in IE6 and IE7), the animation does show, but when the div height reaches 0%, the div's height adjusts to the...