jquery

jQuery to store data for sessions

I am trying to use jQuery AJAX. What my requirement is, i wish to load user names from DB in dataset, convert it to JSON format and store it in memory or using jQuery data for use while a user is browsing my site, i.e for a session. This way I can use autocomplete or my own code to display data to user. Can anyone help me design such a ...

Jquery dialog to open another page

There is a page as transaction.html How to open this page in a popup in another page say show_transactions.html in a jquery dialog $dialog.html() //open transaction.html in this dialog .dialog({ autoOpen: true, position: 'center' , title: 'EDIT', draggable: false, width : 300, ...

How do I handle a JSON request returning a String in JQuery?

Hi all, New to json/jQuery so sorry if this has an obvious answer. I'm doing an ajax request in jQuery that's something like: $.ajax({ url: theURL, dataType: 'jsonp', type: 'get', success: function(data) { alert("it's there"); } }); The request asks whether a given object is in...

jquery popup image

Hello Folks., I am looking for jquery script of popping up an image onmouseover.. i did this using javascript but it is not browser supportive.. so looking for jquery script.. Thanks ...

Jquery fadeout function redraws old image

I am using this function to fadeout the old image on click and then fade in new image $("#left_img img").fadeOut(1000, function() { $(this).attr("src","/image/p2r.gif").fadeIn(500); }); The problem is when first image is faded out then before the new image fades in , the first image loads again for 1 second and then new image f...

Setting a cookie based on the name of the link that is clicked.

TLDR When clicking on a link I want to assign a cookie with a name of instrument and a value of the text on the link clicked. Using Jquery.1.4.2.min.js, Jquery.cookie.1.0.js I am trying to create a cookie when a link is clicked (will always link to "page.html"). name of instrument value of the TEXT So far I am trying to use: <scr...

how to center align a light box and hide a scrollbar.

Hi All, I m web designer and getting problem in adjustment of light box. light box is not center aligned at any resolution. it should be center aligned at any resolution. and i used a black overlay for transparency in background but it shows scrollbars in light box so its not look good .... plz tell how could i center align a lightbox a...

jqGrid formatter and sortable column - doesn't sort

I am using a custom formatter for my jqGrid columnModel and I can't get sorting to work with formatter functions. If I remove formatter column sorts normally. jQuery("#listAgentOptions").jqGrid({ height: 240, datatype: "local", colNames: [' ', 'First Name', 'Last Name', 'Role'], colModel: [ { name: 'status', index: ...

Linking jQuery UI to the ASP.NET MVC 2 project

What I am trying to accomplish is using jQuery UI dialog method from my own JavaScript source code file. I have this kind of links in the Site.Master <script src="/Scripts/jquery-1.4.2.js" type="text/javascript"></script> <script src="/Scripts/jquery.validate.js" type="text/javascript"></script> <script src="/Scripts/jquery-ui.js" type=...

jQuery UI Accordion CSS

I am planning to use the jQuery UI Accordion and also the default theme provided I see that the jQuery UI Accordion uses the following classes from this url link text <div class="ui-accordion ui-widget ui-helper-reset"> <h3 class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-top"> <span class="ui-icon ui-icon-tri...

highlight the text of the DOM range element,

I am able to highlight the text on the HTML page(rendered through gtkmozembed), which is selected, like below. var range, sel; if (window.getSelection) { sel = window.getSelection(); if (sel.getRangeAt) { range = sel.getRangeAt(0); } document.designMode = "on"; if (range) { ...

How can I re-size and re-position a shadowbox/greybox window to display in a certain div element?

Hi guys, I would like to know if it is possible to re-size and re-position a greybox or shadowbox window to display in a certain div element? I am creating a template for a wordpress site, and I am using the default calendar, but when you click on a date inside of the calendar, the default action is to open it up in a new window. Would...

jQuery dynamic CSS loading weird behavior

The app I am working on requires dynamic loading of CSS and JS, right now the solution is as follows: myapp.loadCss = function(css){ $("head").append("<link>"); cssDom = $("head").children(":last"); cssDom.attr({rel: "stylesheet", type: "text/css", href: css }); ...

jQuery Accordion Example needed

Can anyone point me towards a 'ready' jQuery Accordion with CSS that's light and is easy to implement. I do not want to use jQUery UI. ...

ASP.NET MVC Html Helper Extensions and Rendering Their Required "include"s

I have build a custom Html Helper extension as follows: public static string DatePicker(this HtmlHelper helper, string name, string value) { return string.Format(@"<script type='text/javascript'> $(document).ready(function(){{ $('#{0}').datepicker({{ changeMonth: true, changeYear:true, dateFormat: ...

jQuery - Minified gallery, change background-color via CSS?

Hi, I have a site where I randomize the background image using a php rotator script file. But I was thinking, is it possible to create a small preview gallery of each background image and make it so that when the user hovers over an image, the css background image of the site is changed on the fly? And when the user clicks on the image h...

How would I update jQuery to allow mutiple button clicks to dynamically call/update data using ajax?

hey guys, im having some trouble... i'm able to capture the first button on the page, but there are a total of 10 buttons. When I click on any of those 10 buttons, only the first button's value is called and the other ones don't update. is there a way to capture all of the buttons so they each have their own independent value and update ...

JQuery Attribute Manipulation

When I search on the Internet about JQuery and I got the jquery cheat sheet. At there, I am very confused about how to use the following under which condition. Pls help me. [attribute|=val] [attribute*=val] [attribute~=val] [attribute$=val] [attribute=val] [attribute!=val] [attribute^=val] [attribute] [attribute1=val1] [attribute2=val...

Replace click() with document.ready() in jquery....

I downloaded jquery effects example and all effects are appearing only onclick but i want it to be executed on document.ready() and continue... <script type="text/javascript"> var ImgIdx = 2;//To mark which image will be select next function PreloadImg(){ $.ImagePreload("images/im2.jpg"); $.ImagePreload("images/im3.jpg"); $.Ima...

How to get rid of this annoying effect in jquery?

I have developed a site http://www.ssitfriends.com/ and i used jquery fancy transitions.... when i saw my sight in firefox my banner moves to right causing an annoying effect..... How to get rid of this? Edit:On initial page load it doesnt work when i pressed F5 jquery effect is working and it is shaky..... ...