jquery

Jquery - infinite loop

Hi, I have a webpage which has a button placed inside a div. What i want to achieve is when users click on the div, it would trigger the button inside clicked. The code is something like: <div id='main'> <input id="button" type="button" onclick="javascript:dosomething();" value="submit" /> </div> <script type="text/javascript"...

Loading jQuery code (along with html) via Ajax or jQuery's post or get methods

Is it possible to load jquery code in addition to html via ajax or jquery's post or get methods? I am trying to build conditional gui element activation (based on user's input). It doesn't make sense to create one file with all jquery code taking all the conditionality into consideration. Instead, my hope is that if jquery via ajax allo...

In jQuery, what does $.fn. mean?

In jQuery, what does $.fn. mean? I looked this up on google but couldn't find any concrete examples. $.fn.something = function{} ...

Jquery DatePicker changing month using dropdown causing window scroll

I can only see my datepicker when i scroll the page.After scrolling if i click on datepicker , it opens as expected but after changing month using dropdown, the scroll position of window is moved up little bit causing datepciker hidden. So can't click on it. ...

unable to parse json string using java script eval function

Hi, I am facing issue with the following Json reponse object in the javascript eval function;Getting java script error expected } because of special characters Tamás and Török {[{"userFirstNm":"Naresh","userAsscId":"70336","userLastNm":"Yashwantrao","userLanId":"a70336"},{"userFirstNm":"Tamás","userAsscId":"37732","userLastNm":"Török"...

For the function (function($){})(), I've seen it with the word jQuery in it, why is that?

For the function (function($){})(), I've seen it with the word jQuery in it, why is that? I have read this page http://stackoverflow.com/questions/1925291/javascript-why-does-jquery-do-this-function-and-how-does-it-work but it didnt tell about an example like this: (function($){})(jQuery); What does that jquery in the parenthesis do?...

how to make table with jquery?

hai.all..can you tell me how to make table in jquery? i want using this plugin for showing all data which have been input from database.. i use SELECT * FROM inspection_report for showing data table inside process.php file... how to combine with it?? ...

setting size with css

i have a problem..my tabs name show too big i want it shows as a default... i put this script at <head>.. <style type="text/css"> { font-family: Verdana; font-size:40%; } label { width: 15em; float: left; } label.error {display: none; float: none; color: red; padding-left: .5em; vertical-a...

CSS to particular row in JqGrid

I have a data grid where I am displaying my messages. In that if the messages are unread it should display in different CSS for i.e. the text should be bold. Is there any way to do that in JqGrid. Please help I am new to jqGrid. Thanks in advance ...

JQuery animation to write a text using a pen

hi, I am using JQuery in my application.I want some text to be animated ie.,I want the text to be written(animated) when the page is loaded using an pen/pencil image in Jquery. can anybody help me on this. ...

jquery - hash change event

I am using: $(window).bind( 'hashchange', function(e) { }); to bind a function to the hash change event. This seems to work in IE8,firefox, and chrome but not in safari and I assume not in earlier version of IE. For these browsers, I want to disable my javascript code that uses the hash and hashchange event. Is there a way with jQu...

JQuery empty() vs remove()

What's the difference between empty() and remove()methods in JQuery, and when we call any of these methods, the objects being created will be destroyed and memory released? ...

image rollover effect in jquery?

here my code- $('.smenu li').mouseover( function(){ var src = $(this).find('a').attr('href'); $('.hbg').css('background-image', 'url(' + src + ')'); }); html code- <div class="smenu"> <ul> <li ><a href="images/hosp.jpg"><img src="images/menu_hosp.jpg" border="0"></a></li> ...

jQuery Dialog + Disable

Hi, I have jQuery dialog window, upon some operations I have a blockUI plugin which I load. The problem I'm facing is that I'm still able to perform operations when the ajax operation is performing, even though AJAX image is still showing. The JSP page on the other hand is blocked until the operation is done, how do I block the dialog...

Jquery based File Explorer/Manager

Is there a demo of jQuery based File Explorer or Manager, similar to Windows Explorer? ...

how can i show actual source code in a div

i want to show a part of my source code with color coding in a div for allowing users to get reference of code..now how can i show the actual php jquery or any other language source code with colors in a div. ...

jquery 1.4.2 equivalent for setTimeout and clearTimeout..

Is there any equivalent for setTimeout and clearTimeout functions in jquery 1.4.2.... I found this ex which uses jquery 1.3.2.. var alerttimer = window.setTimeout(function () { $alert.trigger('click'); }, 3000); $alert.animate({height: $alert.css('line-height') || '50px'}, 200) .click(func...

Using oncontextmenu command is there any possibility to identify which menu has been selected on right click?

Hi All, Is there any possibility to identify which menu has been selected on right click in an IE7 using the command oncontextmenu. If yes can you please share the code? ...

twitter like alert jquery in asp.net mvc

I googled for twitter like alert but all the articles were in php... Is there an asp.net mvc one out there? Here is the http://briancray.com/2009/05/06/twitter-style-alert-jquery-cs-php/ sample in php.. ...

jqGrid horizontal scrollbar

Hello. I developed AJAX interface with jQuery and jqGrid. How I can remove horizontal scrollbar from my jqGrid table? http://dskarataev.ru/jqgrid.png If I set autowidth: true, then I get width of table = sum width of columns, but I need width of table = width of parent element with id returned by function getSelectedTabHref() so I m...