jquery

Using Selenium to Test jQuery element data()?

Is it possible to use selenium to test whether a jQuery data() is set on an element? In my app, the user enters information about several orders. Each order gets appended to an overview table so they can see their progress as they're going. In addition to the visible order information, we store some additional information that we need...

Webpage structure suggestion (Jquery, .NET)

Hello ! I have a WebPage with a fix Superior logo and menu... And I´d like to change the inferior content with each menu click, wthout making other new Aspx... I mean, only one Aspx... Page Structure: -------Logo -------Menu -------Content 1, 2 ,3 I´d like some fancy/beautiful suggestion to that... Maybe a Jquery plugin? Thanks ...

Testing JavaScript code without recreating markup?

I want to test the JavaScript code in our web app. We are using the jQuery library and .Net MVC. I've looked at these answers, and jqUnit looked nice, so I tried it, just to realize that I'll have to pretty much recreate all markup for every page I want to test. Am I missing something? Are there any alternative approaches for testing J...

Jquery IE8 Dom manipulation fails to expand elements

Hi, I have a few areas in a form I'm producing where I use jquery to appendTo a dom element I have created and slide it down as follows: function createForm(event) { var input = $(event.data.element); var name = input.val(); input.attr("disabled", true); input.parent().parent().fadeOut("slow", function() { $.get('<%=Ur...

checking if number entered is a digit in jquery

I have a simple textbox in which users enter number. Does jQuery have a isDigit function that will allow me to show an alert box if users enter something other than digits? the field can have decimal points as well. ...

how to check if a particular value was selected in select box

if i have a form with the following two elements. <select name="" size="5" id="reasons" multiple="multiple"> <option value="1">test1*</option> <option value="2">test2*</option> <option value="3">test3*</option> <option value="4">test4</option> <option value="5">test5</option> </select> <input type="checkbox" name="so...

How can I make xVal work with my extended Html.ValidationImage?

I have extended the ASP.NET MVC Html Helper to include my own ValidationImage that outputs an image rather than the standard tags. Details are shown within the StackOverflow Question: How do I extend Html.ValidationMessage so that I can include an image as the error? I would like this to integrate well with xVal now. What would be th...

Tricky: Surpress "Loading ..." title in Firefox for JSONP polling

I am working on a jQuery plugin that people can include in their own page. The plugin spawns jobs at a service I am operating which is on a different domain. To breach the domain boundary I am using jQuery's JSONP functionality which works fine for spawning the job. However, I also need to display the "progress" (0 -> 100%). So far my p...

Is there away to monitor when a elements disabled attribute is set with jquery?

Hey I'm trying to fire a new event I created for when a button is set to disabled state (By another method etc...) how can I achieve this? i want to listen for when the disabled state changes. ...

Cufon gives double line height without control

Cufonning a font onto a page with a Cycle jQuery plugin enabled, slowly scrolling through a set of messages. Each message moves off the viewport but then takes forever for the next one to appear. There is almost a one second gap between the first one leaving and the second one appearing. Any reason why this is happening? Here's my code:...

How do I stop the jquery UI slider from sliding beyond the gutter.

I am using the jquery-ui slider as a sideways scroll bar, and am having issues with the fact the handle slides beyond the end gutter (it can be seen here if you slide the slider the farthest to the right). I have tried everything I can think of with CSS to try to get the handle to go no further than the gutter, but to no avail. Any sug...

How do I check if the mouse is over an element in jQuery?

Is there a quick & easy way to do this in jQuery that I'm missing? I don't want to use the mouseover event because I'm already using it for something else. I just need to know if the mouse is over an element at a given moment. I'd like to do something like this, if only there was an "IsMouseOver" function: function hideTip(oi) { ...

Using jQuery each to grab image height

I have a bunch of images on a page. I'm trying to use jQuery to grab the height of each image and display it after the image. So here is my code: $(document).ready(function() { $(".thumb").each(function() { imageWidth = $(".thumb img").attr("width"); $(this).after(imageWidth); }); }); <div class="thumb"><img src="" borde...

jQuery and International Address Data

I wanted to get opinions on a jQuery plugin I've bee working on to display an international address form. I posted it on my blog at http://weblogs.asp.net/awilinsk/archive/2009/08/13/jquery-amp-international-address-data-collecting-and-storing.aspx. I have searched around here and all over the internet to get some insight on how to solv...

Rails, jQuery, Ajax create and update.js.erb

Alright. I am working with RoR and jQuery and I have already got my update and create links working and functioning with their .js.erb files. The problem arises when in create with this line of code. #create.js.erb $("#promo_types").append("<%= escape_javascript(render(:partial => "promotion_type"))%>"); it is throwing an error: You ...

[JQUERY] Help me with my selector, the ID is dynamically changing every page load.

Hi, I want to scan a website using jQuery, but the ID is constantly changing, but there's a permanent pattern for the ID that I'm searching for: app7019261521_the_coinb4678bc2 app7019261521_the_coind42fgr23 app7019261521_the_coing0992gvb app7019261521_the_coin12e5d0aa The IDs always starts with app7019261521_the_coin But my problem i...

jQuery: issue with live events, a form and the back button

Hi, I have build a quite complex widget which contains "some kind of form". It has a form tag, but I'm loading a lot of stuff in there via Ajax etc. Cannot explain it in detail, and the code is too long to paste in here. Now, in a "live('click', function()" I use for one of the form fields, I'm writing a couple of values into hidden fi...

Jquery Firefox error in finding position() of a DIV

Hello, I am facing a weird issue with firefox, I have a DIV tag with ID="popup_layer". I'm using Jquery to find this DIV which works fine : var rightPosition=$j("#popup_layer") But when I try to find the position of the DIV: var rightPosition=$j("#popup_layer").position().left; I get the following exception in Firebug: [Excep...

problem with jquery datepicker onselect

Hi guys, Following the basic onSelect spec on the jquery site I tried the following code: <!DOCTYPE html> <html> <head> <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"&gt;&lt;/script&gt; <script type=...

Using JQuery within onClick

Am I allowed to use JQuery within an onClick function? For example: <a onclick="my_save_function($("#inputID").val())"> <input type=hidden id="inputID" value="foo"> Such that, when clicked, the anchor tag runs this: my_save_function(foo); After a few searches, I couldn't find a similar topic. Thank you for any help. ...