what is the resulting value of this variable?
This is javascript var result = "2" + 5 + 5; what would the value of result be? im guessing the 2 isnt taken into consideration? would it be 210? Thanks ...
This is javascript var result = "2" + 5 + 5; what would the value of result be? im guessing the 2 isnt taken into consideration? would it be 210? Thanks ...
We have a flash video that was created for our project, we dont the source so we have to work around the compiled flash file. We are going to host the video on our domain and the video creates a sol cookie (flash cookie) file to store how far the user has proceeded though the video. So my plan is to access this cookie to see how far th...
Hi. I have a javascript that, when you finish to watch a video, it redirect you in another website. It runs good on IE and Firefox, but not run on Google Chrome and Apple Safari. Can anyone help me to find the problem? Many thanks. var currentState = "NONE"; var previousState = "NONE"; var player = null; function playerReady(thePlayer...
I am working on ASP.NET 3.5, c#, visual studio 2010. I have made a master file and a default page that uses this master file. I have placed a couple asp:contentplaceholders in the master and corresponding code in the page that uses this master. I have also inserted JavaScript like this in the content page (and not the master): <asp:Cont...
I'm trying to setup an exit survey so that when a user leaves our checkout page they are prompted asking them why they're leaving. Is this possible? I've spent some time on Google but it appears as though the only solution is a simple browser-controlled confirm-like prompt. Is this true? update The following confirm dialog never app...
I just started to investigate mvc on javascript client side (JavaScript MVC). Everything looked great until I got to form submitting :) View part won't do it, that's simple. Event is attached in Controller, so Controller is good place to validate form data, but I'm not sure I want my Controller to know specific server address (were to po...
Is there a way to programmatically within javascript call the native click event of an tag? The .trigger('click') or .click() functions will not work, because they are triggering the onClick event of the link and not the event that follows the URL. I need to programmatically click a hidden link and follow that link to a new tab within t...
Hi So I'm changing the css with jquery and I wish to remove the styling I'm adding based on the input value: if(color != '000000') $("body").css("background-color", color); else // remove style ? how can I do this? Note that the line above runs whenever a color is selected using a color picker (ie. when mouse moves over a color wheel...
Given the following API call in Curl, how would I do this in JQuery? curl -u #{api_key}:x -X GET https://#{your_account}.batchbook.com/service/people.xml ...
I am trying to move a div Left a specified amount of pixels I'm using a slider that I got from here: http://carpe.ambiprospect.com/slider/archive/v1.3/ So from the example my div looks like this: <div class="horizontal_slider" id="your_slider_id" style="left: 0px;" onmousedown="slide(event, 'your_slider_id', ...
In Google Closure Compiler I get the warning WARNING - dangerous use of the global this object Here is an example. The error line and offset refers to the beginning of the word this function aToggle() { if(shown) toggle.show() else toggle.hide() $(this).text(shown ? 'Click to hide' : 'Click to show') shown = !shown...
I am trying to integrate a google spreadsheet into a google visualization using google datasource. The code that I am trying to execute is below. I am not getting an error alert or anything to output from this script. <script type='text/javascript'> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadC...
I love how Google Closure compiler will optimize symbols in code. However, I have not found a good way to define public, exported functions that take configuration objects as parameters. Consider this code snippet: goog.provide('foo'); goog.require('goog.dom'); /** @typedef {{ * id : string, * clazz : stri...
Hello I am having an issue using the proj4js library. Here is my source: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="lib/proj4js-combined.js"></script> </head> <script type="text/javascript"> function go() { var lon = document...
I'm wondering if it's possible to use jQuery's bind() to fire a custom event when an arbitrary function is called. Something like, /* when cmsPlugin.func() is called, fire myCustom.func() too */ $.bind( cmsPlugin.func, myCustom.func ); We're using the Lightbox2 plugin for Drupal on a site. When the lightbox is displayed, I want to f...
Hello Friends, We implemented one concept in Flex and now would like to integrate with JavaScript. Earlier we integrated an Applet code but now, we developed the concept in Flex, however, I am unable to integrate the concept in java script. Can anyone help me out with the procedure to integrate flex swf file in java script ? Here is ...
I'm currently building a simple app that overlaps one image on top of another. The top one needs to be draggable and resizable. Initially I thought jQuery UI would be a good idea, there are two main issues with it: For some reason, Chrome doesn't like both behaviors even when they're imposed to different elements. I need 8 handles, jus...
This doesn't happen in Chrome or Safari. It's a little bit noticeable in IE8, but very slight (and gray). The outline I see on both my monitors is greenish. I don't know if it's an issue with my graphics card or with Firefox's rendering of fonts at different opacities. It happens whether or not the style is set CSS statically, not using...
Hello, Looking to add a PNG Fade at the bottom of the our survey questionnaire box. The short questions won't show them, but for the longer ones with a vertical scroll I would like to add a slight fade at the bottom to help indicate there is more below. The scroll bar should be enough to notify people, but some people need a little more...
I'm using jquery.load() to dynamically load sections of a page. But I'd like the included sections to be able to execute script. A simple <script> alert("hello"); </script> doesn't run when I AJAX it in. Is there another way to dynamically load content such that the scripts will run, or a way to manually run scripts in the inc...