jquery

Enabling cross domain scripting in the intranet

Hi, I'm having a few problems with an application that integrates sharepoint, SQL reporting services and a bunch of custom forms that are built using ASP.NET MVC. Assuming my servers are as follows; MOSS SSRS Custom forms In MOSS, my portal has need on occassion to popup a custom form to capture user input. I've done this by using ...

how to found link click of multiple links using jquery

hi, i have a dynamic link ids, when ever i click on link i need to display a dynamic text area below the link, please explain how to do this using jquery. ...

Jquery plugins: how to access options?

Currently I'm writing a jQuery plugin with some options. An example simplified piece of code from a web page: <div id="div1"></div> <div id="div2"></div> $(document).ready(function(){ $("#div1").myFunc({width: 100, height: 100}); $("#div2").myFunc({width: 200, height: 200}); }); And here's a (again simplified) plugin code: ...

IE border on opacity change

Hi, when I want to animate a semi transperant image with jquery (e.g. a div with a background who has a shadow) every element who is semi transperant seems to have a black border arround it in IE (6 - 8) an example of the code is: $(".prevPage").animate({ opacity: "1" }, 250); $(".nextPage").animate({ opacit...

jquery pagging problem with IE7

i am using JQUERY plug in for paging http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html my code as as following i have created one .js file called inilization.js and bellow is total code in inilization.js function init(a,b) { $("#pager").pager({ pagenumber: a, pagecount: b, buttonClickCallback: PageClick }); } when i ca...

What is Join() in jQuery?

What is Join() in jquery? for example: var newText = $("p").text().split(" ").join("</span> <span>"); ...

jQuery script doesn't work in safari when button is disabled

I wrote this simple piece of code to prevent a form from being submitted more than once. jQuery.fn.preventDoubleSubmit = function() { this.find(":submit").each(function() { $(this).click(function() { this.originalValue = this.value; this.disabled = true; this.beenClicked = true; }); }); // [...] retu...

jQuery like image swap in YUI

Hi, Im trying to replicate a simple hover effect in YUI just like you would with jQuery however its a little confusing. As in jquery it would go: $('.hoverclass').hover(function() { $(this).addClass('up'); }, function() { $(this).removeClass('up'); }); Any pointers how to do it in YUI? Thanks. ...

how to select all td apart of last child using jQuery

Hi, Im trying to figure out code that will allow me wrap content inside td apart from last child What I have here does not work. $('.ResultsRow2 td:not(last-child)').wrapInner('<div style="padding-top:4px"></div>') Could you please advice me how to select all columns apart of the last one? Thank you in advance! ...

Reset input values from GET url params using jQuery

This may seem like an odd one, but I want to be able to fill in a static web form using values passed in via a GET param list. Say I have a page, 'self.html': <form action="self.html" method="get" accept-charset="utf-8"> <label for = "40">New Question?</label> <input type="radio" name="40" id="40" value="Yes"> Yes &nbsp; <input ...

Nested tooltip (tooltip within tooltip)

I have a page which is having some link and when i click on that link it open a tool tip form that also contains some link and now i want to open another form within already opened tool tip. Is there any possible way? Please help. ...

JQuery synchronous animation

In many cases I wish animation to be executed synchronously. Especially when I wish to make a a series of sequential animations. Is there an easy way to make a jQuery animate function call synchronous? The only way I thought about is to set a flag true when the animation has finished and to wait for this flag. ...

jquery click handler

I create a bunch of tags dynamically, appending them to a I then add a click handler... $(document).ready(function(){ // ... code to append <a> tags to nav div $("#nav a").click(function(event){ alert('Clicked '+event.target.id); return false; }); }); If I have 10 tags as a result of this and clic...

call jquery load on <a > link

i have page in php and all over page i am using < a tag to link for example <?php for($i=1;$i<=5;$++) {?> <a href="abc.php?ref=<?php echo $i ?>"CLick me No. <?php echo $i ?> </a> <?php } ?> what i want to do is once we click on link jquery load function should called, like $('#div1').load('abc.php?ref=1'null, function() { ...

How can I simplify this jquery/javascript

I'm trying to improve my jquery/javascript syntax. Is there a better way to write this? if (ok) var mymsg = '<p id="ok-box">' + "You're good to go" + '</p>'; }else { var mymsg = '<p id="not-ok-box">' + "Error" + '</p>'; } I was thinking if jquery/javascript had a similar syntax to the following PHP syntax, ...

Remove visability on <li> tags except (this) on hover in a menu

Hi all, As topic says, I want to remove the visability while i hover a list on every <li> element except the one I hover. This should be pretty simple i believe but I can't figure it out. Here is my markup: <ul> <li class="item1"><a href="#">ITEM 1</a></li> <li class="item2"><a href="#">ITEM 2</a></li> <li class="item3"><...

jQuery Selected

Hello! Im trying to see if a special option in a select-menu has a value equal to 1, and then hide another object. Ive been trying all day but cant figure it out (probably because im a total beginner at jquery) I have a select-menu that i populated from a db. If the option with the id="1" have "selected=selected" then i want another di...

Result Page not opening in Target Frame whenever clicked on Tabs using Jquery. Opens in the Same Frame

I am Using 2 Horizontle Frames. In Top Frame I used Jquery Tabs. I expect Whenever I click on The tab , the result Page should open in the below Frame. But It Is not working. Can anybody help me plz. Do Jquery Tabs Supports Frames? ...

What is equivalent code for window.location in jQuery?

I am currently using window.location for client-side redirection in jQuery. Is there any equivalent syntax to do client-side redirection? ...

Best way to pick up text in a HTML element that is in the parent node only

I have, for example, markup like this <div id="content"> <p>Here is some wonderful text, and here is a <a href="#">link</a>. All links should have a `href` attribute.</p> </div> Now I want to be able to perform some regex replace on the text inside the p element, but not in any HTML, i.e. be able to match the href within backticks...