jquery

how to show result at another form after click button?

hello all..i have two form. at form 1 there are: 1. one group of radiobutton <input id="def1" type="radio" class="defect" name="defect" value="S"/>S <input id="def2" type="radio" class="defect" name="defect" value="A" />A <input id="def3" type="radio" class="defect" name="defect" value="B" />B <input id="def4" type="radi...

Why does height() return a completely even number regardless of window size in jQuery?

I am trying to determine the height of a specific element on my page. I have not set the height in the CSS, and regardless of the size of the window, the following code always returns the integer '100'. var img_h = $("#compare_view").height(); console.log(img_h); When I try a different div element on the page, it returns the int...

How do I wait for first canvas-repaint until @font-face-font is loaded?

I have a HTML5-canvas and write text with context.fillText(...); using a @font-face-font. Displaying the page with Firefox (3.6) I have the problem, that on the first paint of the canvas the font is not downloaded yet so the text will be displayed with a standard-font. I found a 'solution' here but it does not work, because the font is o...

FullCalendar dayClick function conflict with select function

I have noticed when I am trying to implement the dayClick: and the select functions there seems to be a collision somewhere. Here is some narrowed down code. // WHEN YOU SELECT MULTIPLE DAYS select: function(start, end, allDay) { var title = prompt('New Select Date:'); if(title) { ...

Using div background image as link using jQuery

Hello, I have put a logo as the background image in a div <div id="logo" style="background-image:url(images/logo.jpg); position:absolute; top:20px; left:18%; width:275px; height:100px; cursor:pointer;"></div> I want to use this as div as a link using jquery //jQuery code $('#logo').bind('click',function() { window.location = "index...

I am looking for good JS Loader and CSS Loader script in jQuery

Hello, I am looking for a good JS and CSS Loader for on demand loading Management in jQuery. Can anyone advice good solution ? ...

How to get the trigger of a Fancybox?

I need to know which specific classes the anchor (which triggered the fancybox) has to do some more action wie the "onComplete"-function. How do I get the trigger as jQuery-Object? $(this) seams to refer to the fancybox itself with no link to the original trigger. Solution: $('a.fancybox').click(function(e){ e.preventDefault...

Problems with jquery cycle pager function - page not showing up

Using cycle 2.7x i didn't have any problem with this however I had to upgrade to jquery cycle 2.88 because 2.7x doesn't support cleartypeNoBg. Below is the code I am using. As I say it worked before. $('#hero').cycle({ fx: 'scrollHorz', speed: 2000, timeout: 12000, next: '#next', ...

JQuery AJAX timeout undefined

I was trying out example JQuery examples and to my surprise, I got an error state for an AJAX call mentioning that timeout isn't defined. When I removed timeout attribute, it worked fine. I downloaded JQuery few days back, so I am pretty sure it's not a version problem. I was trying with Firefox(3.6.8) and not any other browser. Why ...

How To - Store Key Value Pair in Two Dimensional Array and HashTable using JQuery?

Can someone please redirect me to the right link or give an example of how to work with two dimensional array or HashTable in JQuery? I tried google but did not get the answer. I want to avoid using any plugins. All i want to do it, store some information and retrieve them like HashTable way. ...

Making jQuery bookmarkable (i.e - for a content slider)

I have made my own custom tabbed content script and it works great. The only thing missing is being able to book mark different sections. I know the URL needs re-writing somehow. At the moment I am using preventDefault to stop the page refreshing, this also stops the URL from changing. I have also tried manually re-writing the URL but ...

How to get the first inner element?

So I Want to get the first 'a' tag in this div. This is really driving me nuts. thanks for any help. <div id="PGD" class="album" onmouseover="load(this)"> <a class="dl" href="#">DOWNLOAD</a> </div> javascript function load(dl) { var ID = $(dl).attr('id'); var elemnt = $('ID:first').attr('id'); } ...

FullCalendar: Fetching the initial date/time-stamp to show once events are fetched from server

First of all, hats off to Adam for pulling off this wonderful, well-written calendar plugin! Now for a a very typical use case. Below is what I want to achieve: Fetch events (URL added to eventSources) from the server side as JSON data. This is all fine and I have been able to achieve this. The events get rendered properly. USE CASE i...

Using the jQuery plugin ColorBox in noConflict() mode

Hi All, I am using the jQuery plugin ColorBox in a Joomla! theme, and am having a hard time getting it to work in noConflict() mode. I have the following code that calls my jQuery and the noConflict(); call, followed by my actual jQuery markup: <script type="text/javascript" language="javascript" src="http://ajax.googleapis.com/ajax/l...

storing tree element in jQuery

I have developed a tree menu using jQuery api. But all my tree elements are hard coded. I want to store the tree elements in a data structure and create the tree dynamically. Does jQuery has any data structure like linked list or sth or do I have to code my own data structure ? ...

jqtransform and input tag

I have used jqtransform jquery plugin. With this plugin, input type="submit" replaced with button tag. I dont want send form information with button. can I prevent this replacement? If not, is there any plugin that do this? Thanks in advance ...

jquery show/hide div

I have the next jquery code: <script> $(document).ready(function() { // hides the slickbox as soon as the DOM is ready // (a little sooner than page load) $('#hidden').hide(); }); //<![CDATA[ function ShowHide(){ $('#hidden').fadeIn(); $("#shopping-cart").animate({"height": "to...

Is it possible to check if IE blocked my download with jQuery/Javascipt?

I am having some issues with IE which is showing me its yellow "download blocked" bar for a good reason: the actual submit that returns the file is triggered due javascript. I would like the show the user some additional information if this is the case. So is it possible the check if the browser is actually blocking my download? ...

JQuery UI dialog - Outer window scrolls while scrolling inside the dialog

Hello I'm using JQuery UI dialog to show a popup containing a page. When i scroll inside the popup and if the scroll bars comes to the bottom, the parent page starts scrolling. How can i restrict the parent page from scrolling while scrolling inside the dialog. I've created a modal dialog using the following code. // Dialog ...

setTimeout and click

$(document).ready(function() { $(".rshownews").click(function() { window.setInterval(function() {ajaxselectrss($(this).attr("title"))}, 1000); }); }); function ajaxselectrss(rssurlvar) { var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpReque...