473,785 Members | 3,142 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,053
thread by: CathInfo | last post Feb 28 '08 by: acoder
I want to use an array for my fieldnames (field, field, etc.) instead of names like "first_name", "last_name", etc. It works from an HTML standpoint, but I can't seem to access the contents of those text input fields from Javascript. The code below works 100% if I change "field" to any normal variable name like "last_name". if...
2
1,402
thread by: abk | last post Feb 28 '08 by: acoder
how to make a script for form submittion in mdb file
1
972
thread by: TimSki | last post Feb 28 '08 by: acoder
Hi, I have a link on an asp page. When i click the link i call some javascript which changes the appearance of the page using css style.display. If i then leave this page and then come back to it immediately the css style changes are not "saved". I'm assuming this is because as far as the browser is concerned the cached version of the page...
1
1,038
thread by: yovalk | last post Feb 28 '08 by: acoder
Hello, There is a site whose DOM is built dynamically with AJAX. I would like to let the user browse that site in one frame, and then access the properties of the DOM of that frame in a frame I wrote. Is there any way to do that? I read about the same origin policy, but I would only like to access the DOM, is there no read permission? Thanks,...
1
970
thread by: kdeevela | last post Feb 28 '08 by: acoder
<script language="javascript" type="text/javascript"> function validQuestion() { formname=document.forms.name; var str = new String(document.formname.nlpq.value); if ( str.match(/^(Search(\s+for\s+what\?)?)?\s*$/i) ) { document.formname.nlpq.value = "Please enter a question"; } else
1
1,620
thread by: lilbit02 | last post Feb 28 '08 by: acoder
Hi, I have a form that utilizes validation as most do via javascript. This form worked totaly fine until I needed to add a dynamic div now the validation doesn't work. It does work for the first dropdown but nothing there after. I always get the error saying is null or not an object. I need help trying to figure out how to access the ojects in...
2
1,140
oll3i
thread by: oll3i | last post Feb 28 '08 by: acoder
Is it possible to block reloading the page? thank You
4
1,429
thread by: reply2mahendran | last post Feb 28 '08 by: acoder
Hi guys, I have an Applet which is embedded in a html file as follows. <Applet id="AdImageApplet" name="AdImageApplet" Code="AdImageApplet.class" width="150" MAYSCRIPT height="150"> This Applet contains one public method called returnSelectedRegion() which is returning a String. I wanted to call this method from javascript to...
27
5,894
kcdoell
thread by: kcdoell | last post Feb 28 '08 by: acoder
Hello: I am a newbie with Java coding... I have a form that I created in Word. Within that form it had a place where the user could selected certain states or all states via a checkbox. I used VBA coding to do this and it works great. My problem is now I have to convert the form to an Adobe 8.0 pdf form. The conversion process does not...
3
1,840
thread by: Tom de Neef | last post Feb 28 '08 by: Thomas 'PointedEars' Lahn
I try to construct a string for output in the body of an email. My problem is to get new line/carriage return characters inserted. On reading a txt file I can split lines successfully with split(//) (thanks to Thomas Lahn and Evertjan) or split(String.fromCharCode(13)+String.fromCharCode(10)) (which is the traditional #13#10 found in txt...
3
1,231
thread by: asmon | last post Feb 28 '08 by: johnhjohn
I'm a PHP programmer but i'm pretty messed up at this moment with the following script. I have a page with a 'TEXTAREA' and a 'PLAY' text. when i click PLAY, values are being displayed in the TEXTAREA with a delay of a second. the values are stored in array, if for example i have an array with the values (2,5,7,8) then it will first show 2,...
2
1,380
thread by: tyv | last post Feb 27 '08 by: Doug Gunnoe
Hi, I have a bug on my website that I'm trying to fix. I have filters (drop down menus and click-calendar date range) that narrow down searches on my website by pulling out the information from the database. Problem is as follows: 1) I select my filters, the database choices are narrowed. 2) I get multiple pages (a filtered list from...
1
1,795
thread by: bharathlvn05 | last post Feb 27 '08 by: hsriat
hi ,my name is bharath my question is... How to connect An Ajax application to database(sybase or sql) using servlts or jsp..but not using php and asp..
1
7,144
thread by: adethyaa | last post Feb 27 '08 by: hsriat
Hi Friends, I'm getting a string that contains the Xml content, and i ve loaded tht string and opened it in a new window, but its just displayed as Text rather in an XML format, please help me out, have been breaking my head on this for days... I'm Pasting my code below, function openxml() { alert('In'); myWindow =...
3
1,460
thread by: Fabrice Baro | last post Feb 27 '08 by: Fabrice Baro
I'm working with a (complex) site written in php/javascript. A link, when clicked, causes a centering of the browser window on the screen. I would like to find what causes this moving. I suspect it's a javascript command. The behavior is slightly different for IE than FF: when the browser window is on my second screen, IE is brought back in...
7
2,255
thread by: rupak | last post Feb 27 '08 by: hsriat
i want to chech thoes chekboxes which are sored in an array, i.e. there is an array PreviousItems = want to checked thoes checkboxes in the form whoes id are stored in array PreviousItems. i.e. <input type='checkbox' name='coffee' id='col1' value='Unit' checked /> <input type='checkbox' name='coffee' id='col2' value='Unit' checked />...
2
7,088
thread by: bala | last post Feb 27 '08 by: Nikola Stjelja
hi i like to know how to get the internet temporary folder path in javascript ... thanks in advance
2
2,728
thread by: pfefferl | last post Feb 27 '08 by: pfefferl
Hello, i have a ajax-webapp (prototype.js) which works without any problems with IE (also 6.0), FireFox, Opera etc.. Now I have a single client (W2K, IE 6.0.2800.1106, SP1) who has a strange problem. Every time, the client sends an async.-POST-xmlhttprequest, IE sends the request succesfully after 5 minutes - i don't know, what IE does...
1
1,544
thread by: rksprst | last post Feb 27 '08 by: tswaters
I have a page which is entirely generated via the DOM (a requirement for what I'm trying to do.) The problem is that the inline-block does work in IE even though I applied it to span, which is by default an inline element. Also, the tabs at the top which use display: none and display: inline to hide and show content do not seem to work in IE. ...
3
1,746
thread by: tonyhhisc | last post Feb 27 '08 by: acoder
This script calculates the total "listing_fee" based on the price that the user inputs into the "price" field. It works in Firefox but IE says "OBJECT NOT FOUND" please help me debug this, It's sooooo close! :) Thanks in advance for any help or guidance!! function calc() { tprice = document.sellticket.price.value; newprice = .05 *...
4
5,072
thread by: wolverine | last post Feb 26 '08 by: Joost Diepenmaat
Hi, I want to know when user has stopped scrolling. I can know the beginning of a scroll by attaching the 'onscroll' event. But how do i detect end of scroll. Is there any event for that ? Or is there some other way to know that user has stopped scrolling. I don't want to use 'onmouseup' since user can scroll using mouse wheel as well as...
7
1,216
thread by: Tom de Neef | last post Feb 26 '08 by: Evertjan.
I am converting a Pascal app to Javascript. The app presents spelling tests. Having completed a test, the user will be presented with a random next one. Each test is derived from a single line in a txt input file. Each line can be considered as a string. How can I incorporate this input file in Javascript? It would be nice to be able to keep...
14
1,968
thread by: RAZZ | last post Feb 26 '08 by: Thomas 'PointedEars' Lahn
Hi, When I login to my site initially it load index.php by default. We can't see the page name index.php displayed in URL. But when I click to some link on this page it will display the whole path with file name on address bar and URL. I need that it should not display my php files names on address bar and URL, how should I achieve it?
10
8,186
dreamfalcon
thread by: dreamfalcon | last post Feb 26 '08 by: rnd me
Hi! I need to read and write the content of a text file given by the users. The idea is to have two options. Read: -the user selects a file with a <input type="file"> -using javascript, read the content of the file and process it. Write: -build a string and display a "Save as dialog" to save to a text file
2
2,704
thread by: sanjuindia2005 | last post Feb 26 '08 by: rnd me
How can i read the excel sheet using javascript ?

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.