I just need the client-side JavaScript to be able to send a string value to the ASP.NET server app. What's the common opinion on this process?
...
I'm working with a business intelligence tool that only gives me access to a deeply nested iframe to add code. Ideally I would like to use jQuery and/or plain old JavaScript to modify the left and position CSS of a div that is 3 iframes above my IFRAME.
I have access to add JavaScript/HTML to divArea0_1 within the reportiframe IFRAME....
I have the following code that presents the user with a preview of the image they're trying to upload and works really well in FF:
var img = document.createElement('img');
img.src = $('#imageUploader').get(0).files[0].getAsDataURL();
The problem is, getAsDataURL() only works in FF. Is there something similar/a workaround for this kind...
So, I am working on teaching myself Canvas (HTML5) and have most of a simple game engine coded up. It is a 2d representation of a space scene (planets, stars, celestial bodies, etc). My default "Sprite" class has a frame listener like such:
"baseClass" contains a function that allows inheritance and applies "a" to "this.a". So, "var aTe...
I am trying to get my status from facebook using the javascript api. I have the following code:
<div id="fb-root"></div>
<div id="data"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
(function(){
FB.init({
appId : 'SOME ID',
status : true, // che...
I'm trying to get a color picker javascript widget working in a page with a bunch of "stuff" in it that I can't change. Some of the "stuff" is causing the color picker to appear well below the link when clicked. I've reduced it to a simple example below.
<html>
<head>
<script type="text/javascript">
function setPos(aname,dname) {
...
It seems that in Javascript, if you have a reference to some DOM element, and then modify the DOM by adding additional elements to document.body, your DOM reference becomes invalidated.
Consider the following code:
<html>
<head>
<script type = "text/javascript">
function work()
{
var foo = document.getElementById("foo");
alert(foo ==...
I have a select list which has a function with a jQuery .post bound on the change() event.
<select id="location">
<option value="1"></option>
<option value="2"></option>
</select>
$('#location').change(location_change);
function location_change(){
var url = '';
$.post(url, callback);
}
What I would like to happen is other co...
Hey everyone,
I've been trying to use http://livepipe.net/control/tabs
to get some javascript tabs up and running on my rails up.
I'm really just trying to figure out how to install this... and I don't see how I'm running into any issues at all.
Here are the steps I've taken:
put tabs.js in my scripts folder
made sure the layout is...
hi
i have a page x which is nothing special. i also have a page y with a form -> dropdown-field.
Now i want to place a link link from page x to page y whose link will also select the third value of the dropdown.
The sample is descriped easier than it is in reality just to get to the point.
How is that doable?
Regards
...
I want to build web page with "Graceful Degradation". That is, the web page functions even javascript is disabled. Now I have to make design decision on the format of AJAX response.
If javascript is disabled, each HTTP request to server will generate HTML as response. The browser refreshes with the returned HTML. That's fine.
If javasc...
Hello All-
Do y'all see anything wrong with my code below? I want my image to appear immediately after page opens but it only opens after the report is run. If this looks complete then could javascript help? Please let me know. Thanks.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectionReport.aspx.cs" Inherits="Geoco...
I have implemented an XMLHttpRequest() call to a standalone html page which simply has an html, title & body tag which Google Analytics Tracking code.
I want to track when someone makes a request to display information (i.e. phone number) to try and understand what portion of people look at my directory versus obtaining a phone number t...
I have been studying the ECMAScript specification and have found that it is extremely hard to read and understand. I constantly have to backtrack to keep concepts in my head. When reading the C# specification I am able to study components of the language without constantly moving around the document.
ECMAScript Specification
C# Specifi...
I know this has been asked before, but I'm having a hard time setting up JS on my Django web app, even though I'm reading the documentation.
I'm running the Django dev server. My file structure looks like this:
mysite/
__init__.py
MySiteDB
manage.py
settings.py
urls.py
myapp/
__init__.py
...
Say I have a website which shows the user ten images and asks them to categorise each image by clicking on buttons. A button for "funny", a button for "scary", a button for "pretty" and so on. These buttons aren't exclusive. A picture can be both funny and scary.
The user clicks the "funny" button. An AJAX request is sent off to the dat...
as mentioned on this site
Note that while JavaScript files are
not reliably cached by browsers, CSS
files are.
http://www.websiteoptimization.com/speed/tweak/http/
...
When I called this function to enable a validator from client javascript:
`ValidatorEnable(document.getElementById('<%=valPassportOtherText.ClientID%>'), true); //enable` validation control
the required validation control immediately performed it validation, found the value in the associated text box blank and set focus to the textbo...
Hi
I am using an embedded flash movie in my web page. I would like to show some alerts on the page when the movie has played for x seconds, pause the movie while the user views and dismisses the alert and start playing the movie again after that (or the user can press the play button, not important)
The important parts being - the app ...
I need to access this from my setInterval handler
prefs: null,
startup : function()
{
// init prefs
...
this.retrieve_rate();
this.intervalID = setInterval(this.retrieve_rate, this.INTERVAL);
},
retrieve_rate : function()
{
var ajax = null;
ajax = new XMLHttpRequest();
...