Hi - I have a little problem with a Google Maps page I have put together. Here is the test URL -
http://projects.presencemultimedia.co.uk/impari/savings/map_test.html
I want to have multiple locations plotted on the map by referencing their UK postcode. Each marker will also have an associated label when the user clicks the marker (usin...
By now, most mainstream browsers have started integrating optimizing JIT compilers to their JavaScript interpreters/virtual machines. That's good for everyone. Now, I'd be hard-pressed to know exactly which optimizations they do perform and how to best take advantage of them. Could anyone point me to references on optimizations in each o...
My Javascript knowledge is less experienced, so I might use wrong descriptions in the following.
I have an object in a static .js file:
var Info = {
methodA: function() {
// Call methodB.
this.methodB('test');
},
methodB: function(value) {
// Do stuff
}
}
Now, in an .aspx file, I create a func...
Hi ,
Am doing the online cab booking services,
once user reached the successfully completed his journey,
we are showing the thank for booking and we show the booking id, some people they hit the F5
key, so page get refresh and the new entry will inserted ,
So i want to deactivate F% on my cashthankyou you page,
Thanks
Bharanikumar...
Is there an easy cross-browser way to get computed style of an element in PrototypeJS, without checking document.defaultView... and other properties? ...so that the code looked like
var elt = $$('.xyz')[k],
border = elt.getComputedStyle('border-bottom-width')
PrototypeJs provides getDimensions, -Width, and -Height methods that ret...
Why IE not showing BG mage like firefox in Iframe?
I do not have access of iframed page.
any CSS or javascript solution
...
jQuery Validation plugin is used to validate all form data: http://docs.jquery.com/Plugins/Validation
Have 3 select fields for birth date: day, month, year.
First: How i can make sure that user selects all 3 fields and 'invalid' icon is displayed only when one of all three fields is not selected. For example, now i have those 3 select ...
Hi all, simple question really (can hazard a guess but just need to make sure),
Just need a Yes/No answer as can't seem to claify anywhere.
Reason? Web pages for phones, where javascript support is "sketchy" among all mobile browsers, so doing away with anything javascript altogether and was wondering if there are any alternatives.
(A...
Please check out http://jsbin.com/omuqo for a demo of this issue.
When you open a panel by clicking on the handle, panels below slightly jitter throughout the animation.
In the demo, the below panels should remain completely still since all panels are of equal height. When you have a more complex accordion with panels of varying height...
Hi there
I have 2 functions in my script:
function ShowAltTag(){
var CurrentImage = $("#ShowImage img").attr("src");
if( $.browser.msie ) {
IECurrentImage (CurrentImage);
}
if ($(".ImageRoller img[src='" +CurrentImage+ "']").attr("alt")){
var alt = $(".ImageRoller img[src='" +CurrentImage+ "']").a...
Tell the similar functionality like parent
parent.document.getElementById(source).innerHTML
must equal to
other-function-name.document.getElementById(source).innerHTML
Thanks
...
Scenario is : old site which has lots of JS code already written. If user want to change all the alert messages to new age jazzy Div based alert which are very common using JQuery, YUI, Prototype... etc.
There are mainly tree JS dialogs
1. alert
To changes this its simple we just have to write new funtion which will show the div po...
I am facing following issue. I have attached tooltips with some tab titles of a dijit.TabContainer. The hover behavior is OK, but when I click on the tab, the tooltip stays visible unless I click somewhere else on the page.
On googling I got following page discussing this issue. http://ahackersnotes.com/web/hide-dojo-tooltip-after-a-mo...
Is it possible to set a button's onclick action to a javascript variable?
The idea is that we are controlling a table with javascript. Whenever one clicks on a row of that table, we update a javascript variable. That var would be the _GET var for the php script to be run.
...
Hi
I'm a php developer looking to learn jquery, with no Javascript experience.
Ideally, I would like a beginners self teaching guide in a book, that I can use as a reference.
Any suggestions?
...
I'm using this currently:
$(document).ready(function () {
$('ul#nav > li').hover(function () {
$('ul:first', this).show();
},
function () {
$('ul:first', this).hide();
});
$('ul#nav li li').hover(function () {
$('ul:first', this).each(function () {
$(this).css('top', $(this).parent...
Can anyone show me how to get to a text edit box in a html page and set its value using Java script please?
...
Hi,
While validating my JavaScript code in JSLint (www.jslint.com). I got a error I've never seen before. Is this something new ?
It tells me that:
It is not necessary to initialize 'i' to 'undefined'. On this:
var i = 0,
l = data.d.ResponseData.length,
x;
Does anyone know what this means?
..fredrik
...
I'm building a simple dropdown where I'd like to add a class to parent if UL exists:
HTML:
<ul id="menu">
<li><a href="#">Parent 1</a></li>
<li><a href="#">Parent 2</a>
<ul>
<li><a href="#">Sub 2.1</a></li>
<li><a href="#">Sub 2.2</a></li>
</ul>
</li>
</ul>
So I'd like to:
hide all nested (ul#menu > li > u...
Hey all,
am brand new to javascript and jQuery so this question might seem dumb but i couldnt find any exemple or doc on it.
I got this function for a little color animation roll-over and roll-out which works fine:
$(".box_nav").hover(function(){
jQuery(this).stop(true, false);
$(this).animate({ backgroundColor:...