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 ...
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...
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...
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' />");
...
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...
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...
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...
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, ...
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...
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...
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 ...
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...
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...
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?
...
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...
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...
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',
'...
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...
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
...
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...