jquery

(solved) jQuery click and drag/scroll window: jagged movement

Edit: derp, using pageX/Y instead of clientX/Y -- apparently scrollBy expects input with that offset rather than the other. Jaggy movement gone. I am getting jagged movement when doing small scroll increments using the following bindings. Can anyone point me in the right direction for how to smooth this out? FYI, its intermittent. It se...

ajax framework should I go for extjs or raxan?

jquery- Definitely a great choice for DOM manipulation, and have lot of libraries. extjs 3.0- http://www.extjs.com they mentioned many big companies also using it. I seen their interface all great! raxan framework- http://raxanpdi.com Guys, any idea on this? Sounds good too. YUI? I heard that YUI is less troublesome than extjs, more s...

How to add a <tbody> to the beginning of <table> with jQuery?

<table id="tab"> <tbody> ... </tbody> </table> Likve above,there is already <tbody> inside <table>, $.append will make it to the end of <table>,how to make it to the beginning? EDIT I need to add a callback once new added <tbody> is in DOM,how? ...

Intermittent Runtime Error in IE7: Occurred at line 0, Object required? Huh?

A site I am working on displays an intermittent runtime error but only in IE7 and 8. This error will appear almost randomly (like, it may pop up on initial page load one time or it may not pop up until the nth page load). The error says it occurred at line:0 and the error is "Object required". I'm using jQuery throughout the site but di...

JQuery, SVG and Visio metadata

Hi, I'm trying to access some custom data emitted into an SVG document by Visio 2007. I've used jquery.svg.js by Keith Wood. Unfortunately, even with the svgdom extension, I am not able to get to the shape I'm after to animate it. Here's what the SVG looks like: ... <g id="group4-6" transform="translate(30.7955,-30.7955)" v:mID="4" v:...

How can i get default font size in pixels by using JavaScript or JQuery ?

Hi, As you know em is a relative font measurement where one em is equal to the height of the letter "M" in the default font size. An advantage in using it is because you will be able to resize the text. But how can i get default font size of current environment (in pixels) by using JavaScript or JQuery ? regards, ...

Flash application in Jquery and Ajax

hello everyone, my first time posting here. My question is as follow: I need to build a horizontal scroller like the one in Itunes or like the one that the macs uses in the finder window. http://www.flashcomponents.net/upload/samples/4250/index.html?full=true The client, however wants this to be fed from an xml file and to display html...

jquery sortable can not work?

Could anyone can tell me how to add effect to all divs? jQuery: data = $("#sortable_list1").sortable("serialize"); update:function() { $.ajax({ data:serial, url:"list.php", type:"post", success:function(data){ $("#serverResponse").html(data); } }); } Html: I have 2 divs which id is sorta...

How to get the selected option value of a drop down box in PHP code

I have a dropdown box which lists a set of logos,like flower,butterfly etc. <p class="title1">Logo</p> <select name="logoMenu" class="select" size="7"> <?php foreach($logos as $logo):?> <option id="<?php echo $logo['Subproperty']['id'];?>" value="<?php echo $logo['Subproperty']['values'];?>"><?php echo $logo['Subproperty']['values...

how to extract last value in the URL using JQuery

Hi, how to extract the last value that is 1 from the following Url using JQuery... Url : /FormBuilder/index.php/reports/export/1 Thanks in advance.. ...

How to get nth jQuery element

In jQuery, $("...").get(3) returns the 3rd DOM element. What is the function to return the 3rd jQuery element? ...

blockUI works but unBlockUI Isn't

I've implemented block UI as this request can take a little, time when the ajax request starts everything works as expected. But when the ajax request finishes and the msgbox is shown, the UI doesn't unblock! Any ideas? I'm using IE8. $().ajaxStart($.blockUI); $().ajaxStop($.unblockUI); function ChangeCompanyState(companyId, stat...

How to control 2 amounts with one Jquery UI slider

How can I control 2 amounts with 1 slider , Below is the code I have for one slider controlling one amount. $(function() { $("#slider").slider({ value:38.11, min: 38.11, max: 100, step: 1, slide: function(event, ui) { $("#amount").val('$' + ui.value); } }); $("#amount").val('$' + $("#slider").slider("value")); }); ...

Easier way to get a jQuery object from appended element

Is there an easier/quicker way to get the element added using jQuery append: How to get the $selectors element: $container.append('<div class="selectors"></div>'); var $selectors = $('.selectors', $container); I tried: var $selectors = $container.append('<div class="selectors"></div>'); but that makes $selectors = $container Mayb...

How to implement onchange of <input type="text"> with jQuery?

<select> has this api, what about <input>? ...

Are there security issues when dynamically loading external content into a page using jQuery?

I'm building a site and I would like to have external content dynamically loaded in a div using jQuery. The content could be a google search page, where one can navigate without actually leaving the site. Could someone exploit this and drive to a content of his own and run malicious code inside my site? Are there ways to prevent this? Is...

jQuery - dynamic div height

I'm trying to resize a div on pageload and window resize. The code bellow is placed before </body>, and it works fine on pageload, but does nothing on window resize. I tested the resize function with an alert, which triggers on resize, but the height remains unchanged. <script type='text/javascript'> $('#main-content') .css({'height...

jQuery toggle changes element's width? I don't want it to! :(

Hi guys, I currently have a table that has a width of 94%, and the following toggle set to it: $(document).ready(function(){ $("#moreinfo").hide(); $("#toggleinfo").click(function () { $("#moreinfo").toggle('normal'); }); }); It toggles fine, but as soon as you toggle, the width goes really small and I have no idea why...

jquery addclass styling doesn't work, wrong selector?

<li id="leistungen"><a href="#Leistungen" onclick="sitemapChangeSubMenu('leistungen','leistungencontent','leistungen'); return false;">LEISTUNGEN</a> </li> This is the list-item which I want to style with: $("#leistungen a").addClass("brown"); This doesn't work for either: $("#leistungen").addClass("brown"); my css code is just ...

Remove second class from an element and add another class

Hi, $(document).ready ( function () { $(".MenuItem").mouseover ( function () { // Remove second class and add another class [ Maintain MenuItem class ] // Eg: For div1 remove Sprite1 and then add Sprite1Dis and for div2 // remove Sprite2 and add Spprite2Dis }); $(".MenuItem").mouseout ( function () ...