jquery

jQuery Sticky Sidebar failing

Hi folks, First of all I did not write this code. I found it on somebody else's website and I want to learn from it by trying it out myself. However I can't make it work. I've googled for the code in case it's a jQuery plugin that's freely available or anything, but I can't find it anywhere on the web. I have my sidebar (with id #sideb...

capture selected div element with jquery

How to capture div element and upload it automatically to server as a picture with jQuery? ...

determine whether dropdownlist is selected or not

Hi, Trying to send postdata thru ajax The code tried so far, var $inputs = $('#myform :input'); var values = {}; $inputs.each(function(i,field) { if($(this).is(':text')) { //alert("id : " + field.id + " value : "+ field.value); va...

Internet explorer, jQuery: input box jumps/moves when being replaced with the exact same one

What I want: To, on focus, change one input box into another by hide() and show(). What I get: In Internet Explorer (7/8), the input box moves a few pixels to the right when focusing. Works well in other browsers (obviously). Here's a link to where I have re-created the problem: < link removed due to no longer beeing relevant > ...

how can I drag over an image, would like to use jquery

Hello friends, I want to drag over an image, but when i drag over an image ( with out implementing any scripts) a circle is coming over the image. so I am not able to drag over the image. I would like to use a jquery script to make the image draggable, which means whenever I drag over the image the black circle wont show up I am not in...

jquery append before final element

I have html structured like so. <div id='container'> <div class='item'> ... </div> <div class='item'> ... </div> <div class='item'> ... </div> ... <div id='item_final'><input type="button" id='addOne'>...</div> </div> and what I am trying to do it add another item to the container class before the item_final div. The items a...

keep accordion collapsed after droping its header

Hi, I am using jquery accordion ui with sortable facility now that problem i am facing is when i drag the header of accordion and place it to the specified position then if the header is collapsed then it expands and if it is already expanded then it collapsed. so i just want to keep the header closed whenever user drag it and then d...

Close colotbox callback only if a button is clicked inside the colorbox

I use onClosed:function(){ window.location.reload(); } option to reload the page after the colorbox is closed but I don't want to always perform the reload but only when a user clicks one HTML button inside the colorbox. Colorbox is closed if one clicks outside the window somewhere or the close button... I don't want to close colorbo...

jQuery delay: Speeding up queue?

Hello, I have a slideshow which basically changes the src attribute of an image and fading it in and out. function startSlideshow() { if (i >= images.length) { i = 0 } var path = images[i].path; var name = images[i].name; i++; image.attr('src', path) image.animate({opacity:1}, 1000) .delay(5000) ...

Using jQuery to show/hide list items

Hi all, All of this is code is here: http://jsfiddle.net/yrgK8/ I have a "news" section which is composed of the following: <ul id="news"> <li><p>asfdsadfdsafdsafdsafdsafdsafdsafdsa</p></li> <li><p><a href="http://google.com"&gt;google.com link</a</p></li> </ul> ...

Suggest jquery slideshow solution for on line tutorial

I am looking for some design pointers. I am about to provide some walkthrough tutorials on a website that will demonstrate how to use a new web-base application we are rolling out. I plan on having a step-by-step tutorial, with an annotated screen shot and some explanatory text - "Click on the "New User" registration button as shown" t...

JSP table Pagination

Hello All, COuld you please advise on the following issue because I got confused and need help with the easiest way which I can follow. I am retrieving some records from the DB in my jsp <table> <tr> <td>A</td> <td>B</td> <td>C</td> </tr> <% while(resultSet.next()) { %> ...

Onsubmit URL Redirection with jquery

Hello, I am looking for best way to do Onsubmit URL Redirection. Currently I have form like this... <form action="dologin.php?" method="post" id="frmlogin"> <input type="hidden" value="something" /> <input type="submit" value="go" /> Currently this dologin.php is directing me to clientarea.php I cant make any changes in dol...

Google Chart odd rounding for values

So I am using this jquery plugin to create a nice pie chart on my website. The problem is that the plugin is rounding the values very oddly. This is the table I give to it: <table id="pieChart"> <caption>Priebežné výsledky ankety</caption> <thead> <tr> <th></th> ...

jQuery showing other users on my page.

Hey, I have a page where each logged in user is shown as a <div> at a custom position, is it possible to show where the user's <div> is for other people. I was hoping I could do this in (near) real time. Just a nod in the right direction again would be fine. Cheers edit: is there a way to do this without MySQL? ...

jQuery submit a js object via ajax to django view

How do I submit a javascript object via jQuery to django? $.ajax({ type: 'POST', url: '/fetch-items/', data: {'foo': 'bar', 'foobar': {'spam': 'eggs'} }, success: function(){ alert('yey'); } }); django part: def fetch_items(request): if request.is_ajax(): print request.POST #output >>> <QueryDict: {u'foo': [u'b...

struts2 not publishing topics

Hi, I am trying to create a form that lets users add 3 schools. They first select select a state then college list will be populated based on the state. States are loaded in prepare method. I'm using struts 2.1.8 and struts-jquery 2.3.1. <label for="state1">State: </label> <s:select id="state1" ...

read contents from $(this) selector and its children separately?

how to read contents from $(this) selector and its children separately? <div class="para"> <h1 class="hd">heading 1</h1> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt pharetra est, quis facilisis purus elementum ut. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per ...

AJAX Callback not being called

This is my ajax function: function ajax_call(call_method,data_to_send) { logger("function ajax_call. var data_to_send: "); logger(data_to_send); $('.clickable save_button').hide() $.ajax({ type: 'POST', url: call_method, data: data_to_send, success: function(data){ logger("data returne...

Help applying a fade to background-position change with Jquery

Hi, I'm very new to Jquery but have finally worked out how to change the background-image (a sprite) of my #contentContainer when hovering over a separate 'trigger' image. However, for the life of me I cannot work out how to apply a fade effect to the transition. Basically, instead of the current abrupt background image transition I wou...