jquery

jQuery's ajax is causing a full page refresh in FireFox

I'm making an ajax call with jQuery. The ajax call works fine in IE 7, but FireFox 3 always does a full page refresh when making this call. The ajax call is POSTing to an ASP.NET page method. Is there a problem in jQuery or am I just missing some setting? $.ajax({ async: false, type: "POST", url: "Default.aspx/DoSomething", data: "...

rotate text from a horizontal to a vertical position

Is it possible to rotate text from a horizontal position to a vertical on a single point without using something like flash? So I would read the same text normally by tilting my head. I was thinking you can do this in jquery but couldn't find a plug in. ...

Why does my JQuery alert show twice?

I am using JQuery. I have problem when Alerts the IDs of List shows two times, instead of once. The list: <ul id="testnav"> <li> <a href="#">Page 1</a></li> <li> <a href="#">Page2..</a> <ul id="subnav"> <li id="content_1"><a href="#"> Page3</a></li> ...

Setting background-image using jQuery css property

Hi, I have a url in a variable, and I am having issues setting the value in css. $('myOjbect').css('background-image', imageUrl); Any pointers? ...

In jQuery, how can I tell if the current object is hidden or not?

Hi, Before I call: $('myObject').show(); I want to know if it is currently hidden or visible. ...

animate images using my toggle function in jQuery

Hi, Ok thanks to all of you I have made my Toggle() function that alternates an image (changes the images to different colors when pressed). I now want to animate the images, so basically call my toggle() function, but leave a time delay between calls to make it look like a transition/animation. What would be the best way to do this? ...

JQuery Modal Boxes and Iframe

I've been using Simple Modal and i feel it doesn't live up to what i need at the moment. Is there a Modal Box that supports loading external files and allows those external files to close the modal box and redirect the parent page to some url. An example of what i want to do. You have a list of users, you could click "Add user" and a M...

Images not loading in jQuery

Dear all I am using jQuery . test.html contains images and Text. Now I need to load using test.html <img src="../images/lib.jpg" alt="test" width="320" height="290" /> <p>Textt </p> JQuery $("#content2").load("sub_test.html"); The Result of Content2 didn't display the images. ...

jQuery DatePicker and .NET- one calendar control but multiple instances on one .aspx page

Scenario: I have an .aspx page containing multiple collapsible panels. Each panel represents a different report. To run a report, you click a panel and the report's user controls will appear. The date range control I created could be contained "within" more than one panel. The code below does not work in the multiple panels instance...

How to pass a json url to a jquery function?

I have this loaded before the radio buttons with corresponding color variable. <script type="text/javascript"> //<![CDATA[ images = {"Black":"http:\/\/ecx.images-amazon.com\/images\/I\/31XwBA2m8pL.jpg","Slate":"http:\/\/ecx.images-amazon.com\/images\/I\/31SqWkrSb6L.jpg","White":"http:\/\/ecx.images-amazon.com\/images\/I\/31OJufgJT2L.j...

Paging Through XML Data Using jQuery and HTML

I've got an XML file that contains a list of questions. I'd like to load the first question in the list when an HTML page loads and load the answers as radio buttons. When one of the radio buttons is selected, I'd like to display the results as well as a continue button. The continue button would go to the second element in the XML file....

Creating a Survey using jQuery - Any examples?

I'm looking for a very basic survey/wizard example using jQuery and HTML. I'd like it to connect to a text file or XML file and be independent of SQL, PHP, ASP.NET, or any other scripting language outside of JavaScript. TIA UPDATE: I'm looking for a solution that will ask a single question at a time. Then, based on the multiple choice ...

jquery hide show div problem (internet explorer)

firstly i'm sorry for my bad english. i guess my qestion is simple, but i didnt solve it. when i clicked togglediv, commentdiv must be visible or hidden. this code is runing on firefox, but not i.e () $(document).ready(function(){ $("#togglediv").click(function(){ if($("#commentdiv").is(":visi...

JQuery .get vs load() performance question

Is it better to use $.get("http://www.example.com/mydirectory", function(data) { $(".someclass").html(data); }); or $('.tripPlannerBottom').load("http://www.example.com/mydirectory"); any speed or performance benefits? ...

More efficent method of styling alternating blocks of table rows with jQuery?

Doing odd/even styling with jQuery is pretty easy: $(function() { $(".oddeven tbody tr:odd").addClass("odd"); $(".oddeven tbody tr:even").addClass("even"); }); Now I came across an interesitng problem today. What if you want to style alternating groups of elements? For example, alternating blocks of 3. Longhand this can be done...

Finding all classes that match a pattern in an HTML document?

I got to thinking today: what is the best way of getting a distinct (ie no repeats) list of classes used in a document that (preferably) match a pattern (regular expression) pattern or (alternatively) start with a certain character sequence? JQuery can be used for this or just straight Javascript. Now it should obviously cater for all ...

Is jQuery UI tabs broken in rc6?

I've been using jQuery UI v1.6rc2 for a while, and wanted to upgrade to 1.6rc6 to see that they haven't made any breaking changes. It seems they have; all of my tabs stop working whenever I switch to rc6. There seems to be two things wrong. First, the manual advocates using the following: $('#container').tabs(); However, with rc2 I'v...

Getting nothing while parsing XML response from the .aspx page of VS 2005 in JQuery.

Hi all, I am not able to get xml response data from .aspx page of VS 2005. Following is the function which writes xml response on the client end: protected void GetMailContents(double pdblMessageID) { string lstrMailContents = ""; DataSet lobjDs = new DataSet(); StringBuilder stringBuilder = new StringBuilde...

How to use JSON with Jquery?

I'm working at an app which would make a POST ajax request to a PHP script on my server. The script would query the database and return a row of records, as an array. (One array for each row, containing elements such as id, title, etc). I then want to use json_encode() to encode this array, and pass it back to the javascript which will u...

extending jquery on the main element object

I've seen some jquery code where people extend the main object like: $('someId').myCustomObject(); Is this possible or am I mistaken? (if yes, how?) ...