I have a simple HTML Form that has some input fields for sending an SMS/TXT message. I also have a jQuery script that counts the number of characters entered and also works out how many SMS Credits will be used to send the message.
These appear in a div as follows:
<div id='message'>
<span id='char'>0</span> characters,
<span id='msg...
Can anyone help me please, I feel like I am so close. I need to get the value from the “A” tag selected, so I can use it later on down the page. How would you get the partial value of a selected link from links in an array? I am using an accordion. I actually don't think that makes a difference but there might be something useful that ac...
I'm using PHP to pull the events from a FullCalendar as a JSON feed but I need to support multiple domains. I need a querystring variable to specify which calendar to pull events from... is this causing a problem? Here's the FullCalendar init code:
$('#full-calendar".$id."').fullCalendar({
editable: false,
events:'http://www.myd...
I have 2 checkbox rules that are overlapping.
This one runs first
$("#BMFNP").change(function() {
if($(this).is(":checked") && $("#INTEF").is(":not(:checked)")) {
$("#INTEF").attr("checked", true);
alert("foo");
}
});
This one runs second:
$("#BMFNP").change(function() {
if($(this).is(":checked") && $("#...
Hi,
i would like to have an event fired in jquery, if the validators of my page change their states.
This is my usecase:
In an Adressform the Validators all are hidden.
If i submit the form, the get displayed.
Now i want to fire a jQuery function, which renders all rows (not the inputfields, but their parents) with a red border (mea...
I first write the JSON:
$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);
print json_encode(array(
"array" => $arr
));
Then in the jQuery I do:
j.post("notifications.php", {}, function(data){
Now this is where I'm a little confused, as I would normally do:
data.array
To get the data, but I'm not sure how to handle the array....
I have the following link-
<a href="ex.com" onClick="return popitup2('<?php echo $var3; ?>');">Grab Coupon</a>
Where i have initialized $var3 like this
$var3 = "brand1,camp2";
The code for the function popitup2() is -
<script language="javascript" type="text/javascript">
function popitup2(id) {
$.ajax({
url: "http://jainkunal...
OK, I'm probably missing something obvious here, but my searches aren't turning up anything helpful. I've set up a sortable list and connected a draggable "palette list" to it, as explained here: http://jqueryui.com/demos/draggable/#sortable
I can drag items from my draggable list and drop them on my sortable list. That works fine.
I...
So I've got a simple page with different ways to filter the data (almost everything is working.) For example, you have a page with a list of the users. You can choose a page number, you can choose what to sort by (and what direction to sort in) and how many results per page.
The way it works is whenever one of those variables are change...
hi, the code is like this:
<a onclick="ajaxClick()">aaa</a>
now i want to get the event in function ajaxClick(){ //? }
since the code is loaded from ajax request, so there is noway to use bind().
is there any jquery API could do this? thanks.
...
I am trying to do a timeline. The timeline have few dynamically keyframe elements placed with absolute position on random positions.
Is there a way to get the Previous and Next element relative to a draggable dragger? Something like "if the #dragger is at left:55px, the next element is .keyframe 102px at left: 102px and previous element ...
I have a page that displays a particular DIV which fades out using .fadeOut revealaing another DIV which also then fades out, revealing a 3rd DIV which contains a horizontal jCarousel (strange I know, but given the constraints I am working with this was the optimal solution).
After all of this .fadeOut business finishes, the jCarousel ...
Hi,
My question is specific to oodle API.
I am trying to call oodle API to get the JSON result like this:
$.getJSON("http://api.oodle.com/api/v2/listings?key=TEST&region=sf&category=sale&format=json&mappable=address&jsoncallback=none", function (data) {
alert(data);
}
...
I have a Jquery Dialog being displayed .on the Top of the dialog i have Two Elements appearing on the top of the dialog .How to hide this two elements .Iam Getting this issue in IE6.0 and IE 8.0 it works fine
...
I have a dropdown which you choose one of three values
<select id="FilterType" name="FilterType">
<option value=''>All</option>
<option value="LanCode">Lan Code</option>
<option value="SupportTeamName">Support Team</option>
</select>
based on what the user chooses another dropdown is created beside that one
it will have a bun...
I'm working on a realtime media browsing/playback application that uses <video> objects in the browser for playback, when available.
I'm using a mix of straight javascript, and jQuery,
My concern is specifically with memory. The application never reloads in the window, and the user can watch many videos, so memory management becomes ...
I am trying to create a photo stack like this http://s3.envato.com/files/155280/index.html, but I don't want that transition from side to side or top to bottom.
Instead, I would like to fade each image while leaving that stacked look. I don't want to use a background image of the photos being stacked. But rather would like to dissolve e...
I am trying to pass request headers in an AJAX GET using jQuery. In the following block, "data" automatically passes the values in the querystring. Is there a way to pass that data in the request header instead ?
$.ajax({
url: "http://localhost/PlatformPortal/Buyers/Account/SignIn",
data: { signature: authHeader },
...
Hi guys,
I got a vertical testimonials belt and i have this method that animates its top value with a calculated value (depending on the height of the current testimonial) every few seconds.
Now when a user hovers over it, it stops right away (via .stop() and also the interval is cleared via clearInterval(idOfinterval)
But i stil...
I've seen some other posts on this, but it appears that when i do ajax calls with jquery over and over again (every 30 seconds in my case), I get a memory leak. Changing from a $get to a $post (whilst more secure as well) cuts down on the size - it still happens. Even if I do NOTHING in the response.
Any ideas anyone?
EDIT:
Here is ...