473,538 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Forum

JavaScript web scripting language - Ask questions about JavaScript development, jQuery, Vue, React, the DOM, cross-browser scripting, event handling, OOP, cookies, client-side form validation, built-in objects like Date, String, Array and Object, performance and more.
2
434
thread by: Phillip Parr | last post Jul 20 '05 by: Richard Cornford
Hello everyone. I've written a script which bounces my IE box around the screen and then expands it to fill the screen. It works perfectly except one problem: it doesn't work on my website. My website uses cloaked redirection (which basically means my site name stays in the browser while the real page is loaded into a frame). I've tried to...
4
434
thread by: FAQ server | last post Jan 10 '07 by: Randy Webb
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type? ----------------------------------------------------------------------- It is not possible with client-side JavaScript. Some browsers accept the Content-Disposition header, but this must be added...
1
436
thread by: Vladimir Veytsel | last post Jul 20 '05 by: Fabian
Please find at the link below samples of JavaScript programming techniques along with several useful fully-functional JavaScripts. http://www.davar.net/INTERNET/JAVA-SCR/JAVA-SCR.HTM JavaScript Frequently Asked Questions JavaScript programming code patters Extract navigation bar generation (function) Local control of modification date...
3
437
thread by: Daren Perry | last post Jul 20 '05 by: Emil Mroz
You're wrong! There is a way using JavaScript, someone else came up with it in another forum.
7
437
thread by: Aquosus | last post Nov 8 '06 by: nige1
Does anyone know an excellent Regular Expression news group? If so would you please point me to it Thanks
1
439
thread by: grpmangr | last post Mar 27 '06 by: Randy Webb
hi Is ther anyway i can automatically fill out forms and submit them thru java? supposing i hav a normal txt file that contains all data that needs to be filed out into the form, is there anyway i can fill out a form and submit it automatically by providing only the URL of the form and the txt file? thanks Najla
5
440
thread by: Christian Ista | last post Jul 23 '05 by: David Dorward
Hello, I have this javascript function Function MyFunction(v,id){ document.getElementById(id).value = v } No problem with IE but not work with Firefox.
1
442
thread by: FAQ server | last post Oct 29 '07 by: Dr J R Stockton
----------------------------------------------------------------------- FAQ Topic - Why does 1+1 equal 11? or How do I convert a string to a number? ----------------------------------------------------------------------- Javascript variables are loosely typed: the conversion between a string and a number happens automatically. Since plus...
7
443
thread by: imatts | last post Jan 1 '07 by: imatts
Hi can anyone help with this little problem. I have a simple script to swap between two divs on a page. It works perfectly in Firefox & Safari & Opera. It fails in IE 6 giving Object Required error on initializing second variable var layer2. I can't get to the bottom of this. Can anyone help? <script type="text/javascript"> function...
5
443
thread by: FAQ server | last post Jan 8 '07 by: Randy Webb
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar? ----------------------------------------------------------------------- This text can only be altered by changing the URL of the page. The normal solution is to use frames, though this can introduce problems...
3
444
thread by: Markus Schuster | last post Jul 7 '06 by: Lasse Reichstein Nielsen
Hi, I have the following javascript function: <script type="text/javascript"> function HTMLEncode( text ) { text = text.replace(/&/g, "&amp;") ; text = text.replace(/"/g, "&quot;") ;
1
445
thread by: FAQ server | last post May 6 '07 by: Yanick
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? ----------------------------------------------------------------------- The oncontextmenu intrinsic event is the only safe and reliable method. Of the other approaches often presented, most depend on an alert box...
9
448
thread by: FAQ server | last post Jun 22 '07 by: Herman
----------------------------------------------------------------------- FAQ Topic - How do I run a server side script? ----------------------------------------------------------------------- You trigger a server-side script by setting any object's URL. For example a frame, window, or an Image. An image will also "swallow" the data sent back...
6
450
thread by: Robert Bravery | last post Jul 6 '06 by: Matt Kruse
HI all, I'm new toJS. I am trying to get a user inputed date into mysql. The mysql database accepts the date in yyyy-mm-dd format. The user, from South Africa inputs the date in a web form in dd/mm/yyyy format. Obviously when this is stored to the database table, the dates are not quite what one would expect. I'm wantng to change the date...
21
451
thread by: Tony | last post Mar 15 '06 by: Tony
I'm having some trouble with some javascript. I put it on the page and it doesn't work. Can anyone help?
10
453
thread by: DoomedLung | last post Sep 17 '06 by: Richard Cornford
Hey, I recently bought "The Javascript and DHTML Cookbook" by Danny Goodman. I'm at Chapter 1, part 1.9 "Reading and Writing Strings for Cookies" and was just interested in a utility function that grabs a cookie value: function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) {
1
454
thread by: Afshin | last post Jul 20 '05 by: Mike
Hi, I am trying to create a very long dynamic document with fixed width for the cells of my table iin HTML, I need to truncate some of the information that I display to fit in the table. As the document is very long I can not use the offsetwidth functionality of the cell because then the user will see the information being truncated,...
2
455
thread by: Andy | last post May 17 '07 by: Andy
<form onsubmit="call_rss();return false;"> <input type="text" name="rssurl" id="rssurl" size="40" value='Skype'> </form> The code above has the value "Skype" and only after hitting Enter/ Return key, the value is submitted. How can the value "Skype" be submitted automatically without pressing Enter/Return key? Thanks for the tips, gurus...
3
457
thread by: FluxForums | last post Jul 20 '05 by: Hywel
Place in <head <SCRIPT LANGUAGE="JavaScript"><!-- Begi image1 = new Image() image1.src = "images/imagename1.gif" image2 = new Image() image2.src = "images/imagename2.gif" // End --></script -- FluxForum -----------------------------------------------------------------------
3
458
thread by: BjoernJackschina | last post Jul 20 '05 by: BjoernJackschina
Hello, I want to create a new window but I only know the method window.open(URL,...) but it doesn't work out. I've tried the variation 'var f = window.open("",...)' but I have a mistake message. What is the way to create something like that with Internet Explorer 5.
8
458
thread by: Simon | last post Mar 16 '07 by: Dr J R Stockton
Hi everybody I have a function, called "Terug" Within that function i want to go to another function (named Frames) after let's say, 2 seconds. How can I do that? function Terug() { some code etc etc
11
460
thread by: Tony | last post May 14 '06 by: Richard Cornford
Is it me, or is document.write just about the most abused js function? Maybe, like goto, js would be better without it? Is there any good reason to use it? Because I'm having a hard time seeing any... Maybe my imagination just isn't good enough :)
6
463
thread by: FAQ server | last post Jul 3 '07 by: Richard Cornford
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what .... ? ----------------------------------------------------------------------- Whatever the rest of your question, this is generally a very bad use of the javascript pseudo protocol. It was designed so that a...
1
465
thread by: jrefactors | last post Jul 23 '05 by: Grant Wagner
Even there is no status bar and toolbar, refresh still happens in the background. Is there any way to disable refresh feature in browser?? Winopentest.html <html> <body> <a href="#" onclick='window.open("test.asp",null,"height=500,width=500,status=no,toolbar=no,menubar=no,location=no");'> open new win</a>
1
473
thread by: lejason | last post Apr 8 '07 by: lejason
I am trying to make a tree menu that is similar to this http://genieindustries.com/service_manuals.asp where you can click an list item and it will un-hide another list. It seems simple enough...but when I try it here http://www.wcumc.org/wcumc/w/content.php?type=info it works in reverse. Meaning, it starts with the list fully expanded and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.