jquery

Is there a work around for this jQuery bug?

$('> img[src="folderopen.gif"]',$scope) The above will fail,seems a bug of jQuery,is there a work around? This issue is found here: http://stackoverflow.com/questions/2062381/how-to-judge-whether-there-is-a-specific-child-haschildtestatttest-wi/2062390#2062390 EDiT I've just verified this will also fail: $scope.children( 'img[src=...

how to store value permanently in javascript variable

I want to make the application like below. First there is a page with four radio buttons. The user clicks on any of the radio buttons but doesn't save and he goes to another page. Then if he comes back to same page with the radio buttons it shows the selected radio button before he goes to another page. How can I do it by using jQuery,...

Problem with loading inline javascript in a PartialView

This question relates to my previous question which asks about loading a page into a DIV asynchronously using jquery/ajax. It has been resolved and it works like charm :). Now the problem is in the View that is asynchronously loaded to the DIV , I'm having a partial view. The partial view intern contains some javascript. When I load the ...

jQuery event on select change except one select

I have a page with several select buttons. I would like for a function to be called in jQuery any select function except for say one with id="Select1" is changed. I know that I can link the function to each select that I want liked to the event, but it would be much more convenient to specify those that should be excluded than list all...

jQuery + parseDouble problem

I have an AJAX-request that returns a json object containing a few values with two decimals each, but since it's json these values are strings when returned. What I need to do is to perform addition on these values. Just a simple a+b = c, but they concatenate instead becoming ab. I was hoping I could use parseDouble in jQuery just like...

jquery/ajax doesnot work

Hello, For some reason this does not work. I have copy/paste the code, but it goes to the html-echo.php rather than displaying the result in the htmlExampleTarget What am I doing wrong here. Thanks Dave edit: sorry guys - here is the url - http://jquery.malsup.com/form/#html <script src="js/jquery-1.3.2.js" type="text/javascri...

How to post a array with $.post ?

Here is my array: arr[0]='A'; arr[1]='B'; .... I tried to post it this way: $.post('data.php',arr,function() { }); But fails to work as expected. ...

what javascript object am I looking for? click a button-it stays bold till the next one is clicked?

A very basic thing, I know. I have a collapsing div help box thing that is triggered when clicking links. Click the link, the help topic opens in the div. I want the text in the link to stay bold until I click another link. What function am i looking for? I'm using jquery. Thanks! ...

how to send an object from one js file to another js file ?

Suppose, a webpage have only a hyperlink. I am not using any form. If user click on that link. the page will be redirected to an another page with an JSON object. I have to get that object from js script file. How can I send an object from one js to another js file ? I can't use any session, cookies, jsp file. I can use query string, aj...

jQuery: How can I show an image popup onclick of the thumbnail?

In my aspx page I have a thumbnail image <img>. When the user clicks on that image I would like a popup to show that blocks out the rest of the UI with the larger (full) version of the image. Are there any plugins that can do this? ...

call a jquery method on page submit with multiple iframes

I have multiple iframes in a page .The inner most one has a jquery attached to it.I need to call a function from the inner most iframe when the page submits.The script i am using now is not intiating the call. $(iframe).parents('form').submit(function() { disableDesignMode(iframe, true); }); Any help is very much appreciated. ...

Using checkboxes with Jquery AJAX

Hi all I am using JQuery for some AJAX functionality. But when is pass the value of a checkbox, the value is show regardless of whether the checkbox is ticked or not. Here is my code: $(document).ready(function(){ $('#submitform').click(function(){ $.ajax({ type: "POST", url: "abs_newabs_check.asp", data: { allday: $("#all...

jQuery fadeTo effect is having problem in IE

I am trying to make the opacity of body to 0 for some time and then make it to 1. But the problem is in IE after getting the opacity to 1, page is looking some how different. ...

setting value for a textbox - jquer

Hello, I want to set the value of a textbox to null via jquery. I tried onclick="$('#c_album').val('TEST VALUE');" at the submit button $('input#c_album').val('hello'); - in the script section Appreciate assitance Thanks Dave [edit]-- this is the code i am using $('#submit').bind('click',(function(){ $('#src_box').val('...

Select everything APART from a certain element of ID in Jquery

Hello, I am trying to highlight a certain set of elements on a page by dimming everything else on the page. The below Div and all its child elements I would like to keep full opacity and the rest, I would like to dim to about 50%. This Div just sits in the main body of the page. <div id="basket"> <div id="basket-contents"> ...

jQTouch Spinning Wheel (Cubiq) Implementation Won't Work

I am trying to get a nice Spinning Wheel working within my webapp; http://bit.ly/89oWud However, I keep receiving an error within Mobile Safari that the variable 'blabla' cannot be found. I have implemented both of these suggested solutions: 1# Change SpinningWheelCSS 2# Change JQTouch CSS, JS files, and add JQTouch wrapper to body...

Change select's class based on selected option's class

I have a page that contains numerous <select> elements. What I'm trying to achieve is to ensure that if a <select>'s selected <option> has a class called italic, then the <select> then has the italic class added (i.e. jQuery.addClass('italic')). If it doesn't, then the italic class is removed from the <select> to ensure other <option> e...

How do I manipulate first table cell in table row based on values in second and third table cell

Hi I would like to manipulate first table cell in a table row based on values in second and third table cell. This has to be done for each table row. Is this possible with jQuery? ...

How to apply jquery UI effect to #name element from URL

Hello, I'd like to apply a query UI effect to an element depending on the # from the URL. i.e.: When loading www.mysite.com/page.html#name, effect() is applied to the element with the #name id while loading www.mysite.com/page.html#othername would have effect() apllied to the element with the #othername id and www.mysite.com/page03.htm...

My Ajax/jquery code not working with codeigniter

The following codes works without jquery. I insert data but it does not update with ajax. I have to refresh to show the update. Could anyone have a look at it and point out what I am doing wrong please? Thanks in advance. Jquery is this one. $(document).ready(function(){ //global vars var inputUser = $("#nick"); var inputMessage = ...