473,769 Members | 4,470 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.
4
28,860
thread by: valhalen | last post Mar 12 '08 by: valhalen
Hi, I am trying to redirect the user to another page (other than the previous one in the browser's history) when the browser's (IE's) BACK button is clicked. I found this snippet, but am finding it difficult in getting it to run :( if (history.previous) { document.location="page_to_go_bak_to.html"; } Could any of you please provide a...
5
1,322
thread by: Deepan - M.Sc(SE) - 03MW06 | last post Mar 12 '08 by: Deepan - M.Sc(SE) - 03MW06
Is it possible to use MySql DB inside a javascript function? If so can anyone show me with some help. Thanks, Deepan
1
1,689
thread by: ashima515 | last post Mar 12 '08 by: gits
Hi.. I have made a drop down list...On selecting any of the option i want to display a table. Now the number of rows in the table depends on the selection. I am able to create a table with fixed number of rows.The servlet returns a array of string and i am able to display for fixed number How can i create it dynamically? Pls reply ASAP
3
1,435
thread by: mylog | last post Mar 12 '08 by: gits
I have a problem regarding open the enlarged image in a new window. What I am facing problem is I have to open put the image in the div from Javascript which I have done well and now what I need is when the user clicks on the image the image should be displayed in a new window. I have also tried this by using href option but when I put the...
4
2,701
thread by: somuchbetta | last post Mar 12 '08 by: gits
Hiya, Does anyone know any simple JScript code to validate a numeric field and also the length of the data that should be entered into the field. e.g. 12345 - the user can only enter numeric fields and the lenght of the value should be five (no more and no less) Thanks
1
1,547
thread by: timmehtong | last post Mar 12 '08 by: acoder
Can someone help me on this. I got part of it done but i need help on the last part. What I'm trying to do is make the pictures from the smaller size go bigger and take up the given table area and then when i press it again it will reduce back to its previous size <Tr> <td align="center"...
1
1,042
thread by: timmehtong | last post Mar 12 '08 by: acoder
I figured out my picture problem but this new one i have no clue on. Here's the scenario. There's 5 buttons and 1 blank area at the bottom. I press the first button and a bunch of pictures show up there. I press another button and new pictures takes that place. Question is how do i have 5 buttons that will show like lets say 10 pictures in the...
1
1,157
thread by: Shana | last post Mar 12 '08 by: acoder
Hi all, can anyone answer my query: Actually i making changes in my javascript code and when i am running my page in the browser it is not reflecting the change immediately. Sometime it reflects after 20 mins or some time 2-3hrs or more. Can any one tell me the reason behind it. my javascript is written only for IE and i have a IE browser...
1
1,457
thread by: aishswami | last post Mar 12 '08 by: acoder
Hi i face trouble in comparing two dates in loop using java scripts... give me suggestion abt the problem...
6
2,561
RamananKalirajan
thread by: RamananKalirajan | last post Mar 12 '08 by: RamananKalirajan
Can any one please help me out in calculating the no of weekdays between two givendays using Javascripts I tried in many way but I cant get the solution. The date format I am using is DD-MON-YYYY. Please help me out
3
2,606
sunbin
thread by: sunbin | last post Mar 12 '08 by: acoder
Hi, I am having in a Trouble when working with dynamic checkboxes (i.e. checkboxes with the same name, e.g. <input type="checkbox" name = "check" value="dynamic integer value">) I have submitted an HTML form (which contains dynamic textboxes and dynamic checkboxes with a Post Button(input type="button")) by using Ajax function....
7
4,566
thread by: carllucas | last post Mar 12 '08 by: mrhoo
I wish to create a textarea which will extend its height according to how many lines there in it so that one won't need to scroll. To do this I have created a textarea thus: <textarea id="myText" cols=10 rows=1 wrap="hard" style="overflow-y:hidden; width:50%; height:25px;" onKeyUp="wordWrap()"></textarea> Everytime the user type in the...
3
1,409
thread by: SirCodesALot | last post Mar 11 '08 by: SirCodesALot
Can someone help me with this syntax, I have the following javascript object: function foo() { this.myFooVar = 0; this.doThis = function (){ var ao = new AnotherObject(); ao.onReadyStateChange = function(){ if (this.myFooVar == 0) <----------- Here is the
6
972
thread by: phub11 | last post Mar 11 '08 by: rnd me
This seems a really simple question to answer, but being fairly new to JS, I have no idea how to do it: I'd like to insert a string which contains JS commands set by one function into another function. Below is sample code which hopefully explains what I want to do: func1 () { ---blah--- if (t == 1) { test = " if (j1=="right" && i1<24)...
5
1,295
thread by: greendoc | last post Mar 11 '08 by: acoder
http://www.fiendish.demon.co.uk/html/javascript/hidetablecols.html This example is exactly what i need, but it's have a bug when using Opera (9.25 on my computer) Does anybody now some other code like that?
2
2,571
thread by: CpVermont | last post Mar 11 '08 by: CpVermont
Good morning, I didn't see a forum for Google Maps so I figured this would be the best place to post. My question has more to do with geocoding than JS, but I will be using JS to perform the search and the calculations. First of all I want to convert miles to lat lng. Say my Lat is 43.5643 what would be the Lat's 5 miles in either direction. ...
1
1,952
thread by: empiresolutions | last post Mar 11 '08 by: hsriat
I'm looking for a image zoom and pan script. My first thought is something using AJAX. I will accept Flash suggestions as well though. The script i need is for viewing only, not any type of resize on upload or anything. Thanks much.
4
3,161
thread by: sunita jadhav | last post Mar 11 '08 by: acoder
How store the previous value of a variable when i use onkeypress event in javascript
3
7,440
thread by: bsonline | last post Mar 11 '08 by: gits
I want to use history.back(-1) and refresh the page at same time .. like with history.back(-1) event when the destination page is displayed at that it also be refreshed. is this possible ?
3
2,790
thread by: camdev | last post Mar 11 '08 by: camdev
I have a form with 2 radio buttons and multiple checkboxes (see example below). The one radio button indicates all and the other radio button indicates the user has chosen specific options (checkboxes) from a list. Can I use javascript to automatically select the 2nd radio button if the users clicks on any of the checkboxes? <form name=form1>...
3
1,824
thread by: omhingmire | last post Mar 11 '08 by: acoder
Hi, I have 1 window which I want to open in full screen after clicking button or image. just like a windows media player.. Anybody can help me.. Thanks in advance
3
2,256
thread by: Natygan | last post Mar 11 '08 by: acoder
Hi, I've got a Web page which can become a parent window : some links use "window.open" to open the desired link into a new child window. This parent window has got an auto-refresh functionality (<meta http-equiv="refresh" content="60">). My point is that when I'm looking at the child window, I don't want the parent window to take the...
7
4,213
thread by: saathujaya | last post Mar 11 '08 by: acoder
Hi, I'm new to javascript.I want to draw line,circle using JavaScript vector-draw library.Following is my coding,but it doesn't work.Please help me to improve that.... <html> <body> <script type="text/javascript" src="wz_jsgraphics.js"></script> <div id="myCanvas" style="position:relative;height:250px;width:100%;"></div> <div...
1
1,021
thread by: priyadharshni | last post Mar 11 '08 by: quest313
Hi frnds.. Am suffering with date validation code in java script... give me some suggestion and also code abt comparing two dates... regards... priya...
5
1,557
RamananKalirajan
thread by: RamananKalirajan | last post Mar 11 '08 by: acoder
I am currently working on a Typical Project, in which I have a requirement such that i have to fetch a data which is in CLOB format that holds XML Element. I am passing that value as a String to Javascript through AJAX. My need is I have to convert that String to XML or use that String and print the XML data in a Table dynamically Please can any...

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.