473,796 Members | 2,628 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.
1
2,828
thread by: Carl | last post Feb 24 '08 by: Richard Cornford
With python I can pull a web page using urllib2 and then parse it using BeautifulSoup. Is there any similar functionality in javascript that will allow me to do the same thing?
1
1,690
thread by: dirt | last post Feb 24 '08 by: hsriat
Hi I want to sort an array by non unique Values. i have array named xo for example with values: xo="n"; xo="n"; xo="n"; xo="n"; xo="u";
4
832
thread by: wangers16 | last post Feb 24 '08 by: wangers16
Hi, Is there a way to write out an array, only instead of it coming out in one long string with just commas seperating each item have them written in a vertical list and with any other kind of formatting?
1
1,438
thread by: abhishekbrave | last post Feb 24 '08 by: rnd me
Hi Can we pass a value through hyperlink. My requirement is that suppose i have 3 hyperlinks 1 2 3 When I click on 1 or 2 or 3 another HTML page will get open having the information that "1 is clicked" if I click 1.
1
1,480
thread by: Eustace | last post Feb 24 '08 by: Eustace
When checking my webpage with JSLint, I get this kind of error: ================ Problem at line 242 character 73: Expected '=' and instead saw '>'. NAME="firstDayOfWeek" VALUE="" SIZE=2 MAXLENGTH=2 DISABLED></td> ================ But if I make it DISABLED=true to please JSLint, then the W3C Markup Validation Service finds it wrong...
1
1,173
thread by: bonus | last post Feb 24 '08 by: Thomas 'PointedEars' Lahn
My value isn't not working for this part of my code, does anybody have any insight on how to correct this? Thanks <input type="hidden" name="sender_email" value=getCookie('SenderEmail') size="50" />
6
1,265
thread by: Stevo | last post Feb 24 '08 by: Stevo
Does anyone know of a way to check if a html file exists in a different domain so that you can know in advance whether going there would result in a 404? I believe Ajax would allow that in the same domain, but wouldn't in a different domain. The page I might go to is totally out of my control, so I can't do anything that side. I'm expecting...
6
2,023
thread by: jason1987 | last post Feb 24 '08 by: Logician
Below is a mailto link from a button, it works completely perfect with Outlook, but dont with Outlook Express. Any ideas??? <input class="button" style="width:220" onmouseover="this.className='button btnhov'" onmouseout="this.className='button'" type="submit" value="Send e-mail & Continue" onClick=...
2
3,117
thread by: ShaggyMoose | last post Feb 23 '08 by: Thomas 'PointedEars' Lahn
I want to apply an array of arguments against the Date constructor to set a specific date/time. I can't seem to find the syntax to do this. Using eval to expand the array into seperate arguments for "new" feels dirty. Is this possible? eg. Date.apply(?, myArgs);
2
30,699
thread by: UKuser | last post Feb 23 '08 by: Thomas 'PointedEars' Lahn
Hi, I managed to get a script working earlier with a span onclick function, however for whatever reason Firefox is just not playing ball. A very simple test script is: <html> <script> function tell(){ alert('test')
6
1,676
thread by: nooby101 | last post Feb 23 '08 by: nooby101
I would appreciate very much if someone could help me figure out what I am doing wrong. I have checked the code over and over and still can't figure out why it won't write to the web page. Perhaps an outside eye could help. Here goes...not sure which tags to use for .js so forgive me if I just cut/paste. Here's my js file: function...
6
1,290
thread by: Xeophex | last post Feb 23 '08 by: Xeophex
I am wondering if it is possible to have a small .swf (Flash animation) inside a tooltip? Ideally it would start playing when a hotspot is rolled over and the tooltip appears, but it would also be fine if it actually started 'playing' when page loaded then it only became visible when the tooltip is active. Just a small, probably looping .swf. ...
1
2,095
thread by: valheru | last post Feb 23 '08 by: Thomas 'PointedEars' Lahn
Hi, I'm not sure if this question even makes sense, so bear with me here. I'm using a tool called HtmlUnit (which is like JUnit) to send a http request to my web application. The http address needs to include JSON objects because the JavaScript/Java functions at the web application are expecting to receive them as parameters. Let me...
1
1,073
thread by: hash4sp | last post Feb 23 '08 by: hsriat
Hello readers, How do I access value of a global variable in a function. var UserName; //declared global function1(UName) // this function is called onLoad event and UName is passed {
4
1,289
thread by: sarika | last post Feb 23 '08 by: David Mark
Which group should i join for learning advance ajax plz help
1
1,979
thread by: sonysunny | last post Feb 23 '08 by: hsriat
hai, How can i restrict number of selections in listbox using javascript. ie. only 3 items are allowed to select , also atleast one item should select. thanks in advance
1
2,631
thread by: magix | last post Feb 23 '08 by: magix
Hi, My popup window (Modal) target is not working. Page1.asp ======== I have javascript: function PopNewWin(url) {
1
2,861
thread by: hpandya | last post Feb 23 '08 by: mrhoo
Here is my code::: <iframe id="test" name="test" width="840" height="880" frameborder="no" scrolling="no" onmousedown=alert("wow")></iframe> what is wrong why cant i get mousedown function inside Iframe How to fix it - please send me code... Thanks
1
1,450
thread by: mk834tt | last post Feb 22 '08 by: RobG
Low hours pilot here. I had a try/catch construct and had no idea what properties were available via the catch error object. I'm trying to figure out how to browse exposed properties. Is this a reliable way? I "seem" to be able to collect all the keys for (var x in er) { alert("key: " + x );
9
2,591
thread by: JCCDEVEL | last post Feb 22 '08 by: JCCDEVEL
Hi All, I'm trying to do the following: 1) ON a php page, calculate fees based upon user entires. I'm calculating it in a javascript function and that is working well. However, I need to take that calculated amount and pass it to a new page on redirect. something like this: <input type="hidden" name="redirect"...
8
1,809
thread by: timothyd | last post Feb 22 '08 by: hsriat
Hello, I am a true beginner and have no clue what I am doing. With that said, I really only want to know one thing...how do I create and insert an area on the main page of my website that displays a different photo each time the website is visited/each time the refresh button is pushed? Please let me know. Thank you.
1
1,263
thread by: anon | last post Feb 22 '08 by: Randy Webb
i've javascript code taken from the html of a wordpress site. it looks to be cross-site scripting that decodes itself and redirects to another site. i've got it because infected html was sent to me. i'd like to know that it didn't do more than re-direct me but i don't know javascript well enough to decode it
3
1,537
gingawarrior
thread by: gingawarrior | last post Feb 22 '08 by: gingawarrior
Hi All, I've written some code to act as a validator for a set of form fields - it accepts a string of '~' delimited item names and then loops through to evaluate if they are either empty or =='999' (default not selected for a dropdown list). So far so good...however, although the value=='999' bit works, those fields that post a null or empty...
5
4,007
thread by: cyberlei | last post Feb 22 '08 by: gits
Hey Guys, Just wandering if I can display alert message with a default sound. the current code is below and the problem is no sounds. function disp_alert() { alert("test") } and $message="test";
5
1,646
thread by: sdragolov | last post Feb 22 '08 by: Dean Arnold
I would like to achieve an effect similar to the code outlining in vs.net (where you can expand and collapse sections of code) inside of a textarea in a web form. the code outlining would be available on encountering certain reserve words and have expand/collapse ability (just like in an IDE). any suggestions of how to do this? would it...

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.