Hi
I noticed that jquery ajax request sometimes take about 1-2 seconds before the responce comes is this normal and is there any way to short that time to minimal?
The responce type is jquery and it's small.
Thanks!
Ok so i have some html like this:
<div id="navigation">
<ul>
<li>
<a>tab name</a>
<span class="delete-tab">X</span>
</li>
<li>
<a>tab name</a>
<span class="delete-tab">X</span>
</li>
<li>
<a>tab name</a>
<span class="delete-tab">X</span>
</li>
<li class="selected">
<a>tab name</a>
<span class="tab-del-btn">X</span>
</li>
</ul>
</div>
I then have javascript that is excuted on the page that i do not control (this is in liferay portal). I want to then manipulate things afterwards with my own custom javascript.
SO...
For each of the span.delete-tab elements an on-click event function has been assign earlier. It is the same function call for each span. I want to take that function (any) and call it from the click event of the span.tab-del-btn ?
This is what i tried to do:
var navigation = jQuery('#navigation');
var navTabs = navigation.find('.delete-tab');
var existingDeleteFunction = null;
navTabs.each(function (i){
var tab = jQuery(this);
existingDeleteFunction = tab.click;
});
var selectedTab = jQuery('#navigation li.selected');
var deleteBtn = selectedTab.find('.tab-del-btn');
deleteBtn.click(function(event){
existingDeleteFunction.call(this);
});
It does not work though. existingDeleteFunction is not the original function it is some jquery default function.
Any ideas?
I have one image. i want that when someone scrolls the browser window then by jquery i should also change the image position from top as well
I want to use jquery only . Is there function like that.
I don't want to use position:fixed or something like that. I want something like
onScroll(){
var x = getScrollDIstance();
moveImageDown(x);
}
I'm setting the start date of an event using jQuery UI Datepicker.
Now I need to retrieve the date I selected.
I'm trying to use $('#startDate').datepicker('getDate'), but this returns NULL.
Using FirBug, I see that the input value is nothing
<input type="text" name="startDate" value="" id="startDate" class="hasDatepicker">
I'm able to retrieve selected date when using jQuery serialize.
So how can I retrieve the selected date?
I'm having trouble getting the jquery ui 1.8 dialog to center
I've tried leaving the options default, and setting position: 'center'. When the dialog displayed, the browser window gets scrolled down to the centre of the page, and the dialog is positioned at the bottom left of the window.
This worked fine with jquery 1.3.2 and ui 1.7.2. Is there something new I need to do with this version?
Does anyone know how can I remove keypress from input with jquery?
Example:
<input type="text" keypress="cleanMsg()" id="cleanMsg" name="cleanMsg">
How can I removed the keypress="cleanMsg()" from input by using jquery? Or anyway to replace keypress="cleanMsg()" to keypress="Msg()"??
Hi all,
I am learning JQuery.
In a HTML file, I got this:
<DIV ID="testing">
And I am trying to pass the ID of this DIV tag to a JQuery self-defined function:
<script>
$(function() {
$("div").mouseover(function() {
var ID = $(this).children().attr('id');
alert(ID);
});
});
But it wont work.
Hi,
Does anyone know a great jquery horizontal newsticker?
Like:
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html
But without the white space.. Like an endless loop. And it should be possible for it to run very slowly.
Best regards.
I want to use jQuery to make a call to a c# web service called c.ashx which checks whether that username is valid and returns an error message as a string.
What should I put for data: and content type: if the return value of the c# webservice is a string value?
jQuery.ajax({
type: "GET",
url: "/services/CheckUserName.ashx",
data: "",
contenttype: "",
success: function (msg) {
alert("success");
},
error: function (msg, text) {
alert(text);
}
});
When I search on the Internet about JQuery and I got the jquery cheat sheet. At there, I am very confused about how to use the following under which condition. Pls help me.
[attribute|=val]
[attribute*=val]
[attribute~=val]
[attribute$=val]
[attribute=val]
[attribute!=val]
[attribute^=val]
[attribute]
[attribute1=val1] [attribute2=val2]
What are the functions of these special character *, ~, $, !, ^? Thanks very much.
[CODE]
function confirmSubmit()
{
jConfirm('Is the Appointment Confirmed?', 'Confirmation Dialog', function(r) {
if(r){return true;}
else {return false;}
});
}
[/CODE]
whjen i submit the foem i call this function and use jConfirm from jquery. i print r .its printing properly like true and false.but return false or return true has no effects.it just shows ths pop up and submits the form,does not wait for confirmation. how to solve this?
Hello Folks.,
I am looking for jquery script of popping up an image onmouseover..
i did this using javascript but it is not browser supportive.. so looking for jquery script..
Thanks
I used JQuery.serializeArray() on a form to create an array of objects on a GreaseMonkey application:
[
{
name: a
value: 1
},
{
name: b
value: 2
},
{
name: c
value: 3
},
{
name: d
value: 4
},
{
name: e
value: 5
}
]
I need to use GM_xmlhttpRequest to serve these fields back to a server side application. What is the best way to return these fields?
Thanks in advance,
D
It seems JQuery, its plugins and UI has largest popularity among JS platforms. I love and use Adobe technology stack every day, I wonder if Adobe Spry will be good addition to skill set.
Is it good enough comparing to JQuery ? Spry development is not moving forward fast and there's not much information about it, does it have future ?
How can I attach jquery on an ASP.NET MVC partial load. I've a form rendered in a partial that has some jquery attached, but that code is not running at all
I use jquery's .submit() to intercept user's submit event, however I found a problem.
When the user single click the submit button, the form is submitted normally, but if a user deliberately fast click it multiple times, it will submit multiple times, which will cause duplicated data in the database.
What's the solution for this kind of problem ?
I want to load a javascript file at the end of jquery.ready so that the code in my ready handler doesn't have to wait to execute until this large javascript file is loaded.
My jquery.ready code doesn't rely on this javascript file at all.
Would this be a good way to do that?
$(function(){
...
...
$('head').append('<script type="text/javascript" src="/largejs.js"></script>');
});
This works in jQuery 1.3.2, but not in 1.4
$("#container").children().map(function() {
var child = $(this);
if (child.is(":select")) {
//do something with child
}
});
What is the right way to do this in jQuery 1.4?
Typical jQuery over-use:
$('button').click(function() {
alert('Button clicked: ' + $(this).attr('id'));
});
Which can be simplified to:
$('button').click(function() {
alert('Button clicked: ' + this.id);
});
Which is way faster.
Can you give me any more examples of similar jQuery over-use?
Hello friends
The below link has my web page and i would like to validate all the fields using jquery, the problem is I dont have much space around the fields to display ordinary error messages. I am am a novice and thinking of using jquery validation, so could any of you suggest me the best possible way to do that.
http://www.4shared.com/photo/BowU9nFB/page.html
Thanking You,
Indranil
I'm pretty efficient in jQuery, having implementing it in several projects for my company. However, I found myself a little lost when reading stuff like node.js.
Do i have to go back to basics and learn the javascript language or should i just stick with jQuery?
I am very impressed with the Prototip plug-in, and I was wondering if there we're a similar plug-in available for jQuery?
The plug-in has to have been around longer than a few months and has to be updated regularly--or at the very least; on new releases of jQuery.
Hi, I've been using XPath with Selenium quite happily and even using getEval with a but of Javascript, but a colleague said wouldn't it be great to be able to use JQuery selectors in Selenium.
I've googled it, but can't find any articles that seem to work for me. Could anyone provide a comprehensive guide on how to use JQuery syntax to extract doc elements and their respective values out of selenium.
I'm using C# to write my selenium tests, so if any examples could be from a C# perspective that'd be great.
Thanks
I need to make an animated gif 'fly over a page and follow a path. I'm thinking of using jQuery but would I be right in thinking the only way to do it is manually calculating the percentage of width/height where the shape layer should be placed, then using absolute positioning is the only way to do this? I know there are some amazing jQuery plugins available for this type of thing.
hello, i have a little problem with JQuery.
Well, i have a and i want to hide this div when an user click in a zone that is not in the like the "notifications" behavior in facebook.
The solution that i found is to use jQuery.live() method but i think there is a better way to do it.
Thank you.