Hi
i have 2 radio buttons
and i used mootool while loading as
window.addEvent('domready', function() {
var chk="1";
if(chk==1){
$('edit-gender-0').set('checked',true);
}
else if(chk==2){
$('edit-gender-1').set('checked',true);
}
but its not working at all.
any one help me will be more appreciated... and anyother s...
<script type="text/javascript" src="prototype.js"></script>
<script>
function reload(form){
var val = $("seltab");alert(val);
}</script>
echo "<form method = post name = f1 action = '' >";
echo "<select id = seltab onchange = 'reload(this.form)'>";
$querysel = "SELECT title_id,author FROM authors NATURAL JOIN...
Hi!
I wrote this post
Music and Mathematics, finding the Natural and the Pentatonic scales.
I want to find the best programmatic aproach. A solution could be:
<script>
function getScaleIntervals(c) {
var tot = 0;
var scale = [];
while(tot <= 12){
scale.push(Math.round(tot));
tot += c;
}
return scale;...
What I'm trying to do is to create a link on the same page to a java applet link for which I don't have the parameters. Take a look at any of the chessboards at Chesscalisthenics.com
...
Preview:
In the following div i need to show a very small preview of a page.In order to do that what should be the css set to,
When i use the following code below,the preview is very big.I need to show the preview with the size of the videos on you tube(as In suggestions tab)
var url="/tools/display/" + param;
$('#preview').c...
I have an HTML file and I want to use javascript to call a JSP file.
It doesn't have to be javascript, I'm just looking for the easiest way to call the JSP file from the HTML file.
How can I do this?
Thanks.
...
Normally we have login page with username, password filed and signin button. Using the normal form based approach we send the data on and page gets post back. Now i would like to change this using the Ajax.
As Ajax too using the normal HTTP so i guess nothing in different from the existing workflow barring postback right ?
Now my quest...
Working on an AJAX website (HTML,CSS,JavaScript, AJAX, PHP, MySQL).
I have multiple javascript functions which take rows from mysql, wrap them in html tags, and embed them in the HTML (the usual usage of AJAX).
THE PROBLEM:
Everything is working perfect, except when I run the site with Firefox (for once its not InternetExplorer causin...
All,
Can any 1 of you show a small piece of code for generating a thumbnail of any website using javascript or jquery,
I had posted earlier but couldnt find any right match for my requirements.
<div id="generate_thumbnail" onclick ="generate();">
//Show thumbnail within this div
</div>
<Script>
function generate()
{
...
Hello,
I would like to know if it is possible to instanciate a class by its id .
For example we have a class extending Ext.grid.GridPanel with an id property, is it possible to instanciate the class just knowing his id (which is the component id in this case) ?
...
Hi all,
I've been looking around for a solution to this thing but I haven't found anything similar to what I want.
I've got a table filled with data from a database, and I want to change the background colour of a specific row depending on the class I'm loading in each row.
I have to display some data but as the fields to be display...
I have a website that prompt the users to enter serial number for a product.
I have one text box and the user needs to enter the serial in this format:
xx:xx:xx:xx:xx:xx
Is there any component that will enter a : after every two characters?
Or maybe I should split the text box to 6 text boxes?
Alternatively are there any other tech...
my js files are included through header. i dont want to have some .js files included in certain pages, while that particular page is loading. is it is possible.??? help me please.....
...
How to preview a website using a iframe.
i.e, the size of the iframe should be should be as of the suggested videos o youtube.
Thanks..
...
hi.
i have a website with google ads on it. i would like to make it load faster. thus i moved all the google scripts to the bottom of the page. i also have a placeholder at the location where the ad(s) should be displayed and other divs that (initially) get the ads. finally (in window.onload) i'm moving the ads that have just be fetched...
Hi,
I have 2 text boxes and a submit button.On clicking on the submit button the value from the first textbox should get populated in the second textbox.Can you help me with this.
Thankyou in advance.
...
visual studio 2008 allows c# code to be segregated into regions
is there an equivalent for javascript?
...
I'm trying to limit what our users will be able to type in inputs, using javascript/jquery.
Problem is, I have to limit this to Uppercase chars only, and numbers.
Here's what I coded previously :
$(input).keypress(function(e){
if ($(input).attr("class")=="populationReference"){
var ValidPat...
This has / may have been asked before, but, as far as I remember, the question was not satisfactory answered at that time ^^
How can I register a window or tab closing event with Javascript? I have tried body.onclose and body.onunload, and dozens others whose names I made up myself and thought they might possibly exist, but none of it w...
Disregard this question: I've simply confused <script src="..."></script> tag and <script> [some functions] </scipt> tags.
I have this function
function OnLoad()
{
ShowHideConfirmAnswers();
return true;
}
triggered by onload event:
<body onload=OnLoad()>
It works fine until I add src="jquery-1.4.2.js" to the script elemen...