jquery

jquery with dynamic template div rows building

ok i have a site which has many different templates with different htmls for each template. i want to know how can i render for each row for its section with paging dynamically with jquery? i dont want to store html in a var, because it changes with template and i want to make it easy for designer without needing to know jquery code. s...

jQuery - animate / slide to height: 100%

Hello, I have a siple code here: $('.aktualita_sipky').toggle(function() { $(this).parent().find('.aktualita_content').animate({ height: "100%", }, 1500 ); }, function() { $(this).parent().find('.aktualita_content').animate({ height: "120px", }, 1500 ); }); Now when I click it as the first 'toggle...

Prevent form redirect OR refresh on submit?

Hey guys. I've searched through a bunch of pages, but can't find my problem, so I had to make a post. I have a form that has a submit button, and when submitted I want it to NOT refresh OR redirect. I just want jQuery to perform a function. Here's the form: <form id="contactForm"> <fieldset> <label for="Name">Name</label> <input...

How to parse an xml ajax reply with jQuery?

Using an ajax POST request in jQuery, I get the following xml back from the server: <?xml version="1.0"?> <data> <subject> <val1>...</val1> <val2>...</val2> <val3>...</val3> </subject> <subject> <val1>...</val1> <val2>...</val2> <val3>...</val3> </subject> ... </data> The xml will have an arbitra...

Modifying the DOM based on an AJAX result with jQuery

I'm unsure of the best practice for modifying the DOM based on an ajax response. I'll try to let the code do the talking because it's hard to explain. // page has multiple checkboxes $("input[type='checkbox']").live('click', function { var cb = $(this); // for the sake of discussion i need this variable to be in scope $("form").ajax...

Access array returned from a function - javascript/jquery noob moment

When the form is submitted, I'm calling a function getPosts and passing through a variable str. What I'd like to do is get the data returned from that function. // when the form is submitted $('form#getSome').submit(function(){ var str = $("form#getSome").serialize(); var something = getPosts(str); * This is where I'd like to g...

Reset Radio button after warning message

I have two radio buttons, one and two, if i click the radio button two, the warning message should appear and the button should be reset to one can you suggest some code for this ...

Is a variable in javascript available after loading an iframe and then going back to the page?

I am using a jquery plugin called colorbox, this might be irrelevent though as my colorbox just opens an iframe on screen. So more basic I guess is, I have 3 variables on my parent window that are returned from an AJAX call with jquery: data.response data.comment data.userid After these are set lower down in my script I call my ...

What does bind and unbind mean in jquery?

What does bind and unbind mean in jquery in idiot slow learner terms? ...

jQuery AJAX Responses in ASP.NET MVC

Not even sure if this is the right way to title the question. I know I'm making my AJAX calls all wrong... here's what I'm doing right now (I'm using ASP.NET MVC backend by the way): I use jQuery.ajax to post some data to an action, which will load a view that I capture in the response. It's basically providing some data to an action, a...

jQuery Tools - Scrollable PlugIn Questions

Hi, I am using this plugin with one pane been shown at a time and I have those little circles on top to navigate through each pane. If I have three panes within my carousel, so therefore against each of these little circle buttons, it assigns 0, 1 and 2 as href values, how can I get access to these href index values when I click on eac...

jquery resizable

Hi all, The function given below is working fine but over i want to amke every elemnt that i drop a s resizable but as soon as i double click that element it's resizable property is lost. How can i resolve it? function dropTag(tag){ var box = ""; var hashtag = "#"+tag; $(hashtag).draggable({ helper:'clone' }); ...

Using jQuery.not() chained with jQuery.html()

Is it possible to use jQuery.not() chained with jQuery.html()? winner.not('a').html() Where winner is a jQuery object/wrapped set, I am trying to return HTML with anchors removed. ...

Can you make an AJAX call inside of another AJAX call in jquery?

Below is a jquery script I am working on, I have stripped down all the non-relevant parts of it. You can see there is an ajax call, from the results there is an if statement, the other items our stripped out but anyways the captcha one is picked from the result of the first ajax call. I then need to make a second ajax call, this is w...

Problem while i am trying to display the events in the calendar ?

Hell all, I am creating a event module. In that as usual after creating the event we need to display the event title in the popup when clicking the date in the calendar. its working. but if i have multiple events in the same day its just showing the first event. Template Engine i used here is SMARTY. And i used {literal} to differentia...

Using jQuery to add list titles

I have an unordered list like this: <div class="blueBoxMid"> <ul> <li>First item <em>This is the hover text</em></li> <li>Second item <em>This is the hover text</em></li> </ul> </div> I want to use jQuery to generate this: <div class="blueBoxMid"> <ul> <li title="This is the hover text">First item</li> <li title...

Jquery prepend click handler

Hi, If you know a better way to do this then please let me know. Right I have a page which will contain lots of buttons, charts and tables. I have read about stopping event propogation and that's what I'll be using. I want to enable help on cerain elements. I have a checkbox which changes the cursor on help enabled divs. What I want t...

JQuery Image Flip - Why does html image map with highlighting break it?

Hi there, Im using this jquery plug in: http://webmuch.com/image-flip-using-jquery/ to flip an html image map. This works fine when I use an image map with no effects. However, I am using this plug in: http://davidlynch.org/js/maphilight/docs/ to highlight parts of my image map (really nice plug in I might add). Why do the 2 seem to...

jQuery - how to undo prepend

I am using the prepend() function to diplay an image when a div is hoevered over. How do I remove the image - i.e. what is the opposite of prepend() Here is the code: $("#hover-div").hover( function() { $("#image-div").prepend("<img src='images/arrow_redo.png' width='16' height='16' />"); }, function() { $("#image-div")...

Question about Javascript (Jquery) and GET

After getting a new page with $.get none of the javascript will run on the new page. Is there a way to make javascript use the new page too? Many thanks Dorjan Edit: Example: $(function() { $('.viewPage').click(function() { $('#mainarticle').fadeOut('slow') $.get($(this).attr('href'), { js: "1" }, function(data) { ...