Pouring over the release notes regarding jQuery 1.4, I came acrosss $.noop() which is:
Description: An empty function. (added in 1.4)
You can use this empty function when you wish to pass around a function that will do nothing.
Perhaps I'm missing something profound here, but what exactly is a practical use of passing around a...
I have a Sharepoint publishing site that is configured to use ajax 1.0 to use some third party controls (RadEditor, Bamboo).
My problem is I have created a custom web service (.asmx) in a visual studio wspbuilder project and deployed it to the ISAPI folder. The project is set up to use .net 3.5 framework. This works fine for our custom ...
Ok, I have this thing working. Rollover the links and it changes the banner/pic. Fantastic. Question is this: How can I change the text from 1,2,3... to whatever I want? In addition, how can I apply background images, hover, and active treatments. In the example at http://malsup.com/jquery/cycle/pager5.html, I am using the #nav a {blah, ...
I am using JQuery for some drop down nav funtionality. Worked great. Now I just added the Cycle JQuery Plugin and I can only get one to work at a time depending on which order I list them in the head. I have read about the jQuery.noConflict(); function but not really sure where to put it. Here is what I got.
HTML
<head>
<title>#</...
I need Clipboard Copy functionality, even i m taking help from http://plugins.jquery.com/project/copy link but it is not working fine.
<li>
<label class="FieldName">
Url:
</label>
<a id="url" href="<%=Model.FinalPacketUrl %>" target="_blank">
<%=Model.FinalUrl %></a> </li>
<li>
<label class="FieldNa...
I see this question asked a lot in the related questions, but my need seems very simple compared to those examples, and sadly I'm just still too new at js to know what to remove...so at the risk of being THAT GUY, I'm going to ask my question...
I'm trying to switch out the div contents in a box depending on the button pushed. Right no...
I am looking to add a custom message before listing my errors for a login page:
"Oops, you forgot to enter the following:" + "Username", "Password" (if both not entered)
or
"Oops, you forgot to enter the following:" + "Username" (if just username not entered)
$(document).ready(function(){
$("#loginForm").validate({
errorL...
hello everyone,
I have a triggered javascript function to hide "dd"s which have the same class name. But the problem is, sometimes, only the dt is left alone. For example, the first dt dd block, when I hidden the all 3 dd's. the dt (today) one is still there. I want to hide the dt too when no dd is associated. How can i do that?
thank...
i have a table like
<table>
<tr>
<td>Sr. No.</td>
<td> Name</td>
<td>$nbsp;</td>
</tr>
<tr>
<td>1</td>
<td>abc</td>
<td>remove button</td>
</tr>
<tr>
<td>2</td>
<td>xyz</td>
<td>remove button</td>
</tr>
<tr>
<td>3</td>
<td>def</td>
<td>remove button</td>
</tr>
onclick of ' remove b...
i wrote this script
$.getJSON('<%=Url.Action("JsonSave","Controler")%>',
{ id: newRow.Id, personId: newRow.PesronId},
function(data) {
$('#grid').trigger('reloadGrid'); //{0}
$('#grid').editRow(rowCount); //{1}
})
what should i do so that {1} would be executed exa...
I have two html here. The first one is dynamically generated by php and second one is just html to test.
I also have the following jquery.
When I click a cross with class delete in the second ones(plain html), it works nicely. However when I click a cross in the first ones, it does not work.
It redirect me to the home page with # at t...
What are the JQuery bad/worst practices you have seen, written or thing should be avoided?
...
So that it can be show or hide this way:
$(selector).pluginName('show')
$(selector).pluginName('hide')
The problem is how do I know which one to show or hide?
I'm now doing it this way:
$.fn.pluginName = function(opts) {
var conf = $.extend({},opts);
return this.each(function() {
if(conf && 'conf' == conf.type)
...
Hi folks, propb. very simple, but not for me.
Looking to pass a variable on a click function to show either div a or div b based on the a link clicked. My code is something like this
$('.view').click(function() {
var id = this.id.replace('view_', "");
if(id=1) { $('#show').show('slow'); }
if(id=2 ) { $('#show2').show('slow'); }
$(...
Because the page I am working on is an intranet page, my AJAX call is very quick along with the response. For usability purposes I'd like a short 1-2 sec pause to display a loading animation. Below is what I have tried but the animation is barely visible.
$(document).ready(function(){
$('#wait').hide();
$('#submitform').click(f...
<script type="text/javascript">
$(function(){
$('<h2>Click</h2>').prependTo($('#container')).live('click',function() {
return false;
});
$('#container').click(function() {
alert(1);
});
});
</script>
<div id="container">
</div>
I don't want the click event to propagate to the #container,and that's why...
A recent new jQuery version has been released, the jQuery v1.4. You can read all about it here. It allows you to do some pretty neat stuff such as:
$("div.test").bind({
click: function(){
$(this).addClass("active");
},
mouseenter: function(){
$(this).addClass("inside");
},
mouseleave: function(){
$(this).removeClas...
I have this div with class whose possible values "class01" to "class10".
I want to cycle through the different classes whenever the div is clicked.
Is there something similar to toggleClass(class) but accepts multiple classes as input?
...
the problem is that if the auth cookie has expired and the user clicks on a link that should open a popup using $.get than i get the login screen in the popup (same masterpage in another masterpage) instead of redirecting the whole page to the login screen
anybody knows how to fix this ?
...
Hello,
Just a quick question to see if anyone knows of any jquery tabs plugins that run based on a similar structure to:
<div class="tabs">
<div>
<h4>Tab one</h4>
<p>Lorem Ipsum</p>
</div>
<div>
<h4>Tab two</h4>
<p>Lorem Ipsum</p>
</div>
</div>
Where the plugin grabs the title of the t...