How I can load the Google maps like this:
function loadScript() {
var script = document.createElement("script");
script.setAttribute("src", "http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAAXN1Nhid00zgr5mrYEM7MhQE7kuAsiuX3WD62vgNgdNYG4wQzhQs7fQD8XzGkuXLIejRfouX3li8xg&async=2&callback=loadMap");
script...
Hi,
I have the following HTML and Javascript. I just want to show the hidden one at a time only when mouseover a link. If the mouse is over the link "Drink", then show the hidden div below that link only and other hidden div must stay hidden.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT...
The valid() function states:
"Checks whether the selected form is valid or whether all selected elements are valid."
Which seems to imply we can test for a group of controls using a selector (we're testing controls on a asp.net form) e.g.
$('div[id$=pnlBillingInfo] .Field input').valid()
This works if all fields are required. Howeve...
Hi, I have a page with HTML anchor tags that have the title attribute set.
<a href="...." title="Some tooltip text" />
I want to detect when the tooltip is shown, and run some javascript. This is to log that the tooltip has been displayed. Using OnMouseOver isn't enough since it triggers too early.
Any ideas?
...
Hello.
I am attempting to get some information from a russian shipping website. Being a n00b to JSON/Jquery/Internets I am stuck getting the data into json format.
Following the company's API, I go to the URL:
http://emspost.ru/api/rest/?callback=json&method=ems.calculate&from=city--abakan&to=city--anadyr&weight=1
Thi...
Jquery treeview has the collapsed sprite image. I need to add my custom image in this place. I tried to change the path in the css file, the image gets displayed but only for a single node. any solution for this ?
...
I dislike having to load a new page each time I click a link, I'm thinking of building something similar to iframe.
When i click an anchor tag I want to load a div, but I don't want that div content to be loaded before I click that anchor tag.
I.e. you go to www.example.com, it loads pretty quick, then you click ‘bio’ or ‘contact us’...
Possible Duplicate:
Why does the JavaScript need to start with ; ?
I noticed many JQuery plugins start with a line that looks like this: ;(function($) {
I understand the point of keeping it private by using (function($) {, but what's the deal with that semicolon?
...
I have this test code that works perfectly except the autocomplete stops working the second time the dialog is opened. I need to open the dialog this way using html because i want it to open really fast, and this was the best way. Why does autocomplete stop working the second time?
var $container = $('#container'),
$input = $contain...
Due to some limitations, I cannot have the script tag for the Google Map API available on page load. I have tried adding the script to the page many different ways, including using jQuery to add a script tag like so:
$('head').append('<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>...
Hello,
I keep getting an error, missing { after property for the following code.
<script type="text/javascript">
$(function(){
var storage = new Array("hi","h2","hi3","h4","h5","6","7","hi8","hi9","10");
// Slider
$('#slider').slider({
max: 10,
orientation:...
I want to draw gridlines of varying frequency on top of a static image in jquery, any suggestions as to the best/easiest approach - thanks!
...
Hi folks,
this is really weird. I am able to upload files and save it in database when working locally on my MVC project (using localhost) but when the project is deployed on the server, i am getting directory not found exception (System.IO.DirectoryNotFound). It lists my local file path in the error log on the server.
I am trying to sa...
Hi I'm trying to author a jQuery plugin and I need to have methods accessible to elements after they are initialized as that kind of object, e.g.:
$('.list').list({some options}); //This initializes .list as a list
//now I want it to have certain methods like:
$('.list').find('List item'); //does some logic that I need
I tried with
...
I'm using the pretty straightforward jQuery Tools Overlay setup to load external content into the overlay. Check it out here. Basically, it works by using a standard <a> like this: <a rel="#overlay" href="content.html">Overlay</a>. When you click Overlay, content.html loads in an overlay. Nice and easy!
I'm running into trouble because ...
Hello eveybody,
I'm using jQuery + PHP + MySQL
My problem is how to save for example this div in my MySQL database using an Ajax call with jQuery to PHP.
PS. i know how to send an Ajax call with jQuery to PHP and save variables from this call to MySQL.
<div id="id-aaa"> Les ordinateurs, eux, comme on l’a vu, ont un dispositif physiqu...
How can change the following JQuery code so I can use class selectors instead of id selectors so I can use class="add" and class="container" instead of id="add" and id="container"
Here is the JQuery code.
$(function(){
$('a#add').click(function(){
$('#container').slideToggle('slow');
// prevent default action
...
So, I have an application where I have a blank table in the DOM and I load JSON table into the table dynamically with jQuery's .getJSON function. This works...most of the time.
Sometimes my table appears on the page without any data, although firebug says my table and the JSON where loaded.
Anyone have any ideas why this may happen?
...
Hello :)
Well i am currently trying to write an ajax enabled Manga reader application for onemanga using greasemonkey (more precisely js / jquery)
my problem is that i need to execute one of the inline scripts on their page to update the next page url. so what i attempted was the following:
$.get(nextPage,function(nxtHtm) // the varia...
In a particular forum, clicking the reply button spawns a new window with a text form to type a reply. I want to implement a script to create that specific text form within the main page (instead of spawning a new window). How would I go about doing this?
Here is the source code for the pages I want to implement the script on:
http...