i know this:
$.getJSON(
"test.js",
function(json){
alert("JSON Data: " + json.users[3].name);
}
);
but i see the code in a site:
$.getJSON(l, {
tag: "userName",
userName: 'sss'
}
what is '1' mean,in this place.
thanks
...
with a moderm browser, the jquery datatable plugin works very well but in ie6 i find that its almost impossible to type in teh filter textbox as the keypress filtering is insanely slow so the browser can't keep up with your typing.
is there anyway to change the behavior so that it only searches and filter on enter key compared to every ...
I am working on a flot graph where i have a few data points i want to display next to each other as bars per x axis, by default the bars overlap and i cant seem to find out where to do this.
I found a basic example of what im trying to do here:
...
Hi,
I have a page that contains several forms that are identical throughout a page. I submit these forms using the $.ajax() method.
As I see it using classes to identify/submit/validate the individual forms will likely be problematic. Passing the form with something like $('.someForms').serialize() would not produce viable results. H...
Why does this work (returns "one, two, three"):
var words = ['one', 'two', 'three'];
$("#main").append('<p>' + words.join(", ") + '</p>');
and this work (returns "the list: 111"):
var displayIt = function() {
return 'the list: ' + arguments[0];
}
$("#main").append('<p>' + displayIt('111', '222', '333') + '</p>');
but not thi...
Hey guys,
I am currently using prettyPhoto lightbox for my images and for some reason i cant get it to work. I know this is a very basic questions but some help would be appreciated. i found the script here:http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
Additionally here is the page i am trying to get i...
I am using Joern's jquery validation plugin 1.6.
My goal is to have the following behavior: remove the error message for an element once the user focuses it. From what I understand setting 'focusCleanup: true' should take care of this.
However (at least on my browser (Firefox 3.5.7 on Linux)), I only get the desired behavior (ie, error...
hi friends
in the lightbox i render form containing textbox and buttons(next and prev)
problem is, after i edit content in textbox and click "Enter button" it should fire click event on "next" button so that it takes to next form in lightbox
i used following code, but it is refreshing entire page instead of focusing "next" button alon...
hello every one,
can anyone please help me, how to resize font size by resize event of div using jquery ui plugin?
html :
<div>my testing data</div>
script :
$('div').resize(); //this function is called from resize plugin of ui jquery
i want to increase font size by resizing the div.
...
I am using a link button to redirect the page to my desired location with some query string value from Jquery.
The Link Button code are as follows:
<td>
<a id="selectAllLink" class="button" rel="nofollow ibox&width=800&height=400&title=Contact Now"
href="#" onclick="return (this.href=='#');">Contact Selected<...
$.getJSON( "http://yoolk.dev:3012/categories?callback=?", function(data) {
console.log(data)
}
);
I have the code above in order to get json data, but callback function seems not be working. Anyone can help? Thanks
...
Jquery:
Is there a way to catch the event that is fired when the browser opens the Open/ Save as dialog box?
I need to do something when the dialog is shown.
Kind regards
Massimo
...
Hello every one can any one help me out please?
by using this code my font size is go beyound the size of parent div
here
$(divid).resizable({
maxHeight: parseInt(200),
maxWidth: parseInt(180),
resize: function(event, ui) {
var width1 = parseInt(ui.element.css('width'));
...
Hi all
I'm rather new to Jquery and have a quick question.
I have two Jquery functions which both seems to start onload but I want to delay the one function until Function 1 has completed :
$(document).ready(function() {
//DO SOME AJAX STUFF HERE AND CALL FUNCTION TWO BELOW WHEN DONE
});
jQuery(document).ready(function() {
jQuery...
Hi There,
I am trying to add links to skip to step 4 on my jQuery UI tabs. Can anyone see why this is not working?
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript">
$(function() {
var $tabs =...
Hi,
Is there a way to load image from an input type="file" on a page without uploading it to the server? can this process be handled by copying the image into a location where the script has access to it?
It is not import if it load after a refresh.
Any help is appreciated
...
I am trying to do something along the lines of the following where I have a Controller with an method similar to:
public ActionResult Insert(Author author) {
//do something...
}
Where the Author type looks like:
public class Author {
public string FirstName { get; set; }
public string LastName { get; set; }
public Book[] Book...
in my aspx page i have a div which contains simple html ,has some id(say 'datadiv')
using jquery i want to get the html of that div (entire div) into a JavaScript variable
how can it be done?
thank you.
...
Hi,
I have a Problem to Display a Grid as a Subgrid using an extra button.
I tried to copy the code from the
subGridRowExpanded:
Event.
But the Grid is doing something nasty, before the subGridRowExpanded is fired.
If I use the + button at the left side the grid is displayed properly. If I now push my created button, the subGrid is r...
I have several INPUTs:
<input type="text" name="entry[1]" value="aaa" id="firstEntry" />
<input type="text" name="entry[2]" value="bbb" id="secondEntry" />
<input type="text" name="entry[3]" value="ccc" id="thirdEntry" />
How to get "2" when I know that element id is "secondEntry"?
var name = $("#secondEntry").attr('name'); // name =...