jquery

Assign Click Events to < li > in JQuery Treeview

Hello - I am using the JQuery Treeview plugin to display some data. Basically, I would like to add a click event to the child < li > elements that copies their innerhtml into another div on the page. I have not been able to assign a click event to these < li > elements however. Hoping someone has tread this ground before and can prov...

how to handle change event in jquery?

What could be wrong with below function? Theres a tag in error and it gets filled when error occurs, the error is thus shown for a sec and then disappers. $('#error').hide(); $('#error').find('p').change(function(){ if($(this).contents().length > 0){ $(this).show(); } }); EDIT: adding the error piece too <div id="error" class="...

Where to place heavy jQuery code in web development MVC pattern?

I'm building a website where many of the pages are very interactive without having any communication with the web server. Basically, a page represents a kind of DHTML interface, where users can click on various divs to move them around and perform other actions. In the end, the user is able to save the "state" of all divs on the screen a...

finding the previous item in a JQuery array

I have the jquery: $(".item") which gives me all elements of class item. I need to select an item from the array I get from this method, and then find the item before this. something like: $(".item").select("#3").prev() - except it should work :) so, assuming I had the list of items: <div id=1 class="item"></div> <div id=2 class="...

jqmodal and nyromodal will not work w/ Jquery 1.3.2 and Firefox toolbar extension

I've been trying to create my own firefox toolbar with commands that will open and close a modal dialog using either jqModal or nyroModal. In both cases the act of opening the dialog causes errors and I can't find anything out there as to why modals would break. Browser: Firefox 3.0.11 JQuery: v1.3.2 jqModal: r14 nyroModal: 1.5.0 Sampl...

object, param, jquery

<object width="438" height="280" id="pano" > <param value="url_flash" name="movie" /> <param value="false" name="menu"/> <param value="high" name="quality"/> <param value="#FFFFFF" name="bgcolor"/> <embed width="438" height="280" pluginpage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-fl...

checking positive or negative number in jquery live validation

how we can check the input number either positive or negative in live validation??? ...

jQuery Ajax - Get Elements Inner Text

I have a PHP file which will return something like <div id="title">Add Us On Myspace!</div><img id="image" src="http://i39.tinypic.com/67jybs.png" alt="Add Us On Myspace!" /> This is called using this... $.ajax({ url: "Tabnews.php", success: function(tab1html){ $("#tabs-1").html(tab1html); } }); I need to de...

select current link

how can i select the current link via jquery if I have a div like this: <div id='navigation'> <a href='users/home'>home</a> | <a href='projects/browse'>home</a> <a href='discussions/browse'>home</a> <a href='search/dosearch'>home</a> </div> Note I've tried: $(document).ready(function(){ $("#navigation a").click( functio...

What would you go for a back-end web application: Flex, GWT, JQuery?

Hi, I should build a web application for back-office purposes and one of the main requisites is a good UI. On server-side I'll use Java very likely Spring framework, depending on what I'll be using client-side. I think to basically have 3 choices for client-side: a "normal" web application, meaning JSP pages, using JQuery framew...

Restructuring HTML using jQuery

I have some HTML that I need to toggle between two structures - one nested, and one un-nested - to make it easier for users to sort page components in a cms. Here's the before html... <p><a href="#" id="restructure">Toggle Structure</a></p> <div id="modules"> <div class="two_column_box"> <div class="column_left"> <p>Some te...

jQuery Image Slideshow: captions not transparent in IE

I have created a slideshow of images using jQuery. The images fade between each other. There are captions for each image, each inside its own div. As the image is faded in the related caption slides up. The caption is meant to be transparent and this works in all browsers (that i have tested it with) except IE. The website can be found ...

ASP.NET user control in jQuery UI dialog on button click

Hi Using ASP.NET 3.5 and jQuery UI. When a user clicks the "Search" button, a User Control, containing a search form, should be displayed in a jQuery UI Dialog (popup). How can this be done? Thanks in advance ...

jquery today's timetable defining start time

I am using today's timetable plugin on my website. Problem is, starting time is the current time. But I want it to define it to a fixed time (i.e. 10:00). How can I do it? plugin url with instructions (very limited): http://www.cod3.net/timetable/ ...

Supply extra parameter to autocomplete according to Zend Framework

I have a form with (at least) the following two fields: country club The club is a field that is generated via the ZendX_JQuery_Form_Element_AutoComplete Element, that also generates the following javascript code: $("#club").autocomplete({"url":"\/mywebsite\/\/mycontroller\/autocomplete"}); I have a database of clubs per country. ...

Jquery select with select?

Hi there, is it possible to select within a select (chaining) with my jquery. I basically have this, once i have cloned it, there are 2 more DIVs inside the new clone which i need to change as well usign jquery, these embedded divs have IDs, i could just put it on a new line and reselect using $ But thought jqery allows chaining, but ...

jQuery plugin feedback

I'm new to building jQuery plugins. I have seen and used a lot of tooltip plugins, and today I've decided to build my own. Can I get some feedback on the code? What work, what doesn't. Optimizations. Caching. What can I do to make it faster and better? This would be really helpful for my learning and hopefully for others too. Heres my...

How Do I call A wcf Web Service from jquery?

How can i call a wcf service from jquery (i am using asp.nt mvc). This is what i used to do with asmx webservices : $.ajax({ type: "POST", url: "Services/MyService.asmx/DoSomething", data: "{}", contentType: "application/json; charset=utf-8", dataType: "j...

jquery slider to change body background

I want to include a mini menu 20px by 20px images of potential backgrounds. When a user clicks on one them the body background image will change and the selection saved as the users choice. I've thought of using a slider but I don't know how I would be able to have the images in a li and be able to change the body css based on the selec...

Make Flash start only when div "appears" with IE / ui-tabs.js

Hi guys, I'm making a website using the jQuery UI Tabs plugin which is great. However, one of my "hidden" tabs contains an .swf. Firefox only plays this .swf when that tab has been "opened" - which again is great. IE however plays this .swf while it is hidden, so when the user clicks on the tab, they see no animation in IE as it has alr...