jquery

how to apply event.stopPropagation ?

Hi, Let me explain the problem first. I am using the following UL structure <ul onmouseover="smenu_over(this)" onmouseout="smenu_out(this)" class="sub-menu" style="left:0;"> <li><a href="#">Navigation Item with long text do text wrap</a></li> <li><a href="#">Sub nav item</a></li> <li><a href="#">Sub...

How can I disable all buttons and links on my page, but still let the postback occur?

I'm trying to prevent the user from clicking on more than one postback-causing element on the page. In other words, if they click the 'continue' submit button, they shouldn't be able to cause another postback before the original request comes back. I've had a go with two versions of jQuery code. Neither does exactly what I want: This ...

Jquery: Scrollable menu with images where image in the middle is bigger

Hi jquery ninjas. I really need your help. I need a menu with images you can scroll horizontal and found the scrollable plugin (http://flowplayer.org/tools/scrollable/index.html) which do the trick. But now I want more :) I'm showing 3 images at once and want the image in the middle to be bigger then the image to the left and right. Wh...

[Rails3] jQuery + Ajax + Haml. js.erb files not firing.

After reading up on a few experiences, I feel this issue might need to be brought up again. Coding in Rails3, I'm trying to implement some smooth Ajax effects when a user tries to create a post on another element of my app. Here's the code I'm concerned with: app/views/posts/new.html.haml - form_for @post, :remote=>true do |f| = ...

What is the equivalent of document.createTextNode(' ') in jQuery

What can I use in jquery instead of document.createTextNode(' ') js line. I'm trying to do sth like this : js : divButtons.appendChild(document.createTextNode(' ')); jquery : $("#divButtons").append(?????); ...

Get next a tag in nested ul tree

I have a nested unordered list representing a tree hierarchy. There can be many deeply nested ul tags in the unordered list. Very simple example: <ul> <li><a href="#" class="allowed">Link</a> <ul> <li><a href="#" class="allowed">Link</a></li> <li><a href="#" class="allowed">Link</a></li> </ul>...

[JQuery Datepicker] 2 problems. CSS and localization.

$(function() { $.datepicker.setDefaults($.datepicker.regional['ko']); $(".datepicker").datepicker({ dateFormat: 'yy-mm-dd', autoSize: true }); }); The code above is everything in the head's script. And I included my own css. And as you see, jquery datepicker is affeced by my CSS.(...not allowed to post images..You could see t...

Ajax and facebox problem

Hello, I have a website that uses ajax jquery and facebox. Demo here : http://temp.nevergone.eu/facebox.php Inside the div "#content" there are some links to other pages that open fine using facebox. If I reload the content of that div using ajax jquery , then the links wont popup using facebox effect anymore. I tried to create a funct...

how to change the object_id while adding row dynamically using jquery

how to change the object_id while adding row dynamically using jquery eg: <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("#addPerson").click(function(){ $("#user tr:last ").after("<%= escape_javascript(render :partial => 'user_new', :locals =>{:user_new => User.new}) %>"); re...

find immediate tr elements of table element using jquery find()

I am trying to find all tr elements inside a table element. The table element it self has other table elements nested inside its rows. So when I do the following: $(tbl).find('tr').hover(...); ...it picks up tr elements inside the nested table elements also. I just want the immediate tr elements of the table element I am trying to que...

Is there a way to check if a user is logged in using JQuery?

I want to be able to display a message if a user is not logged in if they try rating a user by clicking a rating. Is there a way to add it to my JQuery code below or can I pass it to my PHP script? I'm using PHP Here is the JQuery code. $('#rate li a').click(function(){ $.ajax({ type: "GET", url: "http://localhost/...

Everything in an IFrame Loaded event

Is there some sort of event for IFrames that only fires when every resource (script, image, stylesheet, dom) has loaded? Basically I want to have a loading graphic displayed over the IFrame and only remove that when everything is loaded inside so the user doesn't see everything loading. Currently I am using $(iframe).ready(function() { ...

Is there a jQuery plugin that display images (and ideally other elements) in a slideshow, that I can control manually instead of running on a timer?

Similar to Coda Slider, but instead of moving between tabs automatically based on a timer, is there any plugin where it's possible to call a method on it or something similar to move to the next item? Thanks for reading. ...

JS Drop Down menu with submit button

I need to implement a drop down menu like the one in the image. I know how to accomplish something like this when there is no 'go' button but how would I do this with the the 'go' button? Is there a way to allow the user to select a link but not trigger it unless the user clicks the go button? Is there a jquery plugin or something for ...

Page content disappears when showing jQuery UI datepicker in IE7

Hi I'm using jQuery UI: <script type="text/javascript" src="/jscripts/jquery-1.4.min.js"></script> <script type="text/javascript" src="/jscripts/jquery-ui-1.8.2.custom.min.js"></script> and IE7 (corporate rule!) When datepicker shows up (enclosed in form and surrounding div), parent div content disappears. It shows up again when I m...

jquery context menu and asp update panel

i am using jquery context menu on a div inside an update panel. i read that i should be using ScriptManager.RegisterStartupScript to register the script, and that is what i did. on partial post back the menu appears on the screen even without right clicking on the div. Moreover if i issued a right click on the div the contextMenu is lau...

Check if jQuery method exists

Is it possible? No matter how, in Javascript or jQuery. For example: $.isFunction($.isFunction()); Upd: But how to check method of a jQuery plugin? Sometimes it not ready at the moment of it call and generates error. Example: $.isFunction($().jqGrid.format) ...

event.target on anchors ( <a> tags ) error/bug ?

html <ul> <li><a href="#" >Link</a> <ul> <li><a href="#" >Link</a></li> <li><a href="#" >Link</a></li> </ul> </li> </ul>​ jQuery $(function(){ $('ul').click(function(event){ alert(event.target); return false; }); }); Can someone punch me to the head and tell me...

how to clear jquery.event.drag

http://threedubmedia.com/code/event/drag when i create a dragbox how to clear a drag? thanks ...

With JQuery how can I have every link on my blog open in another window?

The title says it all. Instead of putting "target="_blank" on every link, how can I do it with jQuery? ...