I'm having trouble showing and hiding a tag on my page.
When the page loads I have
<a id="mylink" class="hiddenClass">...</a>
hiddenClass has display: none
When a certain event occurs, I use javascript to try and show the element in block style
document.getElementById("mylink").display = "block";
It doesn't show it. When I aler...
I am developing a web application where users can draw their own images in a web page using canvas. After it's drawn, this image should be shown in other users' browsers' canvas. Same thing with updates.
I am only using javascript. How can i solve this problem using System.net and Asp.net?
...
When the content of CKEditor is larger than the height of textarea, the scrollbar appeared. Can I disabled the scrollbar and fix the content by enlarging the textarea automatically.
...
I am looking for small exercises to do with javascript. I found a few, such as http://www.ling.gu.se/~lager/kurser/webtechnology/lab4.html, which was great, and zipped right through. I also found http://code.google.com/codejam/ which was AWESOME but each one is taking about a day for me.
tl;dr : Im looking for mid level programing exer...
Is there a way so that pages in <iframe> tags can't use javascript?
I mean, turn off javascript on iframes only but not on the browser.
...
I have a SELECT which looks like this.
<select id="mySelect"><option value="">Please select</option></select>
At a certain point, my javascript sets the OPTION as follows:
var elSel = document.getElementById('mySelect');
elSel.options[0].value = myValue;
elSel.options[0].text = myText;
The problem is that you have to click the sele...
Can all JavaScript functionalities be theoretically replaced with Silverlight?
If yes, I can save my time and just learn Silverlight.
...
Hi, is that possible to call Javascript function without supply all the parameters?
I come across a line of code doesn't make much sense unless I assume that in Javascript supply all the parameters are not required?
The parameter been missed is a boolean value, so could I further assume that undefined boolean value in Javascript equal ...
I have a 3 fields:
Total amount
Recurring amount
Occurrences
A user will always enter occurrences, but has the choice of entering either total amount or recurring amount.
The equation for this is really simple:
Occurrences * Recurring Amount = Total Amount
I need help making a Javascript function which if the user starts to type in th...
Hi all,
Could anyone please tell me about how one might go about implementing your own custom tags in JS pages served by ASP.NET?
Basically what I am looking to achieve is a way of creating "includes" for my Javascript files by adding some code such as.
//Include Src="MyJavascriptFileLocation.JS"
And then having the ASP.Net handler ...
What object does the appendChild() function belong to?
...
I've been getting into Pylons lately and was wondering how I could go about easily integrating AJAX functionality into my websites.
Basically, lets say I had a login form that usually gets accessed via site.com/user/login. Now, generally, this will be handled via something like:
class UserController(BaseController):
def login(self):...
Our Company uses a closed sourced shopping cart system for its e-comreace web site. The check out page is generated by a cgi script that I can not modify. I would like to replace the form validation script it generates with my own. The script I am trying to replace is the second script in the document. I have inserted the following s...
I am wondering if there is any way to dynamically rotate an image or invert an image using a client side solution? I don't care if it is plain old javascript, jquery plugin, css. I just wondered if there was some way to do this dynamically on the client side rather than having to write server side code to do for each image which I can do...
I'm working on a jQuery plugin and can't seem to override the default settings, here's a snippet of the plugin.
$.Auction = {
defaults: {
parentId: '#span',
bidButtonClassName: '.live_bid'
}
};
$.setAuction = function(options){
startAuction();
}
function star...
I have the following code:
HTML:
<input type='text' class='a' />
<div class='inst' tag='a'></div>
<input type='text' class='b' />
<div class='inst' tag='b'></div>
<input type='text' class='c' />
<div class='inst' tag='c'></div>
JS:
$(function() {
$('.inst').click(function() {
alert($(this).attr('tag') + ' clicked');
...
Hi,
I am working on a page that concurrently calls 3 (or more) of the same jscript function. I am using a function that is tested and works with multiple concurrent ajax requests (found on the web, it works because I am now facing this new problem).
The html is just this
<div id="1"> <script> ajax2(); </script> </div>
<div id="2"> ...
I decide to write a plugin, but there is a moment I don't know,and i can't find documentation about it so I decide to ask here.
For example when we wrote
$("#some_element").nameOfPlugin();
There are a lot of functions in nameOfPlugin, but how some_element connects with the plugin?
An example, or a link to some documentation will be...
I have a parent div tag like this
<div class="top-news-heading">Top News Items<br>
<ul>
<li>
<div id="xlaANMzone_4f503f">
<div id="4f503f">
<div align="left" style="width: 100%; padding: 0px; margin: 0px;">
<a href="http://www.onesite.com.au/news_manager/templates/?a=1231&z=44"> News 1</a><...
How can I implement a simple virtual keyboard for a website? The only thing I need is a number pad (0-9).
I hope there is a way to implement it as simple as possible using the JavaScript.
...