jquery

thickbox and jquery ui datepicker

hi, i am using thickbox with jquery ui datepicker in one of my asp.net page, the datepicker is not visible , i changed the z index of the datepicker also but nothing is coming out, what should i do ...

jQuery UI Datepicker and Timezones

I use the datepicker to gererate a requested delivery date on my site. Same day delivery is available until 3pm GMT, so I run a script to move the calendars current selection on by 1 day at that time. The 3pm is generated on the server and not the client machine to ensure the correct time. I would like to overcome this problem: Australi...

global variable in javascript?

i have this code: $(".link").each(function() { group += 1; text += 1; var links = []; links[group] = []; links[group][text] = $(this).val(); } }); var jsonLinks = $.toJSON(links); after it has looped every .link it will exit the each loop and encode the ...

Can someone explain the effects visible in Google Image Swirl?

How are the expanding and shrinking effects done? http://image-swirl.googlelabs.com/html?q=volcano#388 Is it possible with jQuery UI animate stuff? ...

Dynamically changing DOM-elements as they get's scrolled into view (performance)

I'm trying to find an efficient algorithm for dynamically loading background-images for a bunch of <li>'s, and are having some efficiency problems. My current code looks like this: function elementInView($elem, vps, vpe) { var elempos = $elem.position(); var pagestart = elempos.top + vps; var pageend = elempos.top + vps + $...

Pass formcollection to action without form submission

I have a link (well a few different links actually) that target FileContentPath actions that return pdf/excel files etc that are generated in the controller. problem is that I want these actions to receive the formcollection as well that may be changing all the time depending on the users interaction with the page. Is there a workaround ...

jquery image slideshow with links per image

i'm in search of a simple jquery image flipper/fader, that will cycle through a bunch of images, each of them with it's own link. the flipper will be used like so: my client wants to display logos of his own clients in succession where each logo will link to the respective website. i know this can be implemented in flash, but i (and my...

jQuery update a a number within a div

Hi there, i have the following code: function tryToDownload(url) { oIFrm = document.getElementById('download'); oIFrm.src = url; //alert(url); } function downloadIt(file) { var text = $("#downloaded").text(); setTimeout(function(){ $("#downloadBar").slideDown("fast") }, 700); setTimeout('tryToDownload("index.php...

Calling symfony helper from a php script needed for Ajax?

N00b question: I'm using Symfony with Doctrine. I have a form where I've added a little Jquery & Ajax check of whether a username that has been inputted into the form already exists. The jQuery calls a short PHP script on my web root that does the MySQL database check and returns true/false, which is then used to determine what error me...

send array to php from javascript?

i want to send a javascript array to php using jquery ajax. $.post("controllers/ajaxcalls/users.php", { links: links }); where the second 'links' is a javascript array. when i've got this array: '1' ... '1' => "comment1" '2' => "link1" '3' => "link2" '4' => "link3" '2' ... '1' => "comment2" '2' => "link4"...

jquery datepicker problem in ie

Hi, I am using jQuery Date Picker plug-in(flat mode http://www.eyecon.ro/datepicker/), i want to upgrade to jquery v1.3.2. But it's not working in IE, it gives "unknown run time error in line: 12, char: 10947". I appreciate your feedback. ...

How to close a jquery modal dialog and refresh parent page

Hi, i'm not able to close a jquery dialog. Below are my code. I have a parent page called academic.asp which will open a modal dialog by jquery plug in. function openPopupDialog(location, windowTitle, heightValue, widthValue) { var $dialog = $('#dialogWin').load('submission.asp') .dialog({ autoOpen: false, ...

JQGrid tree - passing additional parameters when tree is expanded

I have a JQGRid tree. It loads data click by click, not all at once. Typically, JQGRid passes 4 standard tree parameters with each call - row (level, parent, is leaf, is expanded). How can I pass more parameters that I will take from the row being expanded? E.g. data from Name column should be passed in AJAX call too. There doesn't seem...

What is the best way to make jump menu (HTML select dropdown)?

Every <option> in an HTML <select> will have external URL and should open in new a window. If it's possible to make in CSS and HTML only then good, if not possible without JavaScript then it should be unobtrusive. ...

how to judge with firebug whether a appendTo call was successfull / adding a tooltip to a flot graph

I'm trying to follow this example to add a tooltip to a flot graph. But the tooltip does not show up. $(document).ready(function(){ $("#plotarea").bind("plothover", function (event, pos, item) { $("#x").text(pos.x.toFixed(2)); $("#y").text(pos.y.toFixed(2)); if (item) { $("#charttooltip").remove();...

Encrypt jQuery javascript file

Hello, I have a whole range of jQuery code, how do I stop users from seeing the actual code, or how can I encrypt the .js file. Please suggest opensource Thanks Jean [edit] I don't want users to know how I have coded or copy my code [edit] Once I use the base62 encode, can it be reverse engineered? ...

Rowspan when <a> element is clicked with Jquery?

Hi all, I was trying to get this with divs and css, but I was advice to do it with JQuery and tables instead. The case is that I am trying to make a two rows table with 5 cells in first row and 4 on second. When you click on one of the inside of the cells on the top, that cell will span the row and change background-image, taking th...

javascript array to php

i want to send a javascript array to php using jquery ajax. $.post("controllers/ajaxcalls/users.php", { links: links }); where the second 'links' is a javascript array. when i've got this array: '1' ... '1' => "comment1" '2' => "link1" '3' => "link2" '4' => "link3" '2' ... '1' => "comment2" '2' => "link4"...

Post serialized form data and extra variables using JQuery

I am trying to use this piece of code to serialize a form AND send an extra variable not found in the form, at the same time. The following line of code is what I expected, but sadly does not work. var thePage = theFilename(); $.post("pagedetail.php", { $("#PageDetailForm").serialize(), thePage: thePage }, function(data) { a...

ReportViewer problem in google chrome

I am using Reportviewer in my asp.net mvc (C#) application. In IE and Firefox, the reportviewer looks fine. But in Chrome, the header and body gets shrinked. I was able to correct the header display problem as suggested in http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx. if ($.br...