473,804 Members | 3,353 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.
5
1,303
Haitashi
thread by: Haitashi | last post Apr 2 '08 by: gits
Hi: My task is very simple. I want to make sure that files that people are uploading have file extensions. File types don't matter, just that they have one. How would I write an expression for that?
2
1,438
thread by: Arodicus | last post Apr 2 '08 by: Arodicus
Given something like this: var foo = new Something() is there any way for the Something class to know it's being put into "foo" (as a String)? The only thing I can come up with so far is blatantly feeding it: var foo = new Something("foo")
1
1,458
thread by: tuka | last post Apr 2 '08 by: RobG
Hi, I have 2 methods defined within a javascript objects that I would like to call in a third function within the same object. In the example below, func3 works well in FF but in IE7 it breaks. Any suggestions about how this may work ? I am sure this has to do with notation. I am calling the methods statically - so not instantiating a...
2
1,976
thread by: gsherp | last post Apr 1 '08 by: gsherp
How does one execute code when the user closes the browers window by clicking on the top right corner . I need to log out user and do a database write when the user closes the brower. I do these to clean up the database when the user exits before actually logging out. I was told to user pageX, but does not seem to work either. Again, I am...
5
1,037
thread by: eacollie | last post Apr 1 '08 by: pronerd
Thanks for any help you can give me! I'm trying to set up a banner ad on a webpage that will rotate randomly through a series of about 22 ads. I found code that works for IE but I'm having problems with Firefox (it doesn't refresh unless you manually refresh the page). The image link for the banner that is created (by the function getCode)...
3
1,537
thread by: useenu | last post Apr 1 '08 by: pronerd
Hi all, I am new to this forum and javascript. I am developing a progress bar in javascript. For that I planned to have series of small DIVs in a big DIV. I have written a below function.It is working in IE, but not in Firefox. function createDiv(leftPx, topPx, widthPx, heightPx, divColor) { dv = document.createElement('div');...
2
1,111
thread by: Helmut Giese | last post Apr 1 '08 by: Helmut Giese
Hello out there, Joost's answer to my original post showed me that I omitted a central point: My requirements are completely functional, there is no browser in sight and no visual output whatsoever. Ok, before you think I am nuts, here is the background: We have a fairly big application for the PC desktop and the idea came up to port it to...
1
1,320
thread by: deararuns | last post Apr 1 '08 by: pronerd
i hav a window wit a button and text box.. Then am opening a new window... suppose if i type somethin in a first window's text box.. and click the button.. the value typed in the text box shoult appear in the opening window... Is it possible <html> <body> <script type = "text/javascript"> function fun1 ( )
2
3,366
luke14free
thread by: luke14free | last post Apr 1 '08 by: luke14free
Hello, I'm writing a live chat in php and ajax (prototype.js). My problem is that, when the periodical updater gets chat text from an external php page, under IE \n\r are not recognized http://www.wetv.it/blog2.php The chat is very simple; here is my js code: function ste (element) { // scroll to end the chat if (typeof...
3
1,077
thread by: Shisou | last post Apr 1 '08 by: Shisou
I'm trying to program a repetitive character validation for a form on my site. I was wondering if it was possible for js to get the characters in a input.value individually... i was thinking something like input.value.index(i) but that doesn't seem to be working... any suggestions?
2
2,221
Frinavale
thread by: Frinavale | last post Apr 1 '08 by: Frinavale
Hi! I am dynamically generating external .js JavaScript resources to be used with a Tab control I created (using VB.NET). Originally, the JavaScript was written directly into the <head> of the pages that used Tab controls. Because it was generated in this way I was able to specify which tab was to be displayed as the "current" tab upon...
5
3,291
thread by: dineshkumarsr | last post Apr 1 '08 by: pronerd
Hi Folks, I have a issue trying to change the cursor of area image map in run time, no static code, no id and no name. the possibilities i have tried is document.getElementsByTagName("area").style.cursor=hand; var cur=document.getElementsByTagName("area"); cur..style.cursor=hand; not working
2
3,201
thread by: manishamca | last post Apr 1 '08 by: acoder
can anyone say me how to find the difference of values present in two textbox and display the result in the third textbox. for eg: <input type=text name=t1 value=123> <input type=text name=t2 value=20> <input type=text name=t3 value=103> in the t3 textbox the difference of tw otextbox shuld be displayed as soon as...
2
1,245
thread by: purushothamk | last post Apr 1 '08 by: acoder
Hi, can some one please let know how to write the java script to open a new window when we click on Button. Regards Purushotham
5
1,234
thread by: connectwithme | last post Apr 1 '08 by: pronerd
I am trying to attach a "onblur" event on the body element. IE does'nt throw any errors but the event is not captured by the browser when the onblur occurs on the elements withing the body. But if I attach a "onclick" event. That is captured by the browser. Any idea ?
2
1,013
thread by: ajs05 | last post Apr 1 '08 by: pronerd
Hey guys I was wondering if anyone knew how to create a currency converter using html programming, here are the guidelines I am looking for : Develop an HTML/JavaScript program that creates a web page that can be used as a GUI to convert U.S. currency to Canadian dollars, British Pound, or Euro. The conversion formulas are: 1 US $ = 0.974...
3
1,951
thread by: pratimapaudel | last post Apr 1 '08 by: pronerd
Is there any way to change the text in Ok and Cancel in Javascript confirm box? Instead of OK and Cancel i want checkout and continue shopping. I have my js code like this function CheckWt() { var backorder = 'False' if (backorder == 'False') {
1
2,458
thread by: hash4sp | last post Apr 1 '08 by: pronerd
Hello ! I need to add image icons to SELECT option. I have gone through and tried few things by googling but it doesnt seem to work. example link Any suggestions regarding please...
2
2,735
thread by: sasimca007 | last post Apr 1 '08 by: pronerd
Hello friends, I am using dojo datetextbox in my project. I have a problem that, how to use events for that? I have coding like this <p id="backgroundArea" dojoType="dijit.form.InlineEditBox"> <input name="from" dojoType="dijit.form.DateTextBox" constraints={datePattern:'dd/MM/yyyy'} lang="en-us" required="true"...
1
1,088
thread by: newatcoding | last post Apr 1 '08 by: pronerd
Dear friends, I have a page with a frame. In the page if we click any of the buttons,a javascript error saying 'Permission Denied' will be hown. I couldnt find any solution. I could find the details that this problem is commoly faced and no solution could be found. Please help me...
1
1,355
thread by: a1lostnomad | last post Apr 1 '08 by: acoder
Hi, I'm JavaScript challenged so I'm going to need some help on this one.... I'm trying to get this accordion (based on prototype/scriptaculous) to open up a panel later in the page. In the head <script> tag: <script type="text/javascript"> Event.observe(window, 'load', loadMenu, false); function loadMenu(){ sidebarMenu = new...
1
2,555
thread by: raghulvarma | last post Apr 1 '08 by: pshm
In <asp:textbox> we do not have the method such as onmouseover as we have it in input type = "text" instead of onmouseover which method would be a perfect match for it? My situation is for a calender plz help me out...
3
3,880
thread by: ccountey | last post Apr 1 '08 by: acoder
Hello, The objective of this script is to show visitors who found my site by clicking on one of our Google Adwords a specific telephone number (in graphic form) for the sake of tracking. Here is the code I have been working on. My issue lies within the document.URL area of the script. I tried this code without declaring the source...
1
1,460
thread by: Bjorndal | last post Apr 1 '08 by: acoder
Hey guys! I'm currently working on project, in which I need to animate a menu. It seems to work all right in Safari and Firefox, but Internet Explorer 7.0 makes the animation run slower, and I can't figure out why!? So far I have only tested it in version 7.0 of Internet Explorer. First of all I'll show you the Javascript code, which runs...
3
1,303
thread by: mjoshi | last post Apr 1 '08 by: acoder
Hi I want to pass the name of the button to the javascript on its on click i have used this.name but its giving object required error plz help

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.