jquery

duration and repeat

Hi all, I'm trying to put the logic together for this and it seems like I cant get no where. I have my repeat all set depending on week(s). But what about duration? Let's say someone is schedule for 2 days (duration) for every week (repeat). How would I put this together depending on two given dates? http://jsbin.com/usori3/15/edit ...

jquery active menu

Hello, i have a question, i have a menu and i want to add some jquery so that the active menu tab has a different layout than the rest, here is my code: <div id="menu"> <ul> <li><div id="start"><span>start</span></div></li> <li><div id="menuhome"><a href="index.php?page=home"<span>home</span</a</div</li> <li><div id="menuvoors...

Problem with jQuery Colorbox

Hello, I have a website that uses ajax jquery and colorbox. Inside the div "#content" there are some links to other pages that open fine using colorbox. If I reload the content of that div using ajax jquery , then the links wont popup using colorbox effect anymore. I tried to create a function that I would call whenever I call the fun...

Selectors: Id vs. context

I use jQuery. I have been reading a lot about selector performance and optimizing our AJAX app. I am looking to improve my selector performance. I know all the jquery performance tips. I haven't found an exact answer to a question I have. I am using almost every current jquery performance tip and yet my app still seems to lag quite a bi...

How can I validate a ViewModel in jQuery Dialog?

My AddressEditViewModel has a bunch of attributes marked [Required(ErrorMessage="My Error Message Here")] and/or [DisplayName("etc")]. The DisplayName attributes work: <%: Html.LabelFor(model => model.Field) %> , and I think the Required attributes are working too, but I don't know how to provide feedback on the form (jQuery UI Dialog...

How do I reference a hidden input in a specifc form using jQuery?

Hello, I have a series of forms on a page that all have a recordId value as a hidden input. The form name/id is GPA-Entry-Form-1. I am trying to get the value of the hidden field this way: $('#deleteThisGPAEntry-1').click(function() { var recordId = $('GPA-Entry-Form-1 #recordId').val(); alert('You clicked me. ID: ' + recordId)...

Text Resizing with jQuery?

I found this great solution for on-site text resizing with jQuery: http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing Works like a charm, but their are three things it's missing that I need; A.) A 'return to default' click able option. B.) Limits on resizing (i.e. only allow it to be resized up or down twice C.) Addi...

Getting jQuery tooltip to have a tip start as active when page first loads

Hi - I'm using the jQuery tooltip plug in on an image map. When a part of the image is hovered over, the tip appears. This is activated with the following code: $(function() { $("map > area").tooltip({ positionLeft: true }); }); </script> The html for the image map is set up like this: <map name="Map"> <area shape="rect" coords="...

Inverse of jQuery.extend(true, …)

I'm looking to reduce storage requirements for JSON data by deltifying it against a known set of defaults. Basically, what I want is an inverse for jQuery's .extend() function, such that the following test passes for arbitrary JSON-compatible objects: function test_delta(defaults, delta) { var current = $.extend(true, {}, defaults,...

HTML in title string of fullcalendar jquery plugin

Hello, i think the fullcalendar jquery-plugin is a really great solution. i saw does the string for the title in the fullcalender plugin is escaped (htmlEscape). But i need to format some strings in the title for example bold text or colors, or small images? the solution with another plugin (for example qTip, like in the examples) wi...

jQuery, $(this).parent() and blur()

I cannot get the blur() function in the following to work: $('.newselect').focus(function(){ $(this).parent().append('<div class="select_container"></div>'); }); $('.newselect').blur(function(){ $(this).parent().remove('.select_container'); }); However if I use a universal selector $('*') (as below) it works, why is this and h...

Simple: how can I get this jQuery plugin to work?

I found a plugin that scales and positions an image as background. I'd like to use it but there is no documentation. Here is the plugin: http://wearebuild.com/wp-content/themes/build/js/jquery.bleedImage.js It says: Usage: $('#img').bleedImagebut I don't know what that means. How do I get it to use my image with class "bleedImage"? T...

How to most efficiently load jQuery plugin files?

I am using a number of jQuery plugins. Is it more efficient to reference them separately in the master page, or should I lump the contents of each file into a single jQueryPlugins.js file and reference that? ...

refresh a portion of HTML page with jquery

Is there a way I could refresh or set to default just a portion of HTML (instead of reloading the whole) page with jquery? For example, I want to reset the following select on some click action. Please help. Many thanks in advance. .... <select id="refresh"> <option value="1" selected>1</option> <option value="2">2</option> <o...

jqGrid calling WebService (asmx) using json

I've got a jqGrid setup to post to a URL using the content type of application/json: $("#jqCategoryGrid").jqGrid({ datatype: "json", mtype: 'POST', url: "Webservices/TroubleTicketCategory.asmx/getCategoryData", ajaxGridOptions: { contentType: 'application/json; charset=utf-8' }, // **UPDATE - This is the fix,...

How to read both single object & array of objects in json using javascript/jquery.

Hi, I wrote the json reader to read the data & works fine with the below data. {"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "onclick": "OpenDoc()"}, {"value": "Close", "onclick": "CloseDoc()"} ] } }} but the when j...

JavaScript: Detecting/intercepting insertion of <img> into DOM

We're using a third-party analytics reporting script provided by this analytics company. It adds a 1x1 pixel image into the DOM with reporting data in the URL of the image. Is there any way for me to monitor the DOM and intercept this <img> element and change its "src" attribute before the browser requests the image? Sounds like a real...

javascript/jquery: looking for image-fading script

hi all, i'm looking for a lightweight script (pure javascript preferred) - it should be for smoothly fading a sequence of images into each other (=image-carousel). it should also be possible to run several instances (so it should be a prototype script), like for example: - site banner: fading 3 images after each other - main content: 3...

Problem with IE in customized javascript slideshow (nivo) on rollover

Hello everyone!~ I am using the fabulous Nivo Slideshow (http://nivo.dev7studios.com/) without problems throughout a website I am currently working on. However, for the slideshow on the homepage, I modified it to swap the image on rollover (in this case the swapped image is a black and white version of the same image). On rollover I also...

jQuery/Javascript: get full height of element?

hey guys, my blog has a content div with an id of #content. When i Select it e.g. with Firebug it outlines the full height of the div. With all it's padding & margin at the top and the bottom. jquery height() returns only the inner height of the element it self. how can i query the FULL height of the element. If there are other eleme...