|
More site info...
JavaScript programming | Forum profile
|
|
Forum profile page for JavaScript programming on http://www.codingforums.com.
This report page is the aggregated overview from a single forum: JavaScript programming, located on the Message Board at http://www.codingforums.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "JavaScript programming" on the Message Board at http://www.codingforums.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on JavaScript programming:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
222
|
741
|
2,170
|
|
Post:
|
609
|
2,104
|
6,325
|
|
|
JavaScript programming Posting activity graph:
|
Top authors during last week:
user's latest post:
Javascript does not recognize...
Published (2009-12-01 09:01:00)
I think you need to show the code for the object the user clicks on in order to show one div. And, yes, you really should make the default display for all of them be display: none; so that they don't all try to display on top of one another as the page is loading. You know, if all the divs are supposed to be the same size in the same place, you could do: Code: <style> div.overlay { position:absolute; left:200px; top:830px;...
user's latest post:
Help bouncing ball user input...
Published (2009-12-02 14:48:00)
Quote: Originally Posted by soulcode Ball stays inside now... But everytime we hit the send button from form the speed of ball is increased, even with the same value "10". That is because you repeatedly trigger setInterval("myFunction()", int); starting another cycle. Clear the setInterval before you trigger another one. Declare a variable tim and then: window.clearTimeout(tim); tim =...
user's latest post:
faster createElement()...
Published (2009-12-02 21:28:00)
Quote: Originally Posted by DTD13 My method assumes that I can create any element with any property that I want. I doubt. Try creating a cell with a colspan attribute and append it to a table. Furthermore, give it an id and try to change it afterward (in IE). Or, try to create an INPUT element and try to give it a name attribute. Try to submit data from that INPUT (in IE). You will encounter a surprise. IE is not able to create the name...
user's latest post:
object in JS?
Published (2009-11-27 22:44:00)
Hi All, (Another Post LOL) Ive been getting alot of help with js recently THANKS! One last thing and i shouldnt be on here for a while How would i go about doing this Code: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="750" height="550" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"> <param...
user's latest post:
Multiple star rating on one page
Published (2009-11-30 17:38:00)
Quote: Originally Posted by earthone So if Ive been a bother. Thanks again guys. Not a bother, just don't have enough information to help. Can you ... 1. Post a link to your site or test site so that we have access to the star.gif images you are using? 2. Tell us which of the 3 different scripts (posting #1, #2, or #6) you are currently having the problem with? 3. If post #2 is not working for you, what is the problem as it is working on...
user's latest post:
One javaScript stops another...
Published (2009-11-30 15:18:00)
Firebug reports that you have an error in one of them. Invalid array length. One error will kill them all. The quick fix is to remove the last addition and then you can dig into what's wrong with it.
user's latest post:
Cant do Easy javascript program
Published (2009-11-30 05:36:00)
I know I need parentheses around the condition of the if statement, but I'm getting burnt out. I'm considering deleting this part. Would you recommend the following replacement or a variation thereof: Code: form.points.value = ( input >= 0 && input <= 100 ) ? Number( input ) : "Invalid input.";
user's latest post:
Passing a value to a linked...
Published (2009-11-28 17:28:00)
Quote: Originally Posted by Old Pedant Ehhh...my fault, I guess. I missed this in your first post of this thread: Code: <form action='display .php ' ... I assume that means you have realized that with PHP you have to use [] at the end of your form field names, as in Code: <input type="checkbox" name=" schools [] " value="1"...
user's latest post:
faster createElement()...
Published (2009-12-02 20:37:00)
Quote: Originally Posted by DTD13 no it didn't...and I have to change so many of the existing property types that it is about the same, maybe a little slower. It's (create with properties) VS. (clone and change properties). Some properties wont be there at all on the cloned elements, some will be different. The extra to remove unwanted cloned properties is killing its speed. build a cached cloner, or clone the closest existing match...
user's latest post:
Multiple star rating on one page
Published (2009-12-01 12:41:00)
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta...
|
|
|
|
Latest active threads on JavaScript programming::
Started 9 hours, 28 minutes ago (2009-12-04 16:05:00)
by mattyod
I'm surprised it works in any browser.
Your jQuery references the id "#count" but your html has a div with the id "countopening".
Once you correct the id you'll probably find that IE only loads that once though. Tends to cache ajax requests rather stupidly, so often a work around is to add a random number or new date as a query string to the url request.
Started 1 day, 11 hours ago (2009-12-03 14:16:00)
by Kor
Code:
alert( arrays [foo] );
Started 8 hours, 29 minutes ago (2009-12-04 17:04:00)
by Philip M
What you require can only be done with server-side coding, not JavaScript.
It is your responsibility to die() if necessary….. - PHP Manual
Started 9 hours, 50 minutes ago (2009-12-04 15:43:00)
by jmrker
Quote:
Originally Posted by treeleaf20
All,
I have the following code which validates a form has at least one checkbox checked before it submits it. However I want to make sure that there aren't more then 25 checked on the page. How can I do this?
Code:
function validate(field)
{
for (var i = 0; i < field.length; i++){...
Started 10 hours, 22 minutes ago (2009-12-04 15:11:00)
by gusblake
You only ever get one responseText per AJAX call, but you could modify the server side script to provide you with a set of variables joined by a certain character ('/' for example).
Then perform ajax.responseText.split("/") to convert it to an array. Another option is to eval() the responseText, and have the output of the serverside script be whatever javascript you want.
Started 14 hours, 16 minutes ago (2009-12-04 11:17:00)
by Philip M
Quote:
Originally Posted by gcapp
I have a java applet on a site that I am building.
Java and Javascript are entirely different programming languages, in spite of the confusingly similar names.
If a user chooses to disable either then there is nothing you can do about it.
See: http://www.javatester.org/...
Started 1 day, 7 hours ago (2009-12-03 18:07:00)
by Spudhead
View source on the page. Does the output from the PHP still look like valid Javascript?
Started 1 day, 2 hours ago (2009-12-03 22:49:00)
by Old Pedant
Do you really mean *individual* <tr> rows???
If so, we ought to dump that overly complex code and just use ID's in the rows.
Oh...and it's clearly JavaScript. If you used PHP you'd have to go back to the server for a whole new page each time you changed anything.
If you could show some of your HTML, it would be helpful.
Started 15 hours, 43 minutes ago (2009-12-04 09:50:00)
by abduraooft
Code:
<html>
<head>
<script type="text/javascript">
window.onload=function(){
var links=document.links;
var div=document.getElementById('mydiv');
for(var i=0;i<links.length;i++)
div.appendChild(document.createTextNode(links[i].h ref))
}
</script>
</head>
<body>
<a href="http://www.yahoo.com" target="_blank">YAHOO</a>
<a href="http://www.Google.com" target="_blank">Google</a>
<div id="...
Started 1 day, 4 hours ago (2009-12-03 21:08:00)
by Philip M
Try this:-
Code:
<script type = "text/javascript">
function checkFutureDate() {
var end_year = 2009;
var end_month = 11; // months are 0-11
var end_day = 4;
var now = new Date().getTime();
var d = new Date();
d.setFullYear(end_year, end_month, end_day); // YYYY,MM(0-11),DD
var selectedDate = d.getTime(); // today or after
if (selectedDate <= now) { // valid ...
|
|
Hot threads for last week on JavaScript programming::
Started 2 days, 5 hours ago (2009-12-02 20:03:00)
by rnd me
you can make one and cloneNode(true) it, but you would still need to re-bind the events.
you can shorter syntax:
Code:
if( mOver){thisNDiv.onmouseover=mOver}
could be
Code:
thisNDiv.onmouseover=mOver;
(an empty onmouseover property won't hurt anything)
Started 4 days, 19 hours ago (2009-11-30 05:55:00)
by jmrker
Not quite your code, but it might get you started toward more success.
I did not have your star images, so I added the 'alt=xxx' code for testing.
Reduce scoring from 10 to 5 for your script.
Code:
<html>
<head>
<title>Star Ratings</title>
<script type="text/javascript">
// Modified From: http://www.sitepoint.com/forums/showthread.php?p=2 992226
// Written For: http://...
Started 1 week ago (2009-11-27 15:44:00)
by VIPStephan
Do you know why you are using the this keyword? I’d suggest you read http://quirksmode.org/js/this.html
And please don’t write <a href="javascript :…"> , that’s a terrible practice. You should always use unobtrusive JavaScript but even if you write inline JS then use the onclick event: <a onclick="revealModal('modalPage'); game();"> (and you can use whatever element you want, it ...
Started 1 week ago (2009-11-27 19:06:00)
by TinyScript
Code:
<html>
<body>
<script language="JavaScript">
<!--
var List = new Array();
List[0] = ["-","d","l","",""];
List[1] = ["-","r",""];
List[2] = ["-","w",""];
List[3] = ["-","x","s","S",""];
List[4] = ["-","r",""];
List[5] = ["-","w",""];
List[6] = ["-","x","s","S",""];
List[7] = ["-","r",""];
List[8] = ["-","w",""];
List[9] = ["-","x","t","T",""];
function recursion(resultat, pos_i, ...
Started 1 day, 7 hours ago (2009-12-03 18:07:00)
by Spudhead
View source on the page. Does the output from the PHP still look like valid Javascript?
Started 1 week, 2 days ago (2009-11-26 01:17:00)
by jmrker
The following is a 'drop down' solution, but it should give you the idea to translate to radio buttons if truly desired.
See: http://javascript.internet.com/forms...down-list.h tml
Otherwise, post the code you are trying so we don't have to start from scratch.
Started 1 week ago (2009-11-27 19:52:00)
by Philip M
I take it that you are using Firefox, which has a bug. To overcome it it is necessary to introduce a small delay:-
Code:
myfield = document.myform.myname; // note myfield must be a global variable
setTimeout('myfield.focus();myfield.sele ct();' , 10);
return false;
}
Note that in Internet Explorer, names and IDs are global variables and thus you should NEVER use a global ...
Started 1 day, 4 hours ago (2009-12-03 21:08:00)
by Philip M
Try this:-
Code:
<script type = "text/javascript">
function checkFutureDate() {
var end_year = 2009;
var end_month = 11; // months are 0-11
var end_day = 4;
var now = new Date().getTime();
var d = new Date();
d.setFullYear(end_year, end_month, end_day); // YYYY,MM(0-11),DD
var selectedDate = d.getTime(); // today or after
if (selectedDate <= now) { // valid ...
Started 1 week, 2 days ago (2009-11-25 22:01:00)
by Old Pedant
Ummm...why do you use/need a <fieldset> when you only have one fieldset in the <form>???
Or was this just for demo purposes???
I've never tried it, but I can't see why you can't use getElemensByTagName() on the fieldset. That is:
Code:
var fs = document.getElementById("Person1");
var inps = fs.document.getElementsByTagName("INPUT");
...
You existing code looks bogus, to...
Started 4 days, 21 hours ago (2009-11-30 04:32:00)
by tomws
Check your class notes for the correct usage of for loops.
Code:
for (var i =1; i = 12; i++)
|
|