473,796 Members | 2,640 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
1,055
thread by: kim | last post Mar 16 '08 by: Dr J R Stockton
Hi there I hope i am in the right forum here. Once i visited a website - where i could insert my (or any) url in a form field. The funny thing was, when i submitted the url that i have inserted in the form field - The same url could be viewed in a new window - BUT in rotated mirror
7
1,637
thread by: injia | last post Mar 16 '08 by: acoder
I have my server request working but it will only make the request once. onclick calls the ajax function but only once. when i change entires in the form and hit the button nothing happens Here is the code: <html> <head> <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function...
6
1,953
thread by: raknin | last post Mar 16 '08 by: acoder
I am creating a dynamic list on the server using php file,when I run the PHP script in all 4 browsers (IE 6, Firefox 2, opera and safari 3) every think go Ok and the list is created. but when I call the php script from the browser using Ajax, the list is created fine in IE and Opera but on Firefox and safari I got the following error: ...
11
1,867
thread by: keydrive | last post Mar 16 '08 by: acoder
I understand there are several ways to save checkbox information. The way that best fits this application is validating on the divID but the function is still not working. function checkCB() { var inputs = document.getElementById(Filtered).getElementsByTagName('input'); for (var i=0; i<inputs.length ; i++) { ...
9
1,344
thread by: Tarik Monem | last post Mar 16 '08 by: acoder
Hi guys, it's me one more time today. I have a PHP file echoing an array back to a javascript file. Here's the Array being generated: $myTempArray .= "{SHOWS:\"".htmlentities($shows_new2)."\",GENDER:\"".htmlentities($gender_new2)."\", AGE:\"".htmlentities($age_new2)."\",FIRST_NAME:\"".htmlentities($user_first_name_new2)."\",...
1
1,169
thread by: MarkNicholson82 | last post Mar 16 '08 by: ronverdonk
Hi I have a series of 3 listboxes. When a user selects one option from the first the second listbox could change depending onthe option selected in the first etc. Is there a way to check a value of one listbox, and then assign a second listbox a value? Thanks Mark
2
1,743
thread by: Xu, Qian | last post Mar 16 '08 by: RobG
Hi All, I have defined a function function fct(arr) { ... } When I call this function, I prefer to write fct(Array(item1, item2)); But if I write fct(new Array(item1, item2));
8
2,562
thread by: alexscript | last post Mar 15 '08 by: alexscript
<HTML> <HEAD> <SCRIPT type="text/javascript"> var ld; function func1() { var l=document.form1.loc.value; var d=document.form1.degree.value; ld=l+d; func2();
1
1,219
thread by: beenben | last post Mar 15 '08 by: gits
function calculate(){ number= parseInt(numberof); var price=4; total=price*number; alert("Your total is $" + total); return true; };
6
27,204
thread by: abhishekbrave | last post Mar 15 '08 by: abhishekbrave
i have created following drop down box for displaying year... i want to populate the drop down box upto current year.. and need to write a java script for this .. any pointers in this regard will be very helpful <select name=year> <option value=2008>2008</option> <option value=2007>2007</option> <option value=2006>2006</option> </select>
11
17,186
thread by: raknin | last post Mar 15 '08 by: raknin
Hi, Is there any way to call html file from a javascript. What I want to do is as following: 1) send information to sever and checkit by using Javascript. 2) if everything is OK. call another html file inside the same javascript. How it can be done.
4
2,069
thread by: Brian Cryer | last post Mar 15 '08 by: Thomas 'PointedEars' Lahn
Out of curiosity, when I use onclick="...some JavaScript ..." why do I not need to flag that its JavaScript, but when I define a script on a page I do need to tag it (<script type="text/javascript">...)? Is it part of the standard that event handlers (onclick etc) are always JavaScript? Just curious. TIA. -- Brian Cryer
1
2,751
thread by: Josh C. | last post Mar 14 '08 by: SAM
I am attempting to dynamically add an option to a select box when the box is selected (click or focus). This works fine using Firefox by either creating a new element and appending it to the SELECT's children, or by creating a new Option() and setting it to the select.options array. My problem is in IE whenever it adds the element the...
2
1,229
thread by: Geoff Cox | last post Mar 14 '08 by: Geoff Cox
Hello, I am involved in a project which might have large numbers of people accessing the web site at the same time. The pages have javascipt code and also involve adidng/taking data to/from a MySQL database. Is it possible to load test the site in any way?
15
2,058
thread by: Bob | last post Mar 14 '08 by: Peter Michaux
Is there anyway to access the global object from inside a function other than doing a "var _global = this;" before declaring the function? Thanks
9
5,148
thread by: tmeers | last post Mar 14 '08 by: gits
Ok I've found many script on how to count the number of characters you have typed into one text box and even ones that tell you how many characters you have left to type. But I have a classic ASP app that I need to count all the characters in every DIV element that is using innerHTML. I'm really not sure how to explain it any better but maybe...
4
2,302
thread by: crazychrisy54 | last post Mar 14 '08 by: SAM
Hi there, I am new to JavaScript and wonder if it could be used to solve my problem, any help would be much appreciated! I have a html web page which contains a table on the left hand side and image on the right, both of which are updating. As the image updates however it gets bigger and starts to look messy next to the constant sized...
3
6,394
thread by: sungung | last post Mar 14 '08 by: SAM
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As you know, scroll position will be 0,0 after reloading page. But I want to go the postion where user click the link for popup windows.
5
8,177
thread by: Jeff | last post Mar 14 '08 by: Peter Michaux
Lets say we have what I would call a "hash": var HASH =new Array(); HASH='first'; HASH='second'; HASH='third'; I'd like to return that as JSON data. Is there a direct way to do that?
2
6,610
thread by: Sorrow | last post Mar 14 '08 by: SAM
If you have an onsubmit event handler defined for a form, it doesn't seem to trigger if you manually call the .submit() method of the form object. Is there any way you can make sure that code is executed? thnx, Christoph
10
35,597
thread by: nasir872 | last post Mar 14 '08 by: felipeBoo
I am having trouble in calling tab event using my own function. i call tab event using event.keyCode = 9; but firefox gives this error "Error: event is not defined". What to do? plz help
1
1,871
thread by: SagarDoke | last post Mar 14 '08 by: acoder
Hello, this is my servlet: String skill_id = request.getParameter("skill_id"); request.setAttribute("Skill_id", skill_id); RequestDispatcher rd = request.getRequestDispatcher("TerminationSelection.jsp");
1
1,152
thread by: H.Steel | last post Mar 14 '08 by: GArlington
Hi at all I have two <div> First contain a dynamic <tableand I do not know the size. This first <divis position:absolute I must position second <divimmedialtely after the first.
3
2,001
thread by: thetechgeek | last post Mar 14 '08 by: acoder
hey all, I'm a bit new to AJAX, and I was wondering how I could dynamically load content onto a page to prevent the user from having to reload the entire page, they'd just have to load the main content section that they want. Here's a page that I got my inspiration for this from: http://library.thinkquest.org/06aug/02048/. Try clicking on one...
2
1,137
oll3i
thread by: oll3i | last post Mar 14 '08 by: acoder
is it possible to add action to an image so it opens the search file box?

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.