jquery

Call JQuery from C# PageLoad

Is there any way how to call JQuery function from PageLoad C# file? Basically I have some selects, some inputs which are not generated by C# code but are defined in .aspx file manually. When I send form get query to another page I would like to set same variables that are defined in querystring. I know how to do that when I use runat="...

.keypress on a DIV tag ??

Is there a way to get work .keypress on a div element like this?: <html> <body> <script type="text/javascript"> <!-- $('#idtext').keypress(function(event) { var keyCode = event.keyCode; $('#idtext').text(function(i, text) { return text + String.fromCharCode(keyCode); }); }); // --> </script> <div id="idtext"></div> </b...

slider/carousel with auto and continuous scrolling

Hi all, I'm looking for a jquery plugin to slide images horizontally in a way that the scrolling is continuous (copntent is displayed in an infinite loop) and enabled by default (autoscroll). The closest I've found is jcarousel however the "auto" property can only be set to 0 (in which case autoscroll is disabled) or 1+ which represents...

autoselect radio button when checkbox is checked in jquery

Hi All I have a list of 3 radio buttons with the 1st radio that's selected at load time. The 3rd button has a group of checkboxes related to it. When one of the checkboxes is checked the related radio button should be selected automatically. The problem is that this action doesn't work in Chrome of Safari but works fine in FF, Opera and...

Form Titles with javascript

Im using this script for form titles: $(document).ready(function(){ $('.add-news').each( function () { $(this).val($(this).attr('defaultValue')); $(this).css({'color':'#686868' , 'font-size':'11px', 'font-weight':'bold'}); }); $('.add-news').focus(function(){ if ( $(this).val() == $(this).attr('defa...

Custom headers with $.ajax type jsnop or json

I have a problem with sending some custom headers to with a jQuery ajax JSON (or JSONP) request. Code looks like this: $.ajax({ beforeSend: function(xhr) { xhr.setRequestHeader("X-VER", VER); xhr.setRequestHeader("X-TIMESTAMP", now); }, type: 'GET', data: null, url: site_uri, dataTy...

append.html jquery is not working the same as the existing html?

i have a situation where im apending html to load more posts(pagination), and each post has a reply link, the appened html is not functioning properly: the jquery post: $(function() { //More Button $('.more').live("click",function() { var ID = $(this).attr("id"); if(ID) { $("#more"+ID).html('<img src="moreajax.gif" />'); $.ajax({ typ...

How intercept these two key: ":" and "." ?

I need to do something when a user push "." and something else when an user push ":" Is there a way to intercept these 2 key with javascript, jQuery or other ? ...

Getting Duplicate Error Messages with JQuery Validation Plugin

I'm a newbie to JQuery and the Validation plugin. Short Description: I wanted all of my error messages to appear in one div at the top of the form, instead of next to each label. After a little head scratching and net searching, I came up with the following, which works, but the sourceurl: message comes up twice on the validation. I ...

jQuery Gallerrific | Handling a custom parameter for positioning

Hi to all, The brief is the following for all those who know galleriffic: I have a numeric value inside a rel attribute on the list of a tags that point to the images. I have managed to get this number and assocciate it with the imageData object that galleriffic uses to store the image info. What I cannot do is apply this value using .c...

Hide a row in a table and display it again?

I use a foreach loop inside ASP.NET MVC View page. For each element of the collection that foreach operates on I create two rows - one for display, one for edit. I want to hide the edit row and only display it later depending on user action. If I hide the edit rows with display: none, then jQuery's show() method cannot redisplay it agai...

How could I automate this fadeIn to become a slideshow?

Hi, I have the following code that automates a slideshow between the different slides as shown in the picture. This is now producing a fadeIn whenever I click on the numbers shown on the pic, but I'd like to automate the transition betweeh 1 to 5 and when on 5 return to 1 again on a timed maner. The screenshot is: <script type="te...

Where to submit own html, css, javascript tutorials?

I am planing to start writing tutorials on html, css and javascript. This year has been full of extremely interesting experience in this areas, so I wish to start on. Therefore, I wish to know the best places to submit my tutorials before publishing them elsewhere. I found just one very nice place: http://net.tutsplus.com/about/write-a-...

First Word in String with jquery

Hello! I'm trying to figure out function that will help me wrap first word in string into span. But unfortunately no luck. Can anyone help me please? Many Thanks Dom ...

Why have the "jquery." prefix on plugin filenames?

I'm curious as to the reasoning behind the standard procedure of prefixing jQuery plugin filenames with "jquery.". Several tutorials state something like: The use of the "jquery." prefix eliminates any possible name collisions with files intended for use with other libraries. I believe I have even seen a couple of plugins that actu...

Have a problem with my jQuery Tabs

I have a jQuery based tabs which i got from some blog.So now when you click on the Tab,the respective content is loaded. The content in each tab is quite huge and that is why i want to float the tabs on the right side of the screen.So how do i do that. Here is the tabs which I'm talking about. http://www.sohtanaka.com/web-design/simple...

How do I get the text of the active

<div class="tabs"> <ul> <li class="active"><span class="l"></span><a href="#">Standard Class</a><span class="r"> </span></li> <li><span class="l"></span><a href="#">Bussiness Class</a><span class="r"></span></li> <li><span class="l"></span><a href="#">Premium</a><span class="r"></span></li> and how to I take off the class activ...

How To Include CSS and jQuery in my wordpress plugin ?

How To Include CSS and jQuery in my wordpress plugin ? ...

How do I sort multiple draggables into multiple droppables using an accept parameter? JQUERY

Hi, I'd like to sort multiple JQuery draggables into multiple JQuery droppables. e.g I have three items RED, BLUE & GREEN. RED can only be dropped on the RED BOX, GREEN onto the GREEN BOX & BLUE onto the BLUE BOX <div class="draggable RED"> <p>RED ITEM</p> </div> <div class="draggable BLUE"> <p>BLUE ITEM</p> </div> <div class="drag...

jQuery plugin only works on the last apperance of the selector

I'm doing a jquery plugin that moves the background of a div (based on another plugin). I don't understand why if I've only 1 on element using $(".video").moveBackground(); works well. If I've 2 elements or more, only works the last one. The code: http://jsfiddle.net/7PfEN/ . It doesn't works on jsfiddle but works fine (well, only the l...