javascript

Javascript: object expected on line 1 char 2

http://pastie.org/856698 Anyone have any idea why the script is causing this error? ...

Html Canvas Intelligent Drawing

I'm currently implementing a HTML canvas based webapp that features panning. Is there a way to use an auxiliary buffer to hold the presently visible area so when I pan I don't have to redraw the whole canvas and only have to draw the newly visible areas? ...

Javascript/AJAX/jQuery - Object Expected Line 1 only in IE

http://pastie.org/856698 Anyone have any idea why the script is causing this error? It doesn't throw an error in Firefox, only IE. Any ideas? A link to the final script can be found at http://www.proskimboarding.com/codingtest/Public/registration.php ...

Integrating MailChimp into E-Commerce Shopping Cart

Hi Everyone! I'm about to ask a tough question, and I apologize in advance for the fact that I'm a n00b at javascript! Basically I am looking to integrate MailChimp list signup into the WP E-Commerce plugin. If I understand correctly, this could be accomplished with Javascript where I send the data to two separate locations. I fo...

Facebook - How to get the profile picture

I try to write a simple user script to enlarge the picture when you mouse-hover it :) ( like facebook fixer, but his code is somehow too difficult for me to understand ) I don't really know how to get the real image link of profile with the thumbnail :) Real: http://profile.ak.fbcdn.net/v228/662/62/n1734060381_260.jpg Thumbnail: http://...

XHTML Validation problem within Javascript

So, I read the W3C validation FAQ about why some javascript causes validation errors but didn't seem to find an answer regarding my problem. If you try to validate http://www.proskimboarding.com/codingtest/Public/registration.php you'll receive a bunch of errors within the javascript code... anyone know of a solution for this? (mainly ...

JavaScript does not update value of input field for some odd reason...

The form is defined as: <%@ Page Language="C#" MasterPageFile="~/MasterPage1.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="Invoices.Search" Title="Search Page" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" ...

How do I set a block of text to drop to a new line all at once?

I feel like there's a simple solution to this, but I'm not really sure how to phrase it in a search, so here we go... I have a forum-like display that shows a block of text with a user image, user name, and time stamp appended to the end of the text. Many times, part of the appended section gets dropped to a new line. This is especially...

Get values of textboxes created dynamically

Hi I have a list of textboxes created dynamically accroding to the user selection on aspx page. I want to get and store into an array the value of these using Jquery, javascript. how can i do that? is it possible to loop through all the textboxes in a page? Thanks ...

Check / uncheck all checkboxes doesn't work in IE8

This javascript code does not work in IE8, but works in Firefox and Google Chrome: <% content_for :head do %> <script type="text/javascript"> document.observe("dom:loaded", function(){ // Observe toggler $('toggle_all').observe('change', function(){ var toggle = $('toggle_all').checked; $$('.check_boxes...

Google Maps API enableScrollWheelZoom() - why does it not zoom out correctly?

So I've got an issue with a Google map using custom tiles, but I've managed to simplify it to the example below. Taking the simple example Google provide with controls I've added the line map.enableScrollWheelZoom(); This gives me the simple HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1...

Implementing a game for the web using PHP/Javascript?

I need some suggestions on how to start off with this one. My end goal is to make some visually striking wheel that can revolve a set of pictures and stop randomly at some picture and display some text in the center of the wheel. With the number of AJAX libraries out there, I am pretty sure someone must have done something similar. Does ...

Mootools - how to get value of selected radio input type, from its name

Question 1: Given <input type="radio" name="foo" value="1" /> <input type="radio" name="foo" value="2" /> <input type="radio" name="foo" value="3" /> In Mootools, how do I return "2" given an input of "foo", assuming that the second radio button was clicked. Question 2: (it's related)- Given similar checkbox inputs, how do I retur...

jquery scroll function not working on elements wrapping other elements

$(document).ready(function(){ var randomId = "id_"+Math.floor(Math.random()*1000); var wrap1 = $(document.createElement('div')).css('overflow', 'auto') .width(50).height(30).css('border','1px solid black').text('a') .attr('id',randomId); var content1 = $(document.createElement('div')).width(100) .text...

parent node receives unwanted mouseout from child nodes

i have the following divs: <div id="scrollable"> <div class="item">item 1</div> <div class="item">item 2</div> </div> I'm attaching event handlers to the #scrollable div - mouseover, mousedown mouseup in order to implement a scrolling effect with the mouse dragging the div. the problem is that i get mouseout for the #scrollabl...

How do I append a variable to another variable in JavaScript?

I am running a loop, and I am trying to create a variable each time the loop runs with the number of the counter appended to the end of the variable name. Here's my code: var counter = 1; while(counter < 4) { var name+counter = 5; counter++; } So after the loop runs there should be 3 variables named name1, name2, and name3. How c...

Jquery and Extjs Simplest Tutorial

I want link to tutorial for JQuery and ExtJs which will cover following contents or Topics Note: PLease do not provide me link of their sites i know them. How to setup both of the packages. It is required as its essential. How to access a DIV element How to get all the elements in a div like checkboxes, radio buttons, div etc H...

popup inside the same page

Hi, I need to show a page of contents inside my page. ie; when i click on a link it will show 2 paragraphs inside a div as popup in the same page. that popup must have a close button in it to close that div popup. Is any one have an idea or code to help me in this Thanks. ...

Can we add javascript in IE conditional comment just before </body>

This code should i place this code at bottom of body it's in conditional comment. <!--[if lt IE 7]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta2)/IE7.js"&gt;&lt;/script&gt; <![endif]--> ...

Dynamically loaded JavaScript file and non-ASCII characters

I have the following problem: <script type="text/javascript"> alert("1. ČĆŽŠĐčćžšđ"); </script> <script type="text/javascript" src="Tst.js"></script> <script type="text/javascript"> var pScript = document.createElement("script"); pScript.type = "text/javascript"; pScript.src = "Tst.js"; pScript.charset = "windows-1250"; $("body"...