jquery

Mega drop down menu

Hi! I am trying to create a mega menu similar to this http://www.sohtanaka.com/web-design/examples/mega-dropdowns/. How can I create a similar menu that slides down and all the drop down menu when it open remains the same size as the same position as the first. Is there any examples and demo that i refer to? Thanks ...

Changing HTML page Icon?

I have a webpage. I want to change the icon on button down (this would be enough for me to understand but I'd be glad if you'd describe a way to animate icon after button click). ...

simpletip help with dynamic content loading

I am trying to load content from the database using simpletip. My code: <script type="text/javascript"> $(document).ready(function(){ $('a.regularsList').simpletip({ onBeforeShow: function(){ this.load('/regulars/tooltip', {id: $(this).attr("id")}); } }); }) I get that i...

How do I use these JSON results to build a dynamic html table in jQuery?

I have a textfield where the user enters some number and clicks the "search" button. On clicking the "Search" buttton it displays all the associated JSON records with that number. How do I construct the dynamic HTML table by looping through each record? Here is my JSON structure returned from PHP: [{"number":"ABC123-product1","value":"...

Accordian not working with all my data..

I am using this according plugin link text the 3rd one down...3: Non-accordion (standard expandable menu) and each li looks like this <li> <a href="#">Burswood Dome - Burswood Wa, Australia</a> 2010-10-04 <ul class="acitem"> <br><input id="yes_song1" name="yes" type="radio" value="song[1]" /> ...

How to get clean/pure HTML from ASMX web service call

I am trying to use jQuery .load() to get straight html from a asmx web service: $('#target').load('MyService.asmx/GetHtml'); In .NET code, GetHtml() returns as string: [WebMethod(EnableSession = false)] [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Xml)] public string GetHtml() { return "<spa...

Where can I find sample code for a Jquery flickr image gallery.

If you search for jquery image galley you will get lot of links where you can download the sample code. For this gallery I am not getting example. Can anybody provide the link if he/she has used this gallery before? http://devkick.com/lab/fsgallery/ EDIT I am looking for exactly similar.. ...

Help with JQuery autocomplete in rails3

Hello. I'm having difficulty setting up JQuery Autocomplete with Rails3. I don't get any errors, it just behaves like regular text box. Here is what I have done: First I installed autocomplete as explained here: http://github.com/crowdint/rails3-jquery-autocomplete#readme I have a model class which contains the model which will be ...

Using fancybox to view full sized image

I'm trying to develop some code where a jquery takes images and resizes them to fit the parent div, with an option to click on the image to view it in full size with fancybox. I'm trying to do it all images with class "expand", and don't anticipate having more than on image with that class per page. Below is what I've come up with so fa...

what is wrong with this jquery script?

What is wrong with this jquery script? It doesn't seem to be functioning properly: there are no syntax errors (I checked). $(document).ready(function() { $('.statuses').delegate('.vote_up', '.vote_down', 'click', function(e) { e.preventDefault(); //get the ide var the_id = $(this).closest('.message').attr('i...

Changing the "placeholder" attribute of HTML5 input elements dynamically using Javascript

I'm trying to dynamically update the HTML5 placeholder attribute of a text field using jQuery. $("textarea").attr("placeholder", "New placeholder text"); From Firebug, I can observe that the placeholder attribute is indeed changing. But in the rendered textarea element, it stays the same. Any suggestions? ...

jQuery $.post not completing when called

I have the following function which I use to check whether or not an email address is already registered. checkTaken() { var email_var = $('input#email').val(); $.post("../includes/check_email.inc.php",{email:email_var} ,function(data) { var ret = data + ""; if(ret=="true") {//if username not avaiable $('div#emailTa...

Stacked jQuery UI Dialogs

Hello, I have one modal dialog in my application that works very nice. I do setup and open of the dialog with the following functions $(document).ready(function () { $("#__gsl_DialogPanel").dialog({ autoOpen: false, resizable: false, position: 'center', stack: true, height: 'auto', wi...

Persisting textbox value using jQuery

I'd like to save the newly entered values, so I could reuse them. However, when I try to do the following, it does not work: // el is a textbox on which .change() was triggered $(el).attr("value", $(el).val()); When the line executes, no errors are generated, yet Firebug doesn't show that the value attribute of el has changed. I tr...

jQuery: When getting the value of an element, do I need to declare the variable in document ready?

I'm storing the value of a specific form element as a variable. This same value is used in multiple functions. function one() { var selectedRole = $('#RegistrationRole_ID').val(); } function two() { var selectedRole = $('#RegistrationRole_ID').val(); } I'd like to make this a global variable so I don't have to keep selecting i...

jquery will not submit ajax post requests

hi all, Im having a a few javascript gremlins, for some reason my jquery ajax post request is not going out at all. All of my code 'looks' ok, but javascript is not my strong point, can anybody see where im going wrong? $(".deleteWeek").click(function(e){ var answer = confirm("This will delete the selected week. Are yo...

jQuery vs CSS Preferred or Accepted Style Best Practices

I have the following loading image: <img id="loading" src="loading.gif" /> To show/hide it during an AJAX call, I have several solutions. For example, I can hide it by adding a class which corresponds to a CSS style: $('#loading').addClass('hidden'); .hidden { display: none; } Alternatively, I can use jQuery .show() and .hide(). I...

Sorting problem with Wicket AjaxFallbackDefaultDataTable and JQuery tablesorter

I am creating table with Wicket's AjaxFallbackDefaultDataTable and using JQuery tablesorter plugin(http://tablesorter.com) for sorting columns. Sorting works fine for first time when I load page, but when I click on any pagination link on the table, sorting is not working. Basically wicket is replacing entire table when I do pagination a...

jQuery Cycle Plugin callback error

I can't get before & after callbacks to work with the cycle plugin for jQuery! I'm not sure what's going wrong, i even tried using the sample code from the documentation. Here's the code: $(document).ready(function(){ function onBefore() { alert('before'); } $('.slideshow').cycle({ before: 'onBefore' }); }); a...

Looking for a jquery continuous image scroller.

I'm looking for a horizontal jquery image scroller that I can used to display a large list of logos. I was able to find almost exactly what I needed here : http://kiusso.net/scripts/imageScroller_jquery_plugin/index.htm The only problem with this example is that when I implement it the scrolling kept speeding up and slowing down becaus...