jquery

Parameter from codebehind to jquery [ Master Page]

Hi All, I am creating Menu in the master page using JQuery. i am passing the id of the link to jquery using $.ajax({}); Problem: Getting failed: Showing error message in AjaxFailed(result) function. Code:html[JQuery] $.ajax({ type: "POST", url: "Master.Master.cs/UserStatus", contentType: "appli...

How to send complex objectfrom view to controller using ajax?

In my view i`m having various ul each containing various li and each li contains a textbox, in which the user enters information. <ul id="ul1"><li><input type="text"></li><li><input type="text"></li></ul> <ul id="ul2"><li><input type="text"></li><li><input type="text"></li></ul> I also have a table which has 2 columns and various row...

Uploadify plugin doesn't call Java Servlet

Hello,i just started using Uploadify flash plugin instead of standard HTML UI. And met the next problem: when I click "Upload Files" link,that progress is shown and "completed" status is appeared, but in reality - it didn't happened anything,Java Servlet isn't called from backend. There is upload servlet and uploading performed next way ...

Problem with passing object to server with jQuery.Ajax()

Hi, I am trying to implement the same code that was mentioned in this question Currently I have the following code: var pagePath = window.location.pathname; var paramList = ''; if (paramArray.length > 0) { for (var i = 0; i < paramArray.length; i ++) { if (paramList.length > 0) paramList += ','; paramList += "{'id':'" + paramArr...

Read li values and insert them in an array?

I have a ul with id ul1. In the UL I have 3 li, each containing a textbox. How do I read each and every li of the ul to retrieve the values of the textbox in the li and put them in an array? ...

jQuery mouse wheel horizontally

Hi! Is there any way to detect if the mouse wheel is scrolling sideways in Javascript? I am now using the excellent jquery.mousewheel.3.0.2 plugin, but I couldn't find any relevant parameters on the event. Please help! ...

jQuery animated hover blinking out of control

Hey good people of this forum.. I'm using the following code as a hover-function on thumbnails: $(function (){ $('.button').hover(function(){ if($(this).is(":not(animated)")){$(this).animate({opacity: 0.7}, 'fast');}}, function(){ $(this).animate({opacity: 1}, 'fast' ); }); }); the problem is that when i pass over a thumb t...

send minus from jquery to php page

now i want send the - i mean Minus one to php but when send it its not sending as a word i cant tell you because i dont understand see in php when write "$var" its return $var value but when write '$var' its returm $var how i can make this in jquery var dataString = 'vote=-1'; $.ajax({ type: "POST", data: dataString, ca...

Find out if radio button is checked with JQuery?

Hi Guys, I can set a radio button to checked fine, but what I want to do is setup a sort of 'listener' that activates when a certain radio button is checked. Take, for example the following code: $("#element").click(function() { $('#radio_button').attr("checked", "checked"); }); it adds a checked attribute and all is well, bu...

jQuery parse xml not returning data in ie

I am parsing an xml file after a ajax call to 'get' the xml file. I am trying to return one of the nodes (using the find method). however it will not return the value in ie - fine in firefox. i am doing a alert to test the value and it just comes back blank. Below is the code: function autoFeedGetter () { $('#notifyBox').empty(); $.a...

jquery mega menu help

Hi. I am developing a mega menu for an ecommerce site. The menu works perfectly if JS is turned off and has some subtle fades and a nice hoverIntent delay when JS is turned on. Everything works perfectly except when you visit the site for the first time or when the menu is not cached. What happens then is as you rollover the btns instead...

How to read table values in text?

I am tryig to read from the textboxes in a table. How can I do it? I have the following code, but it`s not working. <table id="dataTable"> <thead> <tr> <th>Name</th> <th>Value</th> </tr> </thead> <tr> <td> <input id="Name" type="text" value = "test1" /> </...

Jquery $.get ... "data" variable not changing in a loop in Internet Explorer

I have this code function check(){ $.get("friend.php", { id: friendid }, function(data){ //Do stuff with 'data' variable }); setTimeout(check,5000); } It checks friend.php every 5 seconds and returns the result to the data variable. What I'm trying to do works just fine in other browsers, but in IE8, after the first time it chec...

Jquery Dialog - div disappears after initialization

JQuery Dialog is giving me lots of pain lately. I have the following div which I want to be popped up. (Ignore that the classes do not show the double quotes in the syntax) TABLE class=widget-title-table border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR> <TD class=widget-title><SPAN class=widget-title>Basic Info</SPAN></TD> <TD ...

execute javascript when a usercontrol become visible

I have a usercontrol wich is visible=false when the page is loaded. Then, it becomes visible=true. I want some javascript to be executed when this usercontrol is set to visible=true in the code-behind. the only solution i found is to use ScriptManager.RegisterStartupScript in the usercontrol's code behind. But i don't like writing my j...

detecting if a file is ready and serving it for download

I have a Spring MVC web application that is generating a report on the server, once the report is generated, I need to enable a button that allows the user to download it. I am not sure how to go about doing this. I figured that I will have to spawn off a thread that will just keep checking for the existence of the file and use javascr...

how to write a jquery event handler for dependent auto - complete fields ?

I have a form with 2 text fields which get populated using auto complete. Now when I enter some value in form 1 (through autocomplete ), I want the second form field to fetch the auto complete values using text entered in field1 as one of the parameters. Lets say , text 1 < contains car brand names which are auto populated > text 2 < ...

Problem in Displaying error message in jquery

Hi Friends! I have a form which have five text boxes. I have applied custom validation using validate.addmethod to 4 textboxes out of above 5 textboxes. The validation is applied to first three text boxes, the fourth textbox dont have any validation, the last text box have the same validation as first three text box. The Validat...

fancybox does works only on last image in chrome and FF

In firefox Fancybox only works on the last image (last image in the source, not the visual webpage). In IE everything works fine. I changed ID into CLASS, but no succes yet. You can find the source here: http://www.luukratief-design.nl/dump/parallax/stack.html please help! Bugging me for hours now. ...

Ul has li with id name which is the max id jquery?

I have ul li with the same idname li id="name1" li id="name2" etc i can add and remove li but the numbering not always good. How could i get the maximum name id? Many thanks ...