473,804 Members | 2,292 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,426
thread by: Swizylstik | last post May 13 '08 by: acoder
I am creating a donation form which needs to be processed through Paypal, therefore will do the trick. The trouble is that I would also like the form to go through a formmailer script in order that the data from the form is sent to my email account. I have a script that will do this: My question is how can I get the form to perform BOTH...
1
1,817
thread by: emilstamatoiu | last post May 13 '08 by: acoder
environment: a web page contains a number of pictures that are downloaded using AJAX. issue: when the web page is downloaded as a ".html " file AJAX does its job perfect. when the identical page content is sent via PERL "print (@template);" AJAX does not work. question: did other developers experience same problem?
1
1,248
thread by: onetwothree | last post May 13 '08 by: acoder
var elm = getElmById("myID"); function getElmById(aID){ var element = null; if (isMozilla || isIE5) element = document.getElementById(aID) else if (isNetscape4) element = document.layers else if (isIE4)
1
1,759
thread by: automation | last post May 13 '08 by: acoder
I have a web-page consisting of a listbox & image buttons. I want to post to the appropriate PHP script based on which list_item and image button combination is selected, where the logic is determined by JavaScript. So far, I can determine what list_item has been selected, but how do I determine what image button was selected? The current PHP...
1
1,766
thread by: siddu | last post May 13 '08 by: hsriat
How to call Javascript function in single statement, I have to call these two statements in a single onClick img.Attributes("onclick") = "toggleSidebar(" + IDPREFIXSIDEBARCONTENT + CStr(tab.Id) + ")" img.Attributes("onclick") = "showTab(" + IDPREFIXTAB + CStr(res.Id) + ", '" + param + "');" Please advice me how to call above two...
1
1,419
thread by: maheshd | last post May 13 '08 by: acoder
Hai I had the problem of using the variable in asp code that had passed in java script function Here the code i used function fun(form2,cname) { alert(cnme.value) <% set sql=server.CreateObject("ADODB.RECORDSET")
1
2,475
thread by: suzy | last post May 13 '08 by: acoder
Is there a way to make window.confirm default to the Cancel button instead of the OK button? If so, what is it? If not, is there a way to disable the use of the return key? Thanks for any help at all. Suzy
1
1,484
thread by: aguy1306 | last post May 13 '08 by: acoder
I am trying to find out if javascript can read an objects handler as a value for example <input type="text" size="25" value= "some number" id="number_input" name="number_input" onchange="validate_num_length(this,true,7,8,11000000,69999999); can i retrieve the value of the onchange handler? thanks aguy
23
2,862
thread by: pravinasp | last post May 13 '08 by: acoder
I have a page with table layout which has an AJAX request sent on body onLoad event, during this time the table cells show static text like "Loading". The table cells are later updated with the AJAX response. So when I try to move out of the page once the AJAX request is sent by clicking on a link for exmple, the "Loading" changes to "undefined"....
1
1,377
thread by: abducted | last post May 13 '08 by: acoder
mywidget = new Widget() alert(mywidget) // object Object alert(mywidget.toString()) // object Object alert(mywidget+"") // object Object alert(String(mywidget)) // object Object I have always wondered if there was a way to get the string "mywidget". A potential use could avoid things like this:
1
1,959
exoskeleton
thread by: exoskeleton | last post May 13 '08 by: acoder
Hi..to all expert...i have this situation .. i cant get the value of the file field in the other page..im using a simple javascript like this... example: // this is page1.php <head> function send() { var ajaxRequest;
10
3,027
hsriat
thread by: hsriat | last post May 13 '08 by: acoder
In the Database, I save some characters like £, ¥, ¼, ½, ¾. When I display them directly in my HTML, they are fine. But when I'm using AJAX to bring this string from PHP and display it, its displaying unknown characters (� � � � �). Rest of the string is being displayed fine, the problem is only with these characters. How can I solve...
1
2,287
thread by: WebArtist8248 | last post May 13 '08 by: acoder
Hi all, Trying to figure out how to use a checkbox in a form and have JavaScript populate another field. For instance, I have 2 fields: DaytimePhone and EveningPhone and I have a checkbox that says "Check if evening phone is the same" and if you click that box, it should populate the evening field with the number entered in the DaytimePhone...
1
7,735
thread by: mht7 | last post May 13 '08 by: acoder
I'm newbie to javascript and I did an extensive search on this site and couple of others looking for directions. I'm attempting to write some custom javascript for collapsing the tables and fit it in an existing application already provided. I found some code on the web that works great. In this example there are 3 fixed set of tables with 3...
2
3,374
thread by: ganesh22 | last post May 13 '08 by: acoder
Hi, I written a table in Script.js fille for that table i want to give background image How?
2
1,042
thread by: infernodeep | last post May 13 '08 by: infernodeep
hi guys,im new to this forum could anyone help me to solve this problem for me.. In my site im generating multiple text boxes and i need to wirte validations for that.... <form id="form1" name="form1" method="post" action=""> <input name="cc1" type="text" id="cc1" value="0" /> <br /> <input name="cc2" type="text" id="cc2" value="0"...
2
1,226
thread by: biga1 | last post May 13 '08 by: dlite922
Strange question coming ... I need to be able to provide the user the ability to insert appropriate text (not free-form) at a point in a file. I was thinking of loading the file into a text area input. There would be an additional set of buttons for each of the pieces of text to be inserted. The user could navigate using their cursor within...
1
3,252
thread by: bruceeanderson | last post May 12 '08 by: acoder
This script does not run on MAC OS 10 w/Safari, but it does run under XP w/IE. This is a report setup screen. The user selects a customer from a select window and picks a date range from a popup calendar. The problem is in the validation routine that checks for proper setup before continuing. When the user clicks on Continue image button,...
1
1,689
thread by: KerryK | last post May 12 '08 by: acoder
Hi all: I need some help to create an email form that students can submit to register for a seminar. Basically all I want the student to do is to click a submit button but what has to come up for me is the name of the seminar they are registering for, their name and email address. My problem is that all the seminars are listed in a table and I am...
10
1,975
thread by: siva538 | last post May 12 '08 by: acoder
Hi All, I want some good implementation in Javascript for validating XML data. If user enters some text in the textarea control, before XML data is saved in the database, the validation should happen in terms of whether it is well-formed or not, etc. Can you please point me to the same? Thanks in advance! Regds, Sivakumar
1
1,306
eddydesigns
thread by: eddydesigns | last post May 12 '08 by: acoder
Project: A human resource simple form that gets emailed to a general email box. I have a script in place (onClick=document.location) to redirect to the Thank you page. However, when the default email pops up (in this case, Outlook) it prepares to send the email and then asks the user if they want to send it. Yes there is a "yes and no" button...
3
1,397
thread by: alan75 | last post May 12 '08 by: acoder
Below is the script I used on my site, works fine on IE but not on FF. the project i working on is www.forwardpage.com, i'm adding ajax on this test page http://www.forwardpage.com/test/user.asp?id=alan. copy the link to see what i meant. nothing shows up in FF, not even an error. var xmlHttp; try{ // Firefox, Opera 8.0+, Safari ...
1
2,475
thread by: jmohan | last post May 12 '08 by: acoder
Dear Sir/Madam, I develop a website in asp.net with c#. And also, I develop a toolbar in the toolbar studio separately. Aim of the Website: Enabling the visitors to become a member of our webiste by downloading the toolbar from our website. After the member downloads the toolbar, The toolbar is added to the ie browser. The member can...
14
2,023
thread by: splendid9 | last post May 12 '08 by: acoder
Is there any way to detect if the cookies are enabled in the browser for am ASP.net page. please reply me asap.
3
1,042
thread by: gnawz | last post May 11 '08 by: hsriat
Hey guys There is this quite navigable menu display at http://search.justdial.com/ When a user clicks on text box, it displays a certain javascript menu. While on this site, click on the text box for City. Anyone knows how this was done??

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.