$("#htxtEmoney, #htxtPoint").keypress(function(e){
var evt = window.event ? window.event : e; //for compatibility
var keyCode = evt.keyCode ? evt.keyCode : e.which;
if (keyCode == 13 || keyCode == 27 || keyCode == 8) return ; // esc, enter
if (48 <= keyCode && keyCode <= 57)
return true; // number
alert("You...
I try to write these code to make grid view through CSS:( jsbin )
var tables = document.getElementsByClassName('tableData');
var rows = tables[0].getElementsByTagName('tr');
for(var i=1; i<rows.length; i +=2) {
alert(rows[i]);
rows[i].className = "alt";
}
This only works with the tr elements has class="" . But if I want to...
Hi,
I have a large table (4000 rows, 17 columns) with which I use Sorttable. It's somewhat usable in Chrome (not so much in IE). I'd like to add some checkboxes (not on each row, just in a control panel besides the table) to show/hide groups of rows, using javascript. I'm not (so far) using JQuery or anything other than Sorttable (which...
I'm trying to display poll results using lytebox but can't work out how to pass either GET/POST variables to the page I'm calling.
Lytebox is working fine as this loads the page ok:
<a href="/polls/1/results" rel="lyteframe" title="Example Poll" rev="width: 400px; height: 450px; scrolling: yes;">Results</a>
But I want to get the val...
Hello, I have this html code
<html>
<head>
<title>JQuery Problem 2</title>
<script type="text/javascript" src="jquery-1.4.min.js"></script>
<script type="text/javascript" src="problem2.js"></script>
</head>
<body>
<div id="game">
<form onsubmit="return false">
<p>
Guess:
...
I have a URL like /admin/editblogentry?page=3&color=blue
I want to alter the 'page' in the url to 1 so that the url becomes
/admin/editblogentry?page=1&color=blue
What is the best way to accomplish this using javascript?
...
I'm trying to implement a simple horizontal navigation menu that just shows a single div for each link. It is kinda like a dropdown menu but instead of a mouseover triggering a dropdown, an onclick event will trigger the showing of a div. I want to make sure I am taking the right approach before going too much further, any help is appr...
I'm not that great at Javascript, for the record! I DO know how to use ajax. I just need a bit of help.
I'm having a hard time figuring out how to display a 5 minute countdown, and once the countdown hits zero, to run a function. I need to pass a variable to the function that needs to run. I tried SetInterval but this isn't exactly my ...
This is related to my previous question here.
I want 4 divs (absolute with z-indexes) to start off as being invisible (faded out), and when a link is clicked, the related div fades in. When the same link is clicked, the related div fades out. When a different link is clicked, the first div fades out and the second div fades in.
There ...
Should I provide these things by default or only on client request (if they are paying for these)
Try to implement graceful degradation
on JavaScript
Print css
Handheld CSS
Form validation
Combine all CSS and JS into one if possible and minified them
XML Site-map
Skip to main content link
Fluid layout
make Abbr ,Acronym if possible
Tab...
I've written some javascript in my application which are scattered around in various javascript files. Should I use the build tool to compress them or is just for new Dijits you create?
...
Hi all,
I am trying to implement the same scrolling effect in the apple iphoto album. Hope you have seen in apple iphoto that when we move the mouse over the album, the images inside it will be shown one by one. Anyone knows how this is implemented.? i am trying to implement the same in my HTML page.
Please Help
Thanks,
Shibin
...
I've to write css for a simple/ horizontal menu for a CMS and i've to write css as if client will add subpages to main page and subpages of of subpages
I mean right now it's simple navigation no dropdown but in future it can single level dropdown or multilevel dropdown
and if navigation will have dropdown then dropdown links should be ...
Hello.
I'm creating a dynamic map with the Google Maps API and I'm getting hard to understand errors from only certain markers. My page is located at:
http://dmatesic.com/RaC/Customized%20Google%20Map/google_map.html
My (long) java script source file is located at:
http://dmatesic.com/RaC/Customized%20Google%20Map/js/google_map.js
E...
I'm working on a script where all I want it to do (right now) is redirect the user based on which button they press. Eventually it will take form input and incorporate that into the redirect, but right now I'm just trying to get the buttons to send the user off to the appropriate site. However, My redirects aren't working.
<html>
<hea...
Hi
How do I pass a byte array from javascript to ActiveX control.
My javascript will call WCF server (method) and that method will return a byte array.
After that I need to passs this byte array to the ActiveX control.
Could anybody provide me a solution for this.
...
I have a requirement to have a universe type menu, where there is a main item in the center, and "X" amount of items around it. (ie: sun with planets).
I have searched high and low for an example, and all of the search results points to using css, but this requires manually figuring out the position of the items.
How can I create a men...
Hi Guys,
I am using this script in prototype
Event.observe(window, 'load', function() {
$('li.home').setStyle({
padding-top: '10px'
});
});
And it gives me the error
missing : after property id
padding-top: '10px'\n
Not really sure what I am doing wrong ?
...
I'm try to create a simple form that spits out a measurement. For Example
32 B should be (32+5)=37
I'm not sure whats wrong. Please help~
Thanks so much!
<HTML>
<HEAD>
<TITLE>Bra Size to Chest Size</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function CalculateSum(Atext, Btext, form)
{
var A = parseFloat(Atext);
var B = parseFloat(this.Cup...
I'm trying to create a JS-script to make modifications to add a footer to HTML -documents on the fly. The idea is to append a div-element at the end of the document to contain the footer, and to provide a floating fixed footer, I also need to have all of the other content wrapped in a div, basically I need something like this:
<html>
<...