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...
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
...
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...
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...
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.
...
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...
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...
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...
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.
...
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:...
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...
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) {
...
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...
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...
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 ...
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...
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...
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...
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"></script>
<script type=...
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.
...