jquery

problem with forms in loading ascx in a webservice with jquery

I used this example and created a form within the ascx control. http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/ the problem is, whenever i place a asp.net button or an update panel, the ascx doesn't load. what could be the problem? ...

Replace the entire HTML node using jQuery

I have a string which looks like: <html><head><title>example</title></head><body>some example text</body></html> I get this string returned as a result to an AJAX request. I would like the browser to render and display that string. The idea would be to do something like: $('html').parent().html(myString); Well, that doesn't work...

cakephp, jquery, .ajax(), dataType: json

is it possible to be able to do without a view for a cakephp controller function? i am trying to have my server return a datatype that is not a string - but an array my controller function : function test() { $this->layout = 'plain'; $task['Numbers']['uno'] = 'mooo'; $task['Numbers']['dos'] = 'says the cow'; ...

How do I attach the "select" event to every text node on the page? Is there a better way?

NOTE: Solved my own problem, it seems. See the edits. I am trying to write a greasemonkey script that will highlight all the matching texts on the page when the user selects a text, and then remove the highlighting when the selection is canceled. I am looking for a jQuery way to do this. It seems like there is a select event in the jQue...

Click event doesn't fire for disabled text field?

I have a disabled text field that I want to become enabled when I click it. Unfortunately, it seems that the text field's click() event doesn't fire while it's disabled. Is there a way around this? ...

Appending to the dom inside each iteration or create an array and output?

I posted a question yesterday dealing with parsing json data. In one of the follow up answers someone said I was taking a performance hit by using the jQuery append() function within each iteration, while using each(). I was doing: $.getJSON("http://myurl.com/json?callback=?", function(data) { // loop through each post ...

How to show all rows in the jqGrid?

jqGrid exposes a property rowNum where you can set the number of rows to display for each page. How do you set the grid to just display ALL rows? Right now I'm just setting the rowNum to something really high like <%= int.MaxValue %> but I'm wondering if there is a better way. ...

a glitch in dragging sortable by handle in jquery ui

Hi all, the problem i have is that whenever i try to drag and drop with a handle, in the process of drag and drop, the body text will not stay aligned with the text, which is illustrated in the code attached at the end. The reason why I prefer not to put the handle in the <p> tags, as some of the examples on the web shows, is that i wo...

Jquery Listbox Change event does not fire on Keyboard scrolling

I've got a simple Listbox on a HTML form and this very basic jQuery code //Toggle visibility of selected item $("#selCategory").change(function() { $(".prashQs").addClass("hide"); var cat = $("#selCategory :selected").attr("id"); cat = cat.substr(1); $("#d" + cat).removeClass("hide"); }); Th...

JQuery: Why is hoverIntent not a function here?

I'm modifying some code from a question asked a few months ago, and I keep getting stymied. The bottom line is, I hover over Anchors, which is meant to fade in corresponding divs and also apply a "highlight" class to the Anchor. I can use base JQuery and get "OK" results, but mouse events are making the user experience less than smooth. ...

jQuery loaded data not firing modal like it should

Okay, I have a map of the country, the user clicks on their state, and a bunch of suppliers is loaded through jQuery via a page like this: $('#sa').click(function () { $('#mapimg').hide(); $('<div id="info">&nbsp;</div>').load('dealers.php?state=sa', function () { $(this).hide() .appendTo('#dealers') .slideDo...

Executing Events Sequentially in jQuery

I have a small piece of jquery, where I am hiding then showing a div. After both events are completed, I execute a few lines of code which is like so: $(".subFields").hide("slide", { direction: "up" }, 250, function() { $(".subFields").show("slide", { direction: "up" }, 250, function() { ...

[jQuery] Load website into DIV

Hi, how do i actually retrieve data from a website when i write the URL in a textbox and then hit the submit button. I want the data to be put in an div that i have. Is this possible? I have tried with this, but it doesn't work! <script type="text/javascript"> function contentDisp() { var url = $("#text").val(); $("#contentArea").load...

News Bar with jQuery

Hi, I need to make a horizontal "breaking-news" style bar with jQuery. I pick new from the server (the easy part) and I need some way to make them continually scroll from left to right. Any jQuery plugin to help me? thanks ...

how to disable submit button with jquery

Hi, I have a simple form to check the value of post code entered by the user against a variable, I'm trying to disable the submit button and do the check and give alert message, I can't figure out what I'm doing wrong, any help would be appreciated. <form id="post_code"> <input name="textfield" type="text" id="postcode" siz...

jquery get all values from table column

I'm looking for a way to populate a select box with unique values from a table column using jQuery. So far my attempts have been futile but I am relatively new to front end development so I'm hoping someone can show me the light. Cheers. ...

Where to place jQuery code in ASP.NET MVC view page?

I have just started to learn jQuery + ASP.NET MVC. Whatever tutorials I have read about jQuery, they suggest that all jQuery code should be in head element. Now in the ASP.NET MVC project, I have one master page which is responsible for head element. In other view pages, I get content place holder which draws in body element. I am conf...

How to Write JQuery in Helper on Rails

Please Help how to write JQuery coding in Helper function on Rails. ...

jQuery validation plugin: apply one rule on all required fields.

I am using jquery validation plugin for validation. I am using one javascript function for many forms so it is difficult to define rules for all fields for many forms. What is the code if I want to apply a rule "required=true" for all textfields those have a class "required". I am trying this but it is applying this rule only on first ...

how to register user clicked on link ads

I want to register user clicked on ads and save users info to database without change ads operation. <div> <a>ads link</a> // without modify ads <a>ads link</a> <a>ads link</a> <a>ads link</a> </div> how to update user info to database before load link ads. Please help. ...