jquery

How to pass js var in xslt

Hi All, I have a javascript variable something like: var str = "AA,BB,CC,AA,BB,DD"; var totlength = str.split(",").length; var xx = str.split(","); for (var i = 0; i < totlength; i++) { alert(xx[i]); } and I could print this value using above method.Now the problem is I have to craete on...

select an element which is inside title tag with Jquery

Hi Guys! I have some html code like this. <a href="http://www.google.com.pk" id="goog" title="<table width='20%' border='1'> <tr> <td>ABC</td> <td>DEF</td> </tr></table>"> Go to Google </a> I want to call alert function when user will hover to table td tag which is inside to Table and table is inside of tag. Is it possible with...

No method 'sparkline'

I've got the following code (based on this page): <script language="javascript" type="text/javascript" src="/js/jquery.js"></script> <script language="javascript" type="text/javascript" src="/js/jquery.sparkline.js"></script> <script type="text/javascript"> $(function() { alert($('.test').html()); $('.test').sparkline(); });...

Switch information using jQuery

I am thinking of applying a new page to the admin section on my website and I wanted to make one page with three tabs ( picture should be included ) is this possible using jQuery. Thanks a lot. ...

Redefine/Reset columns in flexigrid?

how to dynamically redefine columns in flexigrid? i have tried the followings: model = [{ .../*some new columns model*/ } ]; target.flexOptions({colModel: model}); target.flexReload(); without any luck :/ ...

jQuery animation for a hover with 'mouse direction'

Hello I'm trying to simulate the effect where I hover on an image an overlayed semi-transparent image will fade in from the direction where your mouse came from. Vice versa when your mouse leaves the image (fadeout + moves away) I've prepared a test page for this. Go ahead and check it out, it will clarify what the desired effect is. ...

How to sort th in a thead row using jQuery UI sortable?

Hello everyone! I'm trying to make a very simple grid plugin myself. My problem starts when I want to allow the user to change the columns order (not sort the table rows, change, e.g. the first column to show at the all right of the table). I'm using jQuery UI sortable but I found out that when the user starts dragging a th, jquery ui a...

Show/Hide Issue with Image Rotator

I am working on a site with an image rotator (using jQuery Roundabout). I have set it up in jQuery that when you click on an image, it displays certain content associated with that image using the following code: $('#brand-cou').click(function() { $('#brand-details .detail-section').fadeOut(0); $('#detail-country-squire').fade...

JQuery Draggable and Resizeable over IFrames (Solution)

Hi Everyone! I recently ran into some troubles using JQuery Draggable and Resizable plugins. Looking for solutions, i found some very fragmented code in many different places and finally filed down to a clean solution which seems to work almost perfectly for me. I thought i'd share my findings for anyone else, should they come accross ...

Javascript Submit on click

I have the next code: document.myForm.mySubmit.click(); Where myForm - form name, mySubmit - submit name. I want to call submit of my form outside me form. My problem - my form doesn't have names(terrible?). How can I do this with help of id or classes? Or may be you know another way? Thank you. ...

How to dim other div on clicking input box using jQuery?

I am having 3 input box, and i would like to dim the complete screen except the particular input box which is being clicked. I tried this: http://jsbin.com/equre3/2 But when i click the textbox everything including the text box get dimmed. On text box click this is what i needed. all div: opacity: .5 contactForm div: opacity .75...

Jquery toggle() is not working for grandchildren

Hi, I am trying to develop a webpart which shows pages in parent-child-grandchild relation. Iam trying expand and collapse the children to show the grand children, but my code is trying to collapse parent when i try to expand child node. Iam posting my jquery and css files please help me if i am doing something wrong. [updated] I hav...

Can't read cookies (Using jQuery and cookies plugin)

I have a DotNetNuke website that by default people use anonymously. When they want to login they click a link which takes them to /DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx and then redirects them back to the front page. On the front page is some jQuery which is designed to change the cookies created durin...

CSS box being cut off ?

hey there. i have put in a css box colored red and for some reason the very bottom left is cut off is there an explanation (picture below) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="C...

Is it possible to show unicode characters in a HTML input type=submit value?

A customer has a designer mockup of a form button that shows a right facing triangle character after the main text, but I can't seem to get this showing. The offending markup is; <input type="submit" value="Add to basket &#9654;" /> This should look like 'Add to basket ▶' (if it renders in your browser). Is this possible or am I doin...

Is there a cross-browser way to use a jQuery selector on an expando property?

I have an ASP.NET page and I am trying to quickly match the validation controls that are tied to a particular textbox (text input) using a jQuery selector. The validation controls render as a span and the "controltovalidate" property renders as an expando property. Here is a test example: <html xmlns="http://www.w3.org/1999/xhtml" > <he...

Reporting child window's events to parent window to reset timer value of user timeout code

I've got a Jquery function that I wrote which blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time. The environment is ASP.NET (VB). We don't technically use master pages, b...

Help with JSON structure

I have the following javascript which I need to make dynamic. data.addRows(2); data.setValue(0, 0, 'name goes here'); data.setValue(0, 1, value 1 goes here); data.setValue(0, 2, value 2 goes here); data.setValue(1, 0, 'name goes here'); data.setValue(1, 1, value 1 goes here); data.setValue(1, 2, value 2 goes here); I guess a loop ...

Write a jQuery Plugin that return values

I'm writing a jQuery plugin that stores some data in some cases. I'd like to write it in a very flexible way, where I'll can change an input parameter to obtain some value that were stored by the plugin. Explanation: When I call $("#any").myPlugin(), my plugin initializes creating a div and some a inside. Clicking on an a will store i...

JSON Object to String

How can I take a JSON object and convert it back into the original string format? Thanks ...