Hey there, I have an issues/bug when trying to have a v3 and v2 google maps on the page at the same time.
The core of our application uses v2 of the API and adding some new functionality we decided to use v3 of the api since v2 is deprecated. So I'm dynamically loading the v3 version of the api in another "tab" on the application.
The...
Given the following:
<div id="bigchuck">
<p>blah blah blah.</p>
<p>yada yada yada.</p>
<p>Tada. Bing bong the witch is dead. Door bell.</p>
</div>
How can JavaScript/JQUERY find the last sentence "Door bell" and wrap it with a tag, to result in:
<div id="bigchuck">
<p>blah blah blah.</p>
<p>yada yada yada.</p>
<p>Tada. Bing bo...
For example:
<a href="/" title="Go to homepage">Homepage</a> text after link;
<a href="/" title="About">About</a> text after link;
<a href="/" title="Contact Us">Contact Us</a> text after link;
No problem: I can remove the link with:
$("a:contains('Homepage')").remove();
My question: How to remove the text after the link previously...
I'm trying to create a page where there are two dropdown menus, and then when the user presses submit, it calculates a price based on the data given from the dropdown menu. It needs to take either 1 or 2 from the first dropdown menu choice, multiply that by the value of the second dropdown menu choice, multiply that by 0.2, and output it...
I'm using jQuery to bind to all links on the page (I'm using the 'click' event, but have tried various combinations of 'mousedown' and 'mouseup',together with bind() and live() to no avail).
I can intercept the click no problem (with all the above methods). What I am trying to do is send some data via a GET request, and when it complete...
Hi,
I posted http://stackoverflow.com/questions/3278074/alert-with-jquery-on-button-click but when I try to comment or click the Solution thingy nothing happens(?). I had forgot a "
However, I now have
$("input[value='OK']").click(function() {
if ($("input[title='Start Date']").val().length < 1)
{
$("input[title='Start Date']...
I will put my code in a simple way, but if any good soul wants to help the code is |on Github| /lib/inmotion/editor.js(line 99)
editor.js
function Editor(){
var instance = this;
this.key_frames = [] // a list of key frames
this.kf = null // the current KeyFrame
function notice_click( click ){
instance.kf.add_bone( 1 ) ...
If session storage lasts until the browser is exited, and iPhone/iPad does not exit mobile Safari, then how is sessionStorage handled? It would logically seem to be equivalent to localStorage, but it seems like there would have been a workaround or exception for this. Does anyone know how this is handled?
Thanks!
...
How do you guys make "classes" in JavaScript!?
I am using:
function classFoo()
{
var classLevelVariable = 0;
this.classFunction = function()
{
alert("The classFunction has been called.");
classFunction2(); //Crash. classFunction2 is "undefined."
}
this.classFunction2 = function()
{
alert("classF...
I would like to ask some logic question here.
Let say I have a for loop in javascript to remove the whole items:-
var i = 0;
for (i=0;i<=itemsAll;i++) {
removeItem(i);
}
I do not want to remove item when i = current = e.g. 2 or 3.
how do I or where do I add a if-else statement in this current for loop?
Please help, anyone?
...
I have a simple form.
Input fields, checkboxes, radio buttons and finally SUBMIT button.
I use jQuery to perform AJAX validation, however when a user presses ENTER inside the input field it submits the form!
How do I stop this from happening on this form (not all input fields)?
...
Hi,
I don't know much about web app dev, and I want to make make a div always showing on the left most side of the browser window, like the red 'feedback' of user voice, would you give me some hints? thanks!
...
I have there is a table showing the last 10 news. But when I want to put any new command to the news appears in the td blinks or flash bgcolor
...
How many arguments are there for confirm box?
What does var del=confirm("Are you sure?","Delete",""); means?
...
<!--
88 88 88
88 88 88
88 88 88
88 ,adPPYYba, 88,dPPYba, 8b,dPPYba, ,adPPYba, 88
88 "" `Y8 88P' "8a 88P' `"8a a8" "8a 88
88 ,adPPPPP88 88 ...
It seems like a good idea to me. or add the additional features to Javascript itself?
...
Hi,
I have a table in HTML. The contents of this table are dynamically populated. Every row of the table has text boxes and one checkbox. When the page is loaded, all the text boxes in the rows will be in a read-only state.
Now, i want to change the state of the text boxes in a particular row to editable, if the check-box in that row i...
hi all,
well i have a form in which email and captcha validation was there but now i want to do some thing like if captcha is incorrect or left empty than my form must not reload the page i.e all those field which are already been filled out must not get blank.
...
I have the following animations in my web page:
$(".anim-item").not(this).animate({
opacity: 0,
}, { queue: true, duration: 1000 } , function() {
// Animation complete.
});
$(this).animate({
left: 200,
}, { queue: true, duration: 1000 } , function() {
// Animation complete.
...
Hi I make randomly calling multiple ajax calls.how i can check all ajax calls are completed and values get loaded in combox and multiple boxes,PLease give any solution other than ajax status,Any javascript event which triggers when all elements loaded???,I tried prototype document.observe("dom:loaded", function() but its not working for...