|
More site info...
JavaScript | Forum profile
|
|
Forum profile page for JavaScript on http://www.sitepointforums.com.
This report page is the aggregated overview from a single forum: JavaScript, located on the Message Board at http://www.sitepointforums.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" on the Message Board at http://www.sitepointforums.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:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
167
|
571
|
1,560
|
|
Post:
|
384
|
1,494
|
3,934
|
|
|
JavaScript Posting activity graph:
|
Top authors during last week:
user's latest post:
Problem with showing my children...
Published (2009-11-27 16:44:00)
Watch this: http://css-tricks.com/video-screencasts/76-jquery-tour/ He takes you through the best and easiest way to achieve that, along with some other uses of jQuery on the site.
user's latest post:
Show a div on load then hide...
Published (2009-11-25 15:23:00)
Yes it is possible as long as the video player can send a signal to javascript indicating that the video has finished playing.
user's latest post:
Javascript Issue in a contact form
Published (2009-11-27 13:53:00)
Your JavaScript should be referencing the form fields by their id rather than their name. The name is used by the server side processing after the form is submitted. Each form field needs an id to attach its label in the HTML so it isn't like you are having to add to the HTML to get the JavaScript to work the easy way.
user's latest post:
Help using AJAX to pull in...
Published (2009-11-25 12:41:00)
What jquery does is they create a dummy div via document.createElement(), set it's innerHTML, and then try to run the selector on it. getElementById() is a method of the document object, not a regular dom element like your div, so you can't use that. You could use dummyDiv.getElementsByTagName(*) and then iterate through them, checking for the element with the matching id attribute. I haven't looked into it much, but I've...
user's latest post:
replace a class = lightbox with...
Published (2009-11-24 12:49:00)
s.rel = 'lightbox' should work (as would s.setAttribute('rel', 'lightbox')), if s is a reference to a proper DOM Element and not some other object, like jQuery tends to deal with. awestmoreland, it seems you're assuming he's using jQuery. That code won't work without jQuery. Make sure s is a proper DOM element, or use some equivalent in whatever library you're using.
user's latest post:
error 404
Published (2009-11-26 20:59:00)
I am curious in regards to using Jquery for 404 error handling. Does anyone know if it is possible to whenever someone clicks a dead link or whatever instead of getting the usual 404 error they get a lightbox type of window opening just altering them of an issue?
user's latest post:
moving items from one select 2...
Published (2009-11-25 08:56:00)
Hi all, i got this snippet from the web...but it does allow duplicate values when one move items from left or right select boxes.. I dont want that... any help apprecited.. Code: <!-- var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5); function addOption(theSel, theText, theValue) { var newOpt = new Option(theText, theValue); var selLength = theSel.length;...
user's latest post:
I found a new method of...
Published (2009-11-26 02:18:00)
It's basic browser sniffing Code: Browser = { ie : /*@cc_on true || @*/ false, ie6 : Browser.a.indexOf('msie 6') != -1, ie7 : Browser.a.indexOf('msie 7') != -1, opera : !!window.opera, safari : Browser.a.indexOf('safari') != -1, safari3 : Browser.a.indexOf('applewebkit/5') != -1, mac : Browser.a.indexOf('mac') != -1 }
user's latest post:
creating a function for button...
Published (2009-11-20 06:04:00)
any help in the sam ewuld be very helpful as i am not able to set the keypress event for other controls
user's latest post:
AJAX inconsistencies
Published (2009-11-20 21:35:00)
See these image attachments.
|
|
|
|
Latest active threads on JavaScript::
Started 1 week, 6 days ago (2009-11-15 09:23:00)
by evilunix
I would do it the other way round, and make scripts.length the default. Put your code in a function which accepts a length parameter. If this parameter isn't passed, scripts.length is the default
JavaScript Code:
var scripts = new Array ( ) ;
scripts [ 0 ] = "<b> Date: 22 Oct </b> <br />details" ;
scripts [ 1 ] = "<b> Date: 24 Oct </b> <br />details" ;
...
Started 2 days, 23 hours ago (2009-11-26 04:18:00)
by pmw57
Something like the following should do the trick.
Just change 'formId' to the form identifier.
javascript Code:
var form = 'formId' ; form. elements . dropdownName . onchange = function ( ) { var option = this . options [ this . selectedIndex ] ; var checkbox = this . form . elements . checkboxName ; if ( option. value . toLowerCase . ...
Started 16 hours, 55 minutes ago (2009-11-28 10:37:00)
by LarsK
The easiest way to do this is just simple JavaScript. Check with isNan() if it is a number and then check the range (income > 0 && income < 1000000) - that's it...
And don't forget to check on the server side as well.
Started 2 days, 19 hours ago (2009-11-26 07:39:00)
by siteguru
I've never used JQuery, but I suspect the issue is that you are not checking the CHECKED status of the checkboxes - you are just adding the numbers regardless.
Started 1 day, 14 hours ago (2009-11-27 12:35:00)
by TommiChi
You would use "paresInt", to return only a whole number from your argument "float", such as:
document.inputForm.result.value= parseInt(argument);
Started 1 day, 10 hours ago (2009-11-27 16:42:00)
by pmw57
Use the fragment identifier, the part of the url string after the # sign
You access it using location.hash
Started 21 hours, 33 minutes ago (2009-11-28 05:59:00)
by Raffles
For a start, you have a spelling mistake in the HTML bit ("fistname"). Also your JavaScript will not work because you will get an error: "firstname is not defined". That's because "firstname" doesn't refer to anything.
What you want is something more like this:
HTML Code:
<form action= "" onsubmit= "return firstnameCheck(this)" >
javascript Code:
function ...
Started 4 days, 13 hours ago (2009-11-24 14:31:00)
by crmalibu
if you want to trim the last two characters from a string
Code:
newString = oldString.substr(0, oldString.length - 2);
|
|
Hot threads for last week on JavaScript::
Started 2 days, 23 hours ago (2009-11-26 04:18:00)
by pmw57
Something like the following should do the trick.
Just change 'formId' to the form identifier.
javascript Code:
var form = 'formId' ; form. elements . dropdownName . onchange = function ( ) { var option = this . options [ this . selectedIndex ] ; var checkbox = this . form . elements . checkboxName ; if ( option. value . toLowerCase . ...
Started 2 weeks, 2 days ago (2009-11-12 12:23:00)
by SpacePhoenix
Quote:
Originally Posted by crmalibu
On slower computers/internet connections, I've noticed extreme improvement in "speed" when disabling JavaScript. Some websites get a bit too carried away with number/size of external scripts, and what types of things those scripts do.
It must be a bit of a trade off if whatever ...
Started 5 days, 12 hours ago (2009-11-23 14:51:00)
by BPartch
HTML4Strict Code:
<script src = "jquery.js" type = "text/javascript" > </script>
is looking for the .js file in the same folder/directory as the .html file calling it. Is this where you have the .js file?
Started 3 days, 23 hours ago (2009-11-25 04:17:00)
by dogFang
Much depends on how your script interacts with the document. Once an element has loaded you can reference it, you don't necessarily have to wait until the full document has loaded.
How fast your page loads ( faster interaction ) is dependent on many factors .
Started 1 week, 1 day ago (2009-11-20 11:19:00)
by Mirek Komárek
Has your application some user agent?
if(eregi("application_user_agent",$HTTP_USER_AGE NT)){
echo "javascript contens";
}
}
else {
echo "nothing";
}
Started 1 week ago (2009-11-21 04:38:00)
by Raffles
What exactly do you mean by "movement"? Moving the mouse? It is possible to interact with a webpage without moving the mouse, so you need to be more specific.
Started 4 days, 5 hours ago (2009-11-24 22:14:00)
by imaginethis
Quote:
Originally Posted by fattyjules
I've been neglecting javascript for years, doing messy cut-and-paste jobs when I've needed some javascript.
Now I'm making the effort to learn it properly.
Should I jump straight in with a framework, or get the basic language down first?
If you don't know the basics ...
Started 6 days, 21 hours ago (2009-11-22 06:05:00)
by pmw57
The radio buttons will need to trigger the appropriate actions.
The past radio button has no id, so another technique will currently be used to target it.
Be sure to place these scripts just before the </body> tag.
javascript Code:
var form = document. getElementById [ 'advertise' ] , past = form. elements . past [ 0 ] , present = form. elements . past [ 0 ]...
Started 6 days, 4 hours ago (2009-11-22 23:10:00)
by semantic7
What do you mean by isn't working ?
Started 1 day, 14 hours ago (2009-11-27 12:35:00)
by TommiChi
You would use "paresInt", to return only a whole number from your argument "float", such as:
document.inputForm.result.value= parseInt(argument);
|
|