Possible Duplicate:
Which Javascript framework (jQuery vs Dojo vs )?
I have very short time to learn any JavaScript framework.
Considering the all-in-one solution factor, WebDevelopment-market and availability of written-books, Which should I learn JQuery or Dojo or ExtJS?
...
i have a regular html Grid and i am binding my asp.net mvc view to a strongly typed array called MyObject[]. MyObject has 40 properties but i only populate 10 of them because that is what is shown on the main grid. this is in the index view.
i want to add a column to my grid to have a link that says "Edit Details". this would bring u...
<select id="sel">
<option value="123" selected="selected">text1</option>
<option value="44">text2</option>
<option value="882">text3</option>
...
</select>
How to get the index of selected option with jQuery?
May be .index(subject), but all possibilities tested, didn't work...
P.S. Indexes: value="123" => 0, value="44" => 1, ...
Than...
hello, i have this code
$(document).ready(function() {
$('a.menuitem').click(function() {
var arr = 0;
var link = $( this ), url = link.attr( "href" );
var newDiv = $( document.createElement( 'div' ) )
$( "#content_pane" ).append( newDiv );
newDiv.load( url );
return false;
});
});
As you can see i am creatin...
I am using JSON.parse for a list of products. I am running a regex to replace characters that were breaking the parse:
[\n|\t|\r]
It seems that I am still having issues when the following content is being copied into html.
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: arial, Verdana, Helvetica; -webkit-bo...
functions fine in every other browser but safari.
selector is for a.class, in my case: $("a.nav")
When I do <a class="nav" href=page.html><img src=icon.png/></a>, it becomes not possible to close out of the modal dialog by clicking outside of the dialog or clicking the x icon.
what is my problem?
thanks in advance
...
I need a interactive table. By word interactive I mean "I should be able to add rows and delete them from table".
Above table I have input fields. So script should take value of each input field and add to table. But in the table should be a cross (for deleting rows), and once i click on it row gets deleted.
Also I ust somehow pass all...
Hi guys!
Following problem:
I would like to build a little clipboard with jQuery. I have tried several times to store an object in the data of a javascript object with $(object).data('id',objectToStore). Objects can be stored there that works fine. The problem is if I try to insert the stored data I only get a reference to that object....
Need some Advice on how to reference elements with jQuery (DOM/Traversing/Selectors).
Sometimes its just enough to set an id at the desired element and do this:
$('#elementID').hide();
But sometimes it just cant be used, for example when working with list of n elements, i have seen some people attach a class to each element of the lis...
i am trying to get asmSelect, which works fine on its own:
http://www.ryancramer.com/projects/asmselect/examples/example1.html
but i am now trying to get it to work on a page that get dynamically populated into a jquery UI dialog popup but it doesn't seem to be working. I am basically mimicing the code below and rendering a partialres...
I'm trying to make it so when a user is in a text box and they press enter, it is the same as clicking the link, in which case it should take them to another page. Here's what I have and it doesn't work.
The code
//jQuery
$(document).ready(function() {
//if focus is in the input box drivingSchoolInput
$("#drivingSchoolInput").li...
when i click on a link, i have a jquery .post call in a javascript function. This calls a controller action which returns a partialresult into a jquery ui dialog.
this process can take a few seconds as the controller calls the model for some calculations, etc . .
anyway, is there anyway to display a "Please wait . ." or animated icon ...
I'm working on some out transitions on image when a user presses the button to move to the next image. When there are multiple images next to each other that are very narrow, those images will all transition at the same time. So I check the width on the images and add the thin ones to an array and then run the transition on each object i...
Say I have this div:
<div id='myDiv'>
<input type='text' id='foo' size='30' />
</div>
and i run this javascript code:
($("#foo").val('bar');
If I then do:
alert($("#myDiv").html());
or
alert(document.getElementById('myDiv').innerHTML);
I get only the original copy of the html where the value of foo textbox is still blank. ...
I am trying to change 'inputs' in this demo to 'selects'. The demo works fine, which is at:
http://devblog.jasonhuck.com/assets/infiniteformrows.html
The problem with modified is is everytime you click on add new row, it loses previous row selection, what was selected.
<html>
<head>
<title>Infinite Form Rows</title>
<scrip...
I am using jQuery as my Javascript library. Is there any way to make a textbox grow to fit the size of its contents?
...
Hi People. I have implemented the following in to one of our sites to show an external link icon next to external links:
$(document).ready(function() {
$('#extlinks a').filter(function() {
return this.hostname && this.hostname !== location.hostname;
}).after(' <img src="/images/external.png" alt="external link"/>');
});
We use B...
I'm changing the border color of an object via an animation:
$listItem.siblings('li').andSelf().find('img').animate({
borderTopColor: defaultThumbBorderColor,
borderBottomColor: defaultThumbBorderColor,
borderLeftColor: defaultThumbBorderColor,
borderRightColor: defaultThumbBorderColor
}, 500 );
In Firefox, this work...
i have aspx page which has following js function which is called on button click
enter code here
<input type="button" onclick="calltemp1()" value="Temp1"/>
<script type="text/javascript">
function calltemp1() {
$("#Renderthisdiv").load("/Views/Templates/_Temp1.ascx");
}
</script>
...
Does jQuery provide a way to lookup a style defined in a CSS class without first assigning that class to an element?
e.g. given the following CSS I would like to retrieve the Color style assigned to myClass -
.myClass {
color: #ff0000;
}
So far the only way I've found is to temporarily assign the class to an element and then interr...