Hi everyone.
What i basically want to do is to get content from a website and load it into a div of another website. This should be no problem so far.
The problem is, that the content that should be fetched is located on a different server and i have no source access to it.
I'd prefer a solution using JavaScript of jQuery.
Can i use a ...
I am trying to create a script that finds the closest store/location to a customer using googlemapsAPI. So I've got a json object which is a collection of store objects. Using Jquery's .each to iterate through that object, I am grabbing the driving time from the customer to each store. If it finds the directions, It copies the duration o...
I've got an html table:
<table><tr>
<td>M1</td>
<td>M2</td>
<td>M3</td>
<td>M4</td>
</tr></table>
and a simple jQ script:
$('td').click(function(){ alert( $(this).html() ); });
That works just fine.... but in the real world, I've got several hundred table cells and the code is formatted improperly in places because of several p...
Hi all,
I've had a good look around and am certain that there's no matching question on SO, so here goes.
Has anyone created a 'helper' method on their model that generates jquery (or plain javascript) rules validation dynamically, based on the criteria/rules that are contained within the object and taken from a repository (i.e. DB).
...
Can anybody help me out..
how to display the second grid on clicking on first gird frist row?
Thanks
...
Example: http://vincent-massaro.com/map/
Currently, the script allows you to click on a piece of the accordion to open it, but it is set to close on mouseleave. When I set the mouseleave to .click, it gets confused and doesn't know what state it is in. I want to make it so that you can click to open it, and click to close it, instead of...
I'm unable to get this script to work as an extension in google chrome. No alert shows up. normal javascript alerts work.
// ==UserScript==
// @name voip
// @namespace 1
// @description voip
// @include *
// @require http://jquery.com/src/jquery-latest.js
// ==/UserScript==
$(document).ready(function() {...
Hello.
Hi everyone. So right now I am using me of this:
function checkpoints() {
var postThis = 'checker.php?userid='+ $('#user_id_points').val();
$.post(postThis, function(data){
$(".vispoints").html(data).find(".vispoints1").fadeIn("slow")
});
setTimeout(checkpoints, 5000);
}
This function repeats each 5 seconds (...
I'm trying to use the jQuery $.inArray function to iterate through an array and if there's an element whose text contains a particular keyword, remove that element. $.inArray is only returning the array index though if the element's text is equal to the keyword.
For example given the following array named 'tokens':
- tokens {...} ...
I've been struggling with a feature I've been trying to create for sometime.
The idea here is that the user sees the little thumbnail + headline, as well as the Posted By information. They can then click on the headline to expand to the article or click on the "Comments" link to expand directly to the comments made on the article. Or, if...
I have a simple jsp/servlet application and I want to add AJAX feature to this app. I use JQuery , but it doesn't matter what javascript framework I use. This is my code:
<script type="text/javascript">
function callbackFunction(data){
$('#content').html(data);
}
$('document').ready(function(){
...
Hi,
I have two forms, one with a radio button that users must select to edit.
[form name="A"]
[input type="radio" name="BookItem" value="1" /]
[input type="radio" name="BookItem" value="2" /]
[input type="radio" name="BookItem" value="3" /]
[form]
After "BookItem" is selected from form (A) I call the $("#EditFormWrapper").load("callEdi...
I have the following code:
var table = $('.photogalleryTable').before('<ul class="photogallery"></ul>')
table.find('td a').wrap('<li>').parent().appendTo('ul.photogallery');
table.remove();
This code finds a table with a list of photos and re-codes it to use a unordered list instead. The script works perfectly except for one issue. If...
Hello
i have 2 divs above each others, at a given moment one is shown and the other is hidden, the script should display #div2 when the mouse enters #div1 and should show #div1 when the mouse leaves #div2
the problem comes when the mouse enters #div1 and leaves before #div2 is displayed so the #div2 will stay displayed but the mouse has ...
I am trying to bind all of the a elements on a page except for those with the title attribute of on. The code below ends up not attaching the click event to any of the a elements on the page. If I remove the not it works but of course binds to a elements I do not want the code applied to. What am I doing wrong with the not selector?
$(d...
I've got a simple list which is generated by a checkbox list. The generated code is simply this
white,blue,red,black
I need to use jquery to wrap each of these elements in a < li > tag. How do you go through the list and use the comma as a separator? I also will need to delete the comma. Sometime there will be 1 item, sometimes 3, etc...
Hello friends..
colNames: ['A','B','C','D'],
colModel: [
{ name: 'A', index: 'A', width: 90 },
{ name: 'B', index: 'B', width: 100 },
{ name: 'C', index: 'C', width: 70 },
{ name: 'D', index: 'D', edittype: 'select', width: 100, editoptions: { value: {...
hi,
i'm using a wysiwyg editor which has a .css applied - how can i get all its classes into a variable eg. allClasses = ['navi','main']?
thx
...
I'm using jquery flot and I'm trying to create a stacked bar chart, but I'm having some syntax issues... I'll post my code at the end of this, but I'm quite certain it's wrong. I do get a stacked bar chart, but there's only three columns...
Basically, here is the data that I'm working with and what I want to accomplish... The first...
what tools do you use for writing jquery code and testing/debugging your code?
...