jquery

IE Display Bug, jQuery bug

So I built some complex ajaxy jquery module on my homepage, with the help of "scrollable" from flowplayer.org. It works fine for me on Chrome, Opera, Firefox ... but of course IE is not playing friendly (regardless of the version, from my testing). Objects are not displaying exactly where they should, some are overlaying each other, an...

Need help replicating directory structure with ColdFusion and jsTree

I am using this new jQuery plugin called jsTree www.jstree.com and using the HTML datasource. I am also using ColdFusion 7 with cfdirectory and filtering out files, so just dirs. I need to recreate the directory structure in the image, well any dir structure I give it actually. I am having a heck of a time with the logic. variables.image...

Tracking Mouse Stop

I am trying to track mouse movements in the browser, and if a user stops their mouse for 0.5 seconds, to execute some code. I have put a breakpoint in the code below in firebug, and it breaks on the var mousestop = function(evt) line, but then jumps to the return statement. Am I missing something simple? Why isn't it executing the POST s...

JQuery's Contains returns an Object?

Hello all, I am trying to see if a particular string appears in a div. I have tried but it doesn't return true or false which is what I thought contains did? if($("#path"+i+"_status:contains('!=')")){ alert($("#path"+i+"_status:contains('!=')")); //alerts - [object object] return true; } Here is my HTML: <div class...

jquery document ready handler

Is there any difference between using: $(document).ready(function(){ vs. $(function(){ Does one of these work better than the other in some way, or is the first just a shorthand version of the first? ...

Scoping inside Javascript anonymous functions

I am trying to make a function return data from an ajax call that I can then use. The issue is the function itself is called by many objects, e.g.: function ajax_submit (obj) { var id = $(obj).attr('id'); var message = escape ($("#"+id+" .s_post").val ()); var submit_string = "action=post_message&message="+message; ...

How to hide optgroup/option elements?

Is there a way to hide option or optgroup HTML elements? I've tried calling hide() in jQuery, and also using regular Javascript to set style.display='none'. It works in Firefox but not in any other browsers. Actually removing them from the DOM does work, so perhaps there's a way to save each DOM element when it's removed, and reinsert t...

ASP.NET MVC Page - Dropdown control doesn't function with Keyboard Arrow Keys

Hi I have a page that has a Dropdown control (ddlDeliveryMethod). So that when the user selects particular option from the Dropdown(using MOUSE), the respective Div ID's are loaded. But instead of Mouse, if we simply use the arrow keys from Keyboard, the respective DIV ID's are not showing. Is there any workaround for this. Appreciate...

jquery radio button when checked need an alert

Hello In my application i need a radio group, in which whenever a button is checked, an alert occur so that i can post its value to ajax post in jquery. Can you help me please how i can do it in jquery? ...

Javascript JQUERY AJAX: When Are These Implemented

I'm learning javascript. Poked around this excellent site to gather intel. Keep coming across questions / answers about javascript, JQUERY, JQUERY with AJAX, javascript with JQUERY, AJAX alone. My conclusion: these are all individually powerful and useful. My confusion: how does one determine which/which combination to use ? I've co...

prevent form from automatically re-submitting on page load

I am using jQuery to point a form's target to an iframe on .submit(). This is to upload a file. It works fine, but when the page reloads, and the iframe is appended to the DOM, the iframe automatically resubmits the form, causing the same file to be sent to the server on each page load. If I do not include the iframe in the HTML markup,...

Parent CSS (jQuery)

There is <dl> with padding-top <dl id="posters" style="padding-top: 150px;"> <dt class="active">text</dt> <dd class="active"><a href="#"><img width="150" height="150" src="..." /></a></dd> <dt>text 2</dt> <dd><a href="#"><img width="150" height="250" src="..." /></a></dd> <dt>text 3</dt> <dd><a href="#"><img width="150" height="350" src...

Sort a HTML Table with more than one tbody inside (each with col-&rowspan)

Hello Developers, I've got a question: Now i have a html file with some content like this: <table> <thead> ... </thead> <tbody> <tr> <td rowspan="2">demo</td> <td rowspan="2">demo</td> <td">demo</td> <td>demo</td> </tr> <tr> <td>demo</td> <td>demo</td> </tr> </tbody> <tb...

jquery slider - mc is not defined

Hi guys I have currently implemented this image slider http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html on a site but for some reason I get the error message "mc is not defined". Unfortunately I can't show a link to the site since it's not accessible to the public yet. When I look in the javascript file I can see t...

loading jquery twice causes an error?

I have a page where jquery + other js's is being loaded: <script src="/eiv/javascripts/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="/eiv/javascripts/jquery.jeditable.js" type="text/javascript"></script> <script src="/eiv/javascripts/jquery-ui-1.7.1.custom.min.js" type="text/javascript"></script> <script src="/eiv/j...

HTML Tables with jQuery Filtering

Let's say I have... <form action="#"> <fieldset> to:<input type="text" name="search" value="" id="to" /> from:<input type="text" name="search" value="" id="from" /> </fieldset> </form> <table border=1"> <tr class="headers"> <th class="bluedata"height="20px" valign="top">63rd St. &amp; ...

how to use the bounce effect in jquery

i have included the plugin and written code like if(page) { $.post(page,{},function(data){callBackFunction(data)}); } function callBackFunction(data) { $('.page_change').html(data); $('.page_change').effect("bounce", { times:3 }, 300); $('#submit_show').show(); } The data change is happening but the bouce effect i am not getting..ho...

jquery datepicker only works on <input type=text> within Chrome?

I have a very simple page that's using jquery's datepicker. I have: <input id=datepicker type=image src='cal.png'> When I click on the image in FF/IE, it works as expected, but does not work in Chrome (ver. 4.1.249.1064). However if I simply change to "type=text", it works within Chrome. So my question is this: am I allowed to use ...

How I can combine Google maps API and others (maps.andex.ru or Bing) in one application

There are many services, where user can switch API: gpsies.com, gdeetotdom.ru/map etc. How I can develop common map factory? Have anybody some tutorials or examples? ...

Update JQuery Progressbar with JSON Response in an ajax Request

All, I have an AJAX request, which makes a JSON request to a server, to get the sync status. The JSON Request and responses are as under: I want to display a JQuery UI progressbar and update the progressbar status, as per the percentage returned in the getStatus JSON response. If the status is "insync", then the progressbar should not a...