jquery

Given a textarea generated from asp:textbox, the inner text cannot be 'set' with Javascript or Jquery

I have a single asp:textbox declared as follows: <asp:TextBox ID="textBox1" class="myTB" runat="server" TextMode="MultiLine" Font-Names="Calibri" Font-Size="Small" Font-Bold="True" Height="175px" Width="725px" BorderColor="#76B900" BorderStyle="Solid" BorderWidth="2px" Style="overflow: hidden; margin: 5px;"></asp:TextBox> Rendered ...

Jquery, xml and variables

I'm trying to use xml data to insert as a variable for an animation but am fairly clueless. What am I doing wrong and how far off am I? $(document).ready(function(){ $.ajax({ type: "GET", url: "data.xml", dataType: "xml", success: function(xml) { $(xml).find('mon').each(function(){ var top = $(t...

using a variable in :contains - how to

I am using accordion menu on an e-commerce site. The menu stays open with the options until the product page. On that page I am trying to use the breadcrumbs to match text in the menu and then apply a class to open the menu to the correct category for the page. Here is my code: $(document).ready(function(){ var bctext = $('#ProductBre...

Images appear stretched in IE

Basically, I use jQuery to get images from Flickr like so: $(document).ready(function(){ $.getJSON("URL-GOES-HERE", function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).addClass("thumb").appendTo(".flickr") .wrap("<a href='" + item.link + "'></a>").wrap("<div class='flickr-thumb' />"); ...

How do I select items in an array using JQUERY?

I have this line which successfully select all elements of class"myclass" on my page: var myTerms = $(".myTerm"); The above line works, myTerms is an array of all the myTerm, each of which contain "subTerms". Then as i iterate over each myTerm, I want to use jQuery to return an array of the "subTerms" within that myTerm. I tried: v...

Selecting by ID attribute using JQuery in ASP.NET

I've just started using JQuery in VS 2008, and so far I like it! But, I'm confused about how I should be using JQuery in order to select asp.net controls on a webpage. For example, I have the following code (just a mock-up): <asp:textbox id="txtSomeData1" runat="server" text="Some Data!!"></textbox> Now, if I want to use JQuery to se...

jquery ajax & full server path

Is there a way to use a full server path instead of a url when submitting a form via ajax with jquery? The exemple below doesn't work but it will give you an idea of what I'm trying to do. I know you can't do cross domain ajax requests but this is all on the same physical server. I don't want to set up proxy or anything too fancy, if t...

jQuery DatePicker - 2 Fields

Hello, I'm currently working with jQuery and using the datepicker. I have two input fields: Start Date and End Date. When each is clicked, the datepicker pops out. For the "End Date" field, I would like the jQuery date picker to highlight the same day. For example, if a user picks 8/12/09 as their start date, for the End Date, ...

markitup wysiwyg with a standard HTML form

Hi, I'm trying to use the markitup editor on my site and I'm having a problem trying to figure out what I need to do to submit the text area to my server side script. I'm guessing there is something simple that needs to be done but my lack of JS/JQuery knowledge is making it really hard to find a answer The editor works fine, I just wa...

jQuery remove SELECT options based on another SELECT selected (Need support for all browsers)

Say I have this dropdown: <select id="theOptions1"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> I want it so that when the user selects 1, this is the thing that the user can choose for dropdown 2: <select id="theOptions2"> <option value="a">a</option> <option value="b">b...

vertical Menu functunality with jQuery

I have a menu (vertical menu) and i want each of the Ul's to show when hovering the dd's, and hide back in when mouseOut (second function of .hover()) what will be the best easiest way (without a plugin). <dl class="lft-menubar"> <dt>Computers</dt> <dd> <ul class="slidedMenu"> <li>3rd level menu</li> <li>3rd ...

JQuery "get" failure (using Google App Engine on the back-end)

What I am trying to do is pretty simple: yet something has clearly gone awry. On the Front-End: function eval() { var x = 'Unchanged X' $.get("/", { entry: document.getElementById('entry').value }, function(data){ x = data; } ); $("#result").html(x); } On the Back-End: class MainHandl...

Basic question about positioning DOM elements with JavaScript

Hello everybody. I recently started to learn JavaScript and how to manipulate DOM elements. So far it been great and I really enjoying the learning. However, there is something that i am having a hard time to grasp. It is positioning elements with the JavaScript. All the offsets, clientsX(Y) and others just confusing me. And it is frus...

What's the best jQuery product zoom plugin?

I'm not much of a frontend guy, just learning jQuery, so any help is appreciated. What's the easiest, most stable jQuery zoom plugin? I have a regular size product image and a detailed image. I need to be able to zoom in somehow. Which would you recommend? ...

Javascript Local vs Global

I thought I had this mess sorted out in my head but for some odd reason its not working. If you declare a variable outside of a function / scope and refer to it without the var inside a function then it changes the variable declared previously... right? however, the first alert returns the correct price, but the second (last) alert ret...

Advice on general way this wizard form should be layed out....

I'm doing a wizard form with about 5 steps where you build a product by choosing items from different categories at each step. In each step, the user will be presented with a list of multiple items each with item name, small preview image and a checkbox to select. On mouseover of an individual item, I'd like to display a larger image a...

Uploadify plugin

Has anyone used this plugin? I don't know if my setup is right, but I think so.. $(document).ready(function() { $("#uploadify").uploadify({ 'uploader' : '/extra/flash/uploadify.swf', 'script' : '/admin/uploads/artistsphotos', 'checkScript' : '/admin/uploads/artistsphotos', 'cancelImg' : '/images/cancel.png', '...

input field, only numbers jquery/js

Hey all :) I have a input field where i only wish users to type numbers html: <input id="num" type="text" name="page" size="4" value="" /> jquery/ js: $("#num").keypress(function (e){ if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57)){ return false; } }); hope someone can help me. btw: I'm not inter...

Toggle behavior on Click

How can I toggle the bhavior on a CLick. When I click on a button, I want it to change it to red. When I click again, it should become blue and so on ...

some jquery/js help to change bgcolor on input checked

Okay, I want some jquery/ js to show an yellow background-color when its checked... how to do ? (I use class="valgt" to define which checkbox i want to be styled. <td valign="top" class="valgt"> <input type="checkbox" name="check" value="" /> </td> I have no ideá how to fix it.. so I need some code help for the jquer/ js scr...