jquery

Jquery cycling through multiple images and showing 3 at a time

Hi folks! Can you please point me to a jquery plugin, or a snippet I can use to make this? Here's the question: Say I have 12 images and I want to show 3 at a time and cycle through the 12 in this fashion: (img1-img2-img3) then (img2-img3-img4) then (img3-img4-img5)... See what I mean? In fact, I want a kind of marquee for images. ...

How can you swap an input text field to a password area on focus in JQuery?

I would like to display "password" as text in the password area, and when focused the box should become empty and allow normal password (starred out) input from the user. Currently I use the following method. Initially I display a text field showing password, when focused it is removed and replaced with a password field. Here is the jQu...

jQuery animate css border-radius property (webkit, mozilla)

Is there a way in jQuery to animate the css3 border-radius property available in webkit and mozilla browsers? I haven't found a plugin that will do it. -webkit-border-radius -moz-border-radius Thanks. ...

How to split jQuery plugin over multiple files

I'm writing a small CMS as a jQuery AJAX plugin and though it's by no means excessively long (currently about 500 lines) I can see it would be nice to be able to split it into separate files, one for each "subclass": (function($) { $.fn.myCMS = function() { this.classOne = function() { ... } this.classTwo = function() { ... ...

Remove Refresh Help Jquery

I am trying to get the div recentactivity to only refresh when Remove is clicked < a href='#' onclick=\"javascript:remove_wall('$id')\">Remove but when every i click on the link it keeps trying to refresh. when the mouse go's over the tr a link comes up saying remove here is the code for that. $(function() { $("tr").hover(function() ...

Ajax back button with dynamic content

I've created a page using JQuery and Ajax that helps a user filter through a series of options and ultimately displays a filtered list of products meeting their specification. This all works fine. The problem i'm having is the "Back Button" problem with Ajax, i know how to get around this with anchors on static content (i.e. Filter.php...

How do I post a form without the page refreshing in jQuery?

I want to be able to post the following form without the page refreshing in jquery and i need the form to post in information into actions.php can somebody help me please? <div id="postbox"> <form method="post" id="ptowall"> <input name="post" type="submit" value="Post" /> </form> </div> Thank you. ...

Selecting an Element after a jQuery appendTo Function

I need to dynamically append a set of elements to a div via jQuery and then turn around and reference them. It's really odd that you can't do this, since if you view the DOM in firebug, the elements are there. jQuery just doesn't act like they exist. HTML... <div id="images"></div> This gives me my elements added to the <div>... ...

Prevent direct access to JSON Web Service

I have a webservice that is used by inserting a piece of javascript into the page. The Javascript scans the page for a certain string and makes a request to my ASP.NET JSON WebService. The javascript then uses the JSON to display some content. What I would idealy like to do is prevent anyone from accessing my JSON service directly. Th...

Prototype vs JQuery

Possible Duplicate: Which Javascript framework (jQuery vs Dojo vs )? What is the best? I mean: what I need is simple AJAX features and OOP javascript tools, and manipulation of DOM. Think about the future, popularity and possible extensions or integration with other tools, what is the best choice? Thanks L ...

Can I use a jspf in a jquery UI dialog,if yes then how

I have been using jquery UI dialog in which I want to give a ajax call to populate the combobox in it,I also have jspf regarding the same.So please tell can I do this (using jspf inside the dialog box ) also can I give ajax call via the selection on dialog box if yes how as also I have to map the jquery data with the struts form. ...

jQuery ajax() and cakePHP urls

I'm trying to call the 'tariff' action of my 'countries' controller using jQuery ajax() and pass it a country name in the following format: /countries/tariff/countryname however, with the following code ( set to GET ), it is calling this with the get '?' added: /countries/tariff/?countryname $(document).ready(function(){ $('#Coun...

Is there a simple way to use jQuery alongside Simile Timeplots?

I created a loader for a Simile Timeplot that is implemented as a jQuery plugin. This works fine in Firefox but fails to load correctly in IE(8). The timeplot api loads the timeline api which in turn loads some version of jQuery (presumably an old version). The timeline jquery reference confuses IE and it is unable to display graphs nice...

jQuery's slideToggle does both slideDown and slideUp in IE8 simultaneously

I've uploaded my problem here : http://gotchance.com/k2/ Try clicking on the "Login" link. It works fine in FF and Safari. However in IE8, the form slides down and then slides up again automatically. For testing purpose, i added 4 more "test" links and found that only the links inside #navigation div cause this problem. Also, if i tog...

jquery autocomplete keypress database

I am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes as user types... The problem is its not showing autocomplete box/frame/.... Just to make sure webmethod returns data on every keyup event, I assigned data to a div element, and it works as it should. <script language="javascript" type="text/javascript"> ...

jQuery: how to keep the element functions, even when the element is been removed and recreated?

Hi guys, i have a problem.. I use the autocomplete plugin, that i edite for make the input text to disappear when the user make the choice. So, my goal is, when the user select a row from the autocomplete list: An Ajax request would retrieve additional info about the selected row (no problem here) A form auto-fillup with those additi...

Traversing a JQuery object and replacing text

Hello there, Assuming I have the following html div which I want to replicate its children, changing the value of each span in the process <div><span class="foo">[Name]</span> <span class="bar">[Name]</span></div> Using jQuery I can get a reference to the "div" by var $div = $("div"); and then clone as in var clone = $div.childre...

Delaying a jquery script until everything else has loaded

I have a jquery script which I need to run only once everything else on the page, including some other javascripts (over which I have no control) have finished doing their thing. I though perhaps there was an alternative to $(document).ready but I haven't been able to find it. ...

Post using JQuery to ASP.NET MVC [Authenticate]-wrapped action.

Hi, I'm trying to post with JQuery like this: $.post("NiceController/Create/", { field1: data1, field2: data2 }, function(data, textStatus) { if (data.Status) //Do something }, "json"); The problem is, that when I'm not authenticated I don't get redirected, to log-on page, because it's not a full form submit. Question is:...

jQuery randomly fadeIn images

I have a container with a lot of small images. <div id="container"> <img src="1.jpg" /> <img src="2.jpg" /> <img src="3.jpg" /> ... <img src="100.jpg" /> </div> I set opacity to 0. (not hidding) Then I want to show(fadeIn) random image after half second. for example 5th, 1st, 55th ... Any suggestions, thanx a lot ...