I have some jQuery code in an external Javascript file that is making an ajax call to an action method I have in my controller. The code in the external Javascript file is below. The action method is being called eventually, however it is not being called in time. When I set a break point in the action method, it is not being called u...
Hi there, two functions need to be executed in Javascript, the second one only after the first has finished.
The first populates an array with getJSON, and the second will then manipulate it.
However, getJSON is asynchronous, thus it will not pause the order of execution to make the program work properly so that the array finishes load...
is it possible to create a jQuery function so that it gets current date and time? I've been looking around documentation but haven't found anything so far...
...
I'm using the jQuery Form Plugin to bind the submit events for two forms on the same page so that they are submitted to separate PHP scripts that return markup to separate divs on the page.
One form refreshes the next. I use "live" so each form has its events re-bound when it is refreshed:
$(document).ready(function() {
/* Form 1 *...
I was looking through some pages when I stumbled across this open source JavaScript date library: Datejs. Now I've been trying to use it but everytime I try any function like:
$(function() { Date.today().toLongDateString() } );
or even only
Date.today().toLongDateString()
withing tags, I get errors when the webpage loads, it tells...
Hey everyone,
I'm interested in making a twitter client using Adobe Air, but I'm kinda stuck right now, as I can't figure out a better way to connect to the twitter REST API since it needs authentication.
Currently, the client sends a request to my server (a php script using curl) with the twitter username/password (unencrypted) in GET...
Hi,
My dom looks like:
<div class="blah">
<a href=""><img .. ></a>
<strong>blah blah</strong>
<a href=""><img /></a>
</div>
How can I get the value of the strong when I know the class is "blah" ?
$(".blah").find("strong") doesn't work?
...
<script type="text/javascript">
$(document).ready(function() {
$('#pHeader').click(function() {
$('#pBody').slideToggle('fast');
});
});
</script>
<asp:Panel ID="pHeader" runat="server" CssClass="cpHeader">
<asp:Label ID="lblText" runat="server" Text="Header" />
</asp:Panel>
<asp:Panel ID="pBody...
I am binding live events on links in my PhoneGap app. The event does fire successfully (confirmed by alert()ing), but it seems any touch data is not attached to the event object like it should be. This happens on all touch events - touchstart, touchmove, and touchend.
$('a').live('touchend', function(event) {
event.preventDefault();
...
I want to highlight all the keywords (case insensitive) within a p tag programatically
if the keywords are
var keywords = "hello,thanks, goodbye" // this should be an array
<p>hello world</p>
hello should be highlighted in blue
...
I'm looking for a JQuery plugin for resizing table columns that works with tablesorter. Any recommendations?
...
I'm wondering if it's possible to have the jQuery Validator plugin validate elements that don't yet exist in the dom when the rules are initially setup.
Calling the .Rules("add", therules) method only attaches the rules to elements that currently exist in the dom. If I were to create some. The validation doesn't fire. Any thoughts?
Hom...
Hi,
I'm a jQuery newb. I'm building a Online Shop and I'm using jQuery plugin 'Thickbox' (http://jquery.com/demo/thickbox). The Online Shop is set up to display a 'Enlarged Image' which runs the Thickbox JS script and shows an image.
A problem occurs as the data is placed on the page thru a CMS system (using Ajax I believe?). When you...
Hi All,
I am trying to extract the entire path of the file that a user uploads on the browser and this i need to do using javascript or jquery.
If i give ($("#userfile").val()); i am able to extract only the file name and not the entire path.
Could someone please help me with this?
...
Hi everyone,
I use jquery version 1.3.2,
I want to use event "load" for load content of a page to "div".
I used: $("#div1").load("page1.php"); ---> it worked.
But i want before do event "load", it waiting about times.
it same: $("#div1").load("page1.php",{after: 5});
please tell me how to do, thank you very much...
...
I'm using jquery to call a webservice which returns a dataset with a couple of tables in it.
This was working ok until i needed to set up my webmethod to accept a parameter. I reflected this on the client side with
data: "{paramname:'" + paramval+ "'}",
I now get the following error when the webmethod returns. This happens regardles...
Hi
ADO.NET Data Services looks very cool, and I would love to use it with a jQuery backed ajax website.
Do any of you great people here on StackOverflow know of a jQuery plugin that will ease the CRUD operations against an ADO.NET Data Service?
Regards, Egil.
UPDATE: It turns out that the ASP.NET AJAX 4.0 (currently in preview 4) has...
I'm working on a free template which has a featured Div...
www.subigya.com/test/durbarsquare
"In the Spotlight" is the featured div.
I have simple jQuery js in there to switch the images. How do I switch the heading & related to each div in the switch. Right now, only the images switch and not the text.
The script used is feature.js...
I want to enable a user on a website to upload an image, and write some text over it. Also, they should be able to crop/scale/move the image and text. For that stuff, I can do it in jQuery.
After they've made the image the way they want it, is there a way i can take a screenshot of that image (using PiL) and save it on the server?
Wh...
I am currently using the following jQuery script to highlight rows in my table, and it works great!
<script type="text/javascript">
$(document).ready(function()
{
$('table.grid tbody tr:odd').addClass('alt');
});
</script>
This works great for tables of data where each row is truly a new reco...