jquery

How can I show the data from a XML file follow list format ?

Hello everybody, I have a problem with jQuery and XML. I am using jQuery to load data from a XML file. It works fine but I want to show data follow list format with its title , when I click the title the info of its will show. How can I do it? My code: $(document).ready(function(){ $.ajax({ type: "GET", url: "xml/tuyendung...

Multiple instances of jQuery autocomplete on one page

I'd like to style each instance of jQuery's autocomplete plugin differently on each page. Except I can't figure out how to set the styles to be different for each instance. I can't seem to wrap the ac_* styles inside a div to identify them from the CSS. Every change I make affects both. Any ideas? Thank you. ...

if i'm using jquery library with some plugins should i place all at bottom , just before </body>

if i'm using jquery library with some plugins can i place all at bottom , just before </body> or it depends? are there some situations where library+plugin should place in not at end of not bottom? ...

Zeroclipboard multiple elements

Hi guys, I'm having troubles to create multiple unique code snippets with Zeroclipboard implementation on them, with the option to lunch a popup window after that code is clicked. basicly I have multiple < a class="xxx" href="popup.url.php" ><span >FRSDE3RD</a> tags. When a user clicks on these codes, I want to copy to clipboard the cod...

jqgrid in MVC not working

Hi Am currently learning how to use jqgrid in Zend MVC structure. Below is my js script. $(function() { //tabs $("#tabs").tabs(); //Accordion $("#accordion").accordion({ header: "h3" }); //place jqgrid in accordian. $("#list1").jqGrid({ url:'/../../artist/index', datatype: "json", colNames:['ID','Artist...

DIV inside TD to make it appear correctly

Hi, I have a <table> generated from code-behind and now facing a problem. In one of the TD i need to have a DIV that is setup with JQuery so that when i click a link the DIV slideToggles. Now i need the TD belonging to that TR not to expand the TR. To solve this i have used an old trick that is to place the JQuery DIV inside another su...

Download Image Using Javascript/jQuery

Hi all, We are using asp.net and c#3.5 implementing a website using quite a lot of jQuery. We would like to download an img from the browser window, but (and here's the trick) in a button click (in addition to right click save as)... Before we get into it, I should state that we know that this is an img tag and from the front en...

Retreiving two values for ajaxForm(), using jQuery and PHP

Hello, I want to pass both the values using ajaxForm, displaying both the values separately in test.php -------test.php----------------------------------------- <script language="javascript" type="text/javascript"> $('#test_form').ajaxForm({ target:'#result', success:function() { $('#result').show(); } }); </sc...

What's the best way to keep track of live notifications to send to a user?

I'm using a growl-like plugin for jQuery send live messages to users to share activity on the site. Right now I only update the user with notifications that happened since the user's last access on the site. However, when I have multiple tabs open on the site, only some of the tabs get the notifications due to the long polling requests...

Drop Down List auto-update with jQuery in asp.net mvc

If you have a form and the only parts in this form that you need ajaxified is two connected Drop Down Lists, how would be the best asp.net-mvc-like way to solve this? Once the first DropDownList changes value the other DropDownList should be populated depending on the item selected in the first list. This is a fairly common task I would...

jQuery: load refuses to get dynamic content in IE6

jQuery refuses to load my dynamic content in IE6. All in FireFox & Safari works fine. Only IE6 is being a pain. When I try the a html with <p>Hello World</p> that works. Properly. But when loading a PHP it doesn't work! As you can see it's doing multiple things. <script type="text/javascript"> // When the document is rea...

Growing an Iframe depending on the source inside it (which is another Server)

I use javascript to expand an Iframe to the size of the document it loads to remove any vertical scrollbar, like so: function resizeIframes() { $('iframe').load(function() { this.style.height = (this.contentWindow.document.body.offsetHeight + 40) + 'px'; } ); } Which works well enough for my uses. B...

jquery multiple ajax check for all done? (order not important)

Is there a neat way to make sure a bunch of ajax callbacks have all finished? They don't need to be executed in order, i just need all the data to be there. one idea is to have them all increment a counter on completion and check if counter == countMax, but that seems ugly. Also, are there sync issues? (from simultaneous read/write to t...

How to send a PUT/DELETE request in jQuery?

GET:$.get(..) POST:$.post().. What about PUT/DELETE? ...

jQuery Ajax in asp.net

Hello All, I'm trying to call a static method in c# using jQuery Ajax. I've tried before but now it is not working. I get error status as 200 Ok. Here is my code: $("#btnSample").live("click", function() { $.ajax({ type : "POST" , data : {} , url : "jQueryAjax.aspx/SampleMethod" ...

jQuery: Preloading a set of images, but only if nothing else loads

Hello all Is it possible with jQuery to identify if the browser currently isn't loading anything, and with anything I mean both loading images and .load Ajax calls etc. The thing I would like to achieve is to secretly (hidden) preload a set of images (heavy in weight) in the background, but without distracting the other load processes....

remove/change element style in jquery accordion content

I am using jquery accordion in my application. I am showing some links in accordion content using ul and li. The active accordion content has lot of empty space underneath the links when using ul and li. By looking in Firebug, it shows the below style for each active accordion content. html: <div class="ui-accordion-content ui-help...

jQuery submit, how can I know what submit button was pressed?

I'm using ajaxSubmit plugin to send Ajax forms, but for some reason this plugin doesn't send names/values of input[type=image]'s. So now I 'm catching submit event before ajaxSubmit will handle form and I'm guessing if it possible to find out what button was pressed? ...

Jquery Selector Question..Date Picker

Hi Stackers :) I am trying to select the child input using by using selectors..I do not want to place an id or class onto the actual input element itself. Can somone tell me where i am going wrong? Chris <script type="text/javascript"> $(function() { $(".ICS_MeetingSpaceHomeTableHeaderDateControl").children().datepicker();...

How do I give a scrolling div focus on pageload with JS/jQuery?

See this page: http://ryan.rawswift.com/sandbox/fixed-bottom-bar/ When you load this page, and try hitting space bar, page up/down or use the scroll wheel on your mouse, it doesnt scroll at all. This is because the page is wrapped inside a secondary "viewport" in order to place the facebook bar in the bottom of the page. When you click...