jquery

jquery - How to make an element follow the page to a point ?

Hi there, I need to make it so that an element which would normally (depending on resolution) be off the bottom of the viewable area of a page, be floated at the bottom of the page and follow tha page down when scrolled (in a similar way to the effect of position:fixed in css). However I need that element to then stop and stay where it...

How to do something with jquery after the DOM is ready but before the UI is rendered?

I have a jQuery script that changes the src attribute of an <img> and a few other page elements. My script is hooked to the document-ready callback using $(). When I refresh the page I see the original content for half a second. I want to avoid that. Is there a way for my script to execute after the DOM is ready but before it is rende...

Making jQuery statements shorter

I have the following jQuery statement which works fine but I was wondering if it could be shortened and if making it more concise would speed up performance or not? The reason for the strange starting tag is that it is for a wordpress theme. Cheers in advance! jQuery(document).ready(function($) { $(".sidebar ol#navigation li.work a")...

jQuery / Ajax - $.ajax() Passing Parameters to Callback - Good Pattern to Use?

JavaScript code I'm starting with: function doSomething(url) { $.ajax({ type: "GET", url: url, dataType: "xml", success: rssToTarget }); } Pattern I would like to use: //where elem is the target that should receive new items via DOM (appendChild) function doSomething(url, elem) { ...

Why does this div that I toggle with slideToggle("slow") start out open?

I found this sliding panel script I like at http://www.webdesignerwall.com/demo/jquery/, (#1 Sample Slide Panel) and played with it in my sandbox. The page loads both in the example, and my sandbox, closed. So, I change it a bit to fit my needs, and got it working just the way I wanted, and was feeling pretty proud of myself, and then ...

How do I grab variables from a url with jQuery?

hi there, basically I have a link like so: <a href="file.php?value=this&something=so&please=help">special link</a> And when I click it, I want to be able to easily refer to the variables. So for example something like $(document).ready(function){ $('a').click(function(){ var myvalue = $(this).attr('href........ ...

JQuery -- Expected identifier for pseudo-class or pseudo-element but found '.'

Hi all, How do I go about tracking this warning? I know about where to look, but what exactly am I looking for ... does this mean "classname" instead of ".classname" for some selector? Thanks, Michael ...

JQuery Appending a Comma to my TextArea

Hi all, I can't seem to figure out this situation. <textarea id="addinfo" name="addinfo"></textarea> alert(f.addinfo); If my input into the textarea is "hello", the alert says "hello,". If there is no input, the alert says ",". What's going on? Thanks, Michael ...

Call jQuery script located at server (and referanced by client) works on IE not FF and not Chrome

Hi, I have the following situation, i have a service project (ASMX) and a web project (ASPX) which i run localy on ASP.NET Development Server. I have a jQuery script that contain a handfull of functions which is calling the local asmx service (hence, the jQuery script is on the service project /Scripts - doing some database insertion a...

jQuery val() Method on a Custom Object

I have an object called ValueBox that I created like this: function ValueBox(params) { ... $.extend(true, this, $('/* some HTML elements */')); ... var $inputBox = $('input[type=text]', this); ... this.val = function(newValue) { if(typeof newValue == "number") { $inputBox.val(newValue); $inputBo...

Jquery or Basic XmlHttpRequest for MVC AJAX

Hi Getting JSON at client side via AJAX is something i am looking for in my ASP.NET MVC app. I found Jquery and basic XmlHttpRequest script for the purpose.I know the easiness with dom manipulation is one aspect for Jquery.But concerned with the file size of Jquery. But still cannot find Why i need to chose and study Jquery over the l...

CSS - IE7 & 8 Issues

UPDATE i noticed this occurs only when i use slideUp/Down. if i use show/hide everythings ok END UPDATE in my site i am developing/designing, i have 2 issues in IE7, the sliding menu seems to not show, until i move the mouse abit. in IE8, after a menu slides up, the margin seems to be removed the JS (if required) $(function(...

jQuery replaceWith on Flash object parameters?

Given a <div id="dialog" style="display:none; width:100%; vertical-align:middle;"> <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="628" height="400"> <param name="movie" value="../../help/videos/videoplayer.swf" /> <param name="allowfullscreen" value="true" /> <param name...

Edit Data in a Jquery Dialog

I have a page that lists records from a database call. I want to have an 'edit' link on each row that will popup a Jquery dialog so that the row can be edited. My question is how do I pass the data from the selected row to the jquery dialog box so that it can be edited? ...

advanced jquery selection... first per attribute value

Okay, I'm not sure how to describe what i want to do concisely. So, take the following pseudo-html: <input type=checkbox id=chk1 myatr=1 /> <input type=checkbox id=chk2 myatr=1 /> <input type=checkbox id=chk3 myatr=2 /> <input type=checkbox id=chk4 myatr=1 /> <input type=checkbox id=chk5 myatr=2 /> <input type=checkbox id=chk6 myatr=3 ...

Zend_Progressbar + JQuery + uploading a video

I would like to show a dynamic progressbar in my applciation while uploading a video (*.flv format). I searched on the Web for more than 2 hours but I can't find any tutorial to guide me through this process. What I have so far: script that uploads a video jQuery library included in the section But what to do next? Here is the cont...

Is asp:WizardStep a way to create long forms? (questionnaires)

I'm using mostly jQuery (with asp.net), however I need to create a questionnaire. The user will have to answer (and type in) a lot of questions regarding the service that I'm going to provide for them. The answers will need to be validated (i.e. correct numbers, possible answers with ajax, check boxes, etc.) Therefore I chose to start ...

jquery hide element not working

I searched SO for a fix for this, found it, but my implementation seems flawed. Any clues? $(document).ready(function(){ $('#updt').ajaxForm(function(data) { if (data==1){ $('#success').fadeIn("slow"); $('#updt').resetForm(); setTimeout(function() { $("#success").hide('blind', {}, 500) }, 5000); } ...

prettypopin Modal with ASP.NET buttons

I'm using prettypopin Modal(Stéphane Caron) to Edit my FormView. Looks like it's only working with regular submit button. <input type="submit" value="Submit" id="buttSubmit" /> But it's not working with any .net buttons(asp:button, asp:LinkButton). Does anyone has any suggestions? Or can you recomend any other jQuery Modals, for edit...

Using jqueries validation plugin, how to send an error from the server side to the client side?

I have a custom validation check that I perform on the server sidie (.net mvc). If it fails, I want to notify the user with a message next to the input box (just how jqueries validation plugin works out of box). Is there a built in function (in the validation plugin) I can call to do this? Update The solution would ideally be using th...