jquery

Want to use a jquery pop up, but get the data from server side.

When somebody clicks on my google adwords link like this: http://www.myshoppingsite.com/product/rubberball.aspx?promo=promo123 I want my aspx page to read the "promo" parameter, hit the database to pull back some data, then display to the user a nice jquery type popup window over top of the product page. The user can read all about th...

Replace value with image using Jquery?

Hi guys... again I have a page with lots of comments. The code structure is as follows: + <li id="li-comment-65" class="comment even thread-odd thread-alt depth-1"> <div class="comment-body"> <div id="comment-65"> <div class="comment-author vcard"> <img height="30" width="30" href="" alt="" /> ...

What is val() for in jquery?

I'm trying to learn codeigniter and jquery. There is always a val() that nobody explains. What is it for? ...

What does this snippet of Javascript do?

$.post("", {message: msg}, function() { ...

JQuery Ajax call gives 404 'Resource Not Found' Error but Normal URL Call is Fine

I have a weird problem when using JQuery call in my ASP.NET MVC project. I found that the Ajax call gives 404 ( resource not found error). But when I use the usual URL GET call, I can successfully call the server without any problem. Any idea why this is so? This my ASP.NET MVC code public class ViewRecordController: Controller { pub...

jquery nested each problem

See Edit Below. I am trying to get some jquery to work in a wordpress plugin I am building. (string 'jQuery' is used instead of the '$' idiom when using jquery in wordpress, fyi) sample xml: <person> <Name>Some Name</Name> <location> <locationName>One Address</locationName> </location> <d...

JQuery Ajax call gets resolved to the current Controller Folder, Instead of root Folder

I think I found something very weird in JQuery and ASP.NET MVC. As mentioned in this question, I have the following JQuery code: $(function() { $("#username").click(function() { $.getJSON("ViewRecord/GetSoftwareChoice", {username:'123'}, function(data) { alert(data); }); }); }); ViewRecord is the controlle...

jQuery not register $

Hello, I am using prototype + jquery on a site. Now the prototype plugins use $. I do not want jQuery to use $. How do I make jQuery not register the $. Also, how do I then call jQuery functions. Thank you for your time. ...

How to use jquery for scrolling horizontally

Hello, I am new to use jquery. I need to scroll to the place where the menu indicates as in this site http://www.newworkmag.com/issue1.html. If I am not mistaken then I can use scrollTo. But I could not find how to use this. Hope to get answer. Thank you. ...

Programatically include JQuery in high conflict environment -

I'm writing a snippet of code to be put on any third party website and have NO idea what environment it will be dropped into. My end goal is for the badge to be <script src="http://example.com/js/badge.js"&gt;&lt;/script&gt; I would like to use jQuery in my badge code to make my life easier, but I don't want to require another includ...

Strange jQuery problem

The jQuery below gets a partial view containing a html table of addresses. jqModal is then used to display the addresses, and a mouseover used to highlight an address. This works fine on my local machine. When I try running it from a server (Win 2008, IIS 7), the addresses are shown in jqModal but the higlighting fails to work. Also, thi...

get $.ajax response

function Profiles() { }; Profiles.prototype.test = function() { var opt = { url: __profileurl__+'getall/', type: 'get', dataType:'json', success:function(response){ return response; } }; $.ajax(opt); }; var profile = new Profiles(); var r = profile.test(); // returns undefined... expected outpu...

jQuery : Replacing Fading with Sliding

I have the below script to hide the content of one div and show another $("#"+objCurrentDiv).fadeOut("slow",function(){ $("#"+objNewDiv).fadeIn("slow"); }); This is giving me the fading effect.Now i want to repalce the fade effect with sliding (left to right. I tried the slide in show method, but could not succeed. Can any one help ...

adding label from javascript

hi , i am trying to add a label from javascript but im getting error what i did was: document.getElementById(option).innerHTML="<label onclick='updateInfo('edit','qualification',"+data_id+","+data+")>"+data+"</label>"; what am i doing wrong ? ...

Is there an equivalent of $(document).ready to initialise after re-loading part of a page?

Hi. I have the following pretty standard process: I initialise my page in $(document).ready. This includes binding events to elements in a table. The content of the table is then refreshed dynamically through an ajax call I now need to rebind events to the table content. Is there a standard way of doing this? i.e. is there an equiva...

jQuery call outside namespace

Hello, I have a jquery plugin X and inside the plugin I have a function test(); My problem is how to call the function test in plugin X from my document.. $("#abc").html('<a href="jQuery.X.test()">test</a>'); But it doesn't work. Is there a simple solution? Thank you for your time. ...

Using JQuery lightbox from flash

Hi, I have a flash movie from which I want to open a Jquery lightbox. Is it possible? Thanks ...

Should I use JSON or AJAX for response data?

Why JSON? I have done some tests today, and the request time for both JSON, or a normal AJAX request was the same. In the "normal request" I have returned the complete text+html tags, in the JSON request, logically I returned a "json return type" and I have created the HTML with client-side JavaScript. I don't get it, why are the big si...

Jquery Effect Onunload

I would like to use the jquery slideUp effect when the user navigates away from the page just to make the page look cool as it closes. I assume that I should use the onunload event but how can I delay the page closing long enough for the effect to run to completion. One of the options that came to mind is effectively hijacking the page...

jQuery ThickBox: Multiple titlebars when calling the initialization method

Hi All, I am using jQuery thickBox to make use of the light box effect n my page.Some times i load the content of one of my DIV using jQuery's load method.At that time the thick box didnt worked so I called the initialization function (I put that in another function called PreLoad() and invoiked it )available in thickbox.js before i loa...