COMPGROUPS.NET | Post Question | About | Groups | Contact | Register | Login



comp soft-sys matlab (18489)

comp os linux advocacy (5155)

comp soft-sys sas (3803)

comp soft-sys math mathematica (2916)

comp lang python (2903)

comp lang ruby (2550)

comp text tex (1729)

comp sys mac advocacy (1658)

comp lang c++ (1415)

comp lang javascript (1219)

comp lang c (1196)

comp lang perl misc (1191)

comp lang java programmer (925)

comp dsp (908)

comp sys mac system (890)

comp lang tcl (872)

comp databases ms-access (760)

comp arch fpga (749)

comp lang idl-pvwave (726)

comp software shareware announce (702)

comp lang php (697)

comp lang lisp (682)

comp sys sun announce (659)

comp arch embedded (626)

comp sys mac apps (609)

comp sys ibm ps2 hardware (545)

comp lang c++ moderated (524)

comp lang fortran (524)

comp unix shell (521)

comp os plan9 (514)

comp os linux misc (513)

comp unix solaris (500)

comp databases oracle server (494)

comp sys ibm pc games war-historical (485)

comp lang python announce (483)

comp os ms-windows programmer win32 (476)

comp databases mysql (412)

comp sys cbm (408)

comp dcom sys cisco (407)

comp arch (306)

comp sys ibm pc games action (301)

comp databases informix (274)

comp lang clipper visual-objects (267)

comp os vms (263)

comp lang perl announce (238)

comp lang xharbour (229)

comp graphics apps gnuplot (224)

comp realtime (216)

comp soft-sys ace (215)

comp lang ada (213)

comp protocols nfs (207)

comp protocols snmp (204)

comp parallel (202)

comp sys acorn announce (196)

comp protocols tcp-ip domains (193)

comp sys ibm pc hardware systems (191)

comp unix internals (187)

comp infosystems www browsers misc (184)

comp misc (182)

comp publish cdrom software (182)

comp dcom cabling (174)

comp mail mime (169)

comp std announce (169)

comp ai fuzzy (168)

comp ai edu (166)

comp soft-sys stat spss (156)

comp protocols kerberos (155)

comp databases filemaker (155)

comp sys apple2 (153)

comp admin policy (151)

comp databases postgresql committers (150)

comp databases ibm-db2 (149)

comp databases ms-sqlserver (131)

comp protocols dicom (129)

comp unix programmer (128)

comp security misc (123)

comp unix bsd freebsd misc (120)

comp graphics visualization (117)

comp cad cadence (117)

comp databases olap (116)

comp apps spreadsheets (114)

comp databases postgresql general (114)

comp lang vhdl (113)

comp lang java help (113)

comp ai neural-nets (112)

comp ai (111)

comp ai games (110)

comp dcom telecom (109)

comp client-server (108)

comp os linux announce (105)

comp cad microstation (105)

comp databases oracle marketplace (105)

comp soft-sys math scilab (102)

comp databases progress (102)

comp os linux networking (101)

comp database oracle (100)

comp graphics api opengl (99)

comp ai genetic (98)

comp protocols dns bind (97)

comp compilers (97)


comp.lang.javascript Post New
Items(1069) /22 Next >> Last >|
Subject Posted Replies From
This has to be the strangest problem ever

I need to check user selection with a javascript function called checkform It works for the first 2 selectindex values but not the 3rd and 4th. I change places and bring 3 and 4 up to 1 and 2 and it still works for 1 and 2 ignoring 3 and 4. Here is the code version A (works on bok_novank & bok_novavf .......................................................... function checkform ( form ) { if (document.bok2.bok_novank.selectedIndex =3D=3D "0") { alert( "Ange Ankomstdagen Hotell" ); document.bok2.bok_novank.focus(); return false; } if (document.bok2.bok_novavf.selectedI

9/7/2010 12:22:09 AM 0 GarryJones <mor...@algonet.se>
Persistent cookies via Javascript

Hi, I'm writing an app that requires setting cookies via Javascript. Problem is that, using Internet Explorer, although I can set and retrieve them during a browser session, they disappear upon closing the browser, even when I set an expiry date a significant length of time into the future (days, years, whatever...). This doesn't appear to make any difference whether the site is accessed on localhost or on a remote server. (Actually, the real problem is that different IE6 windows don't share cookies- which I need- but this appears to be down to them being treated as session coo

9/6/2010 11:43:00 PM 2 Metre Meter <metreme...@yahoo.co.uk>
Retrieve a Radio Button Value

How can I retrieve a radio button value when I am NOT using a form? There are many, many examples when a form is used but I'm NOT using a form? Thanks... Bruce

9/5/2010 9:04:21 PM 17 bruce <bruc...@bellsouth.net>
"post-assignment" operator ?

I've had the need to save an array element just before updating it to a new value: oldValue= array[index]; array[index]= newValue; doSomethingWith(oldValue) If instead wanted to post-increment/decrement it I could have written just : doSomethingWith( array[index]++ ); which is shorter, clearer, and does not need any temp. var. So, my question/idea (I hope it's not too dumb) is, why not to have a "post-assignment" operator ? One that given the expression: `aReference *postAssignmentOperator* newValue` would assign newValue to aReference but would return the value that it

9/5/2010 9:08:17 PM 9 Ry Nohryb <jo...@jorgechamorro.com>
RegExp problem:

Hi: This is a post relating to the KeyPress issue of an earlier post. I would like now to look into the *middle* of a string of input chars, and change x (e.g., 10) successive space chars to y (e.g., 2) space chars. Also, I'd like to do the same sort of thing for newline chars . In both case I'd like to be able to modify the 'x' and 'y' parameters. Altho I'm a brand newbie on RegExp stuff, I'm guessing that a statement like the following may work: ********************************************* var badtext = "a bunch of chars with perhaps many

9/4/2010 5:01:15 PM 13 "Mel Smith" <med_cutout_syn...@aol.com>
Impact of CDN on loading JavaScript files

I am not so sure that this topic has been discussed previously. Anybody wants to discuss are most welcome. Topics may cover: Benefits of using CDN for JS Lib loading, Drawbacks, Overcomes Site optimization CDN comparison js hosting tips ..... and so on Best --Tonu

9/4/2010 9:24:54 AM 0 M A Hossain Tonu <maht...@gmail.com>
onkeypress event in <input /> tag

Hi everybody, I have the following: . . . . . . . . . . . . . . . . . . <input type="text" name="capt_var" value=" " maxlength="10" onkeypress="keystroke()" /> . . . . . . . . . . . . . . . . . . The onkeypress clause calls keystroke function but, inside it, how can I retrieve the last key pressed, before it is appended to the variable being captured? Thanks in advance for your help. Regards, Marco

9/3/2010 4:23:28 PM 4 "Marco A. Cruz Quevedo" <macr...@myway.com>
strange problem with external script

Sorry if I'm doing something stupid, but I just can't understand what I'm doing wrong... I wrote a function in an external script, which is included in my page with this tag "&lt;script src="pythonic.js>&lt;/script>". The function extends String. prototype as follows: String.prototype.title = function(){ var s = []; var ss = this.split(' '); for(i in ss) s.push(ss[i].slice(0,1).toUpperCase() + ss[i].slice(1).toLowerCase()); return s.join(' '); } (This function capitalises all the first letters of each word in a string). The problem is that when used from an external script, i

9/3/2010 1:28:40 PM 7 luismgz <luis...@gmail.com>
Open Word document from Internet Explorer on intranet

We have an internal website for document management. When you choose to open a document, it run the following script to open the file: <a href="javascript:opendokument('P:\\01\\2-010-01.doc')">012-010-01</ a> <SCRIPT language=javascript> function opendokument(dokument){ var objAppl; try{ objAppl = GetObject("","Word.Application"); objAppl.Documents.open(dokument); } catch(exception){ objAppl = new ActiveXObject("Word.Application"); objAppl.Visible = true; objAppl.Documents.open(dokument); } objAppl = null; } &lt;/script> The problem is that the macros

9/3/2010 8:16:39 AM 2 Magnus Olsson <magnusolsso...@gmail.com>
list (array) comprehensions in standard javascript

Hi there, As a python fan, I was excited about the imlementation of pythonic array comprehensions and other goodies in javascript 1.7 and newer versions by Mozila which, as we all know, were finally not included in the latest standard version of ecmascript. I wonder if there is any way to get these features working on all browsers. Has anyone written a library? Can anyone recommend an implementation? I wouldn't want to use one of those different languages implemented on javascript, such as coffescript and the likes. I would just like to use aarray comprehensions implemented as a

9/1/2010 6:23:26 PM 0 luismgz <luis...@gmail.com>
Accessing hardware

Hello, Is it possible to control hardware from Javascript in a web application in the same or similar way as Silverlight does? Thank you

9/1/2010 12:49:39 PM 16 pepe <pepe.hipol...@gmail.com>
(function f () {}).name

(function f () {}).name --> "f" (function f () {}).bind({}).name --> "" Why is this so ? I can't find anything in the specs about the .name property, where is it ? Thanks in advance, -- Jorge.

9/1/2010 11:40:29 AM 4 Ry Nohryb <jo...@jorgechamorro.com>
Robust hasOwnProperty

I recently tried out "My Library" (looks nice), and noticed it doesn't use hasOwnProperty, instead is uses a custom isOwnProperty function. I've written an alternative hasOwnProperty function to handle a couple of edge cases isOwnProperty doesn't: var hasOwnProperty = (function(hop){ return hop ? function(o,p){ return hop.call(o,p); }:function(o,p){ var proto = o.constructor.prototype, b = true, t; if(p in proto){ t = proto[p]; b = (proto[p]=1) !== o[p] || (proto[p]=2) !== o[p]; proto[p] = t; }

8/31/2010 10:23:36 PM 11 raider5 <raid...@hotmail.co.uk>
Best examples of javascript coding

Hi What js libraries are the best example's to look at for javascript coding practices? aoshi

8/31/2010 9:02:54 PM 4 aoshi <imran_mu...@yahoo.com>
onkeypress ??

Hi: I have noticed that the 'onkeypress="myfunc";' clause in my <textarea> element is called properly with most all keys *except* the keys: Del, and Backspace. I have not tested other special keys so far I use the 'myfunc' function to warn the user of how many characters are remaining before reaching my database limit. I've tried this on Chrome and IE7 so far. Both react the same. Does anyone have an explanation for this please ? Thanks ! -- Mel Smith

8/31/2010 4:17:54 AM 12 "Mel Smith" <med_cutout_syn...@aol.com>
Nasty Word Elimination ?

Hi: I have an <textarea> 254 chars here allowed</textarea> on my upcoming web site. Because my north american users will be alllowed to enter anything they wish in this text area, and because all other users will be allowed to view this same text area, I am concerned that disruptive users may wish to vent their spleen using language that will cause my other users to stop visiting the site. Question: Is there any .exe (or website) that I can use to 'clean up' an abusive text area input ?? Such that a set of text up to 254 chars can be returned with replace

8/30/2010 9:50:20 PM 2 "Mel Smith" <med_cutout_syn...@aol.com>
Date question

Hi, I am trying to convert a date that I get from DB in the "Thu Aug 26 00:00:00 EDT 2010" format to mm/dd/yyyy. I use d.format("mm/dd/yyyy") but I get 00/26/2010. What am I doing wrong?

8/30/2010 9:33:42 PM 11 Xerxes <mfkash...@gmail.com>
Response.Redirect

Below opens this script in new window - ------------------------------------------------------ <A HREF="/books/BooksHelp.asp" TARGET=_blank > Help </A> ------------------------------------------------------ how can this be done with "Redirect?" ------------------------------------------------------ Response.Redirect( "/books/BooksHelp.asp" TARGET=_blank); ------------------------------------------------------ but this doesn't work. crazyswede *** Sent via Developersdex http://www.developersdex.com ***

8/29/2010 9:29:02 PM 1 Rob Christiansen <robb_christian...@q.com>
Request( );

what is the difference between - var databasename = String( Request("databasename" ) ); --------------------------------- var databasename = Request("databasename" ); --------------------------------- and var databasename = Request.QueryString("databasename" ); crazyswede *** Sent via Developersdex http://www.developersdex.com ***

8/29/2010 9:39:01 PM 1 Rob Christiansen <robb_christian...@q.com>
Preserving Login status

What is the best way to preserve login status for succeeding pages? Should I save it in a Cookie? Or is there some way to preserve it in a global variable? Or is there some other way? I assume I test for this login status is to use an "onload" event. Right? Thanks..... Bruce

8/29/2010 2:39:46 PM 0 bruce <bruc...@bellsouth.net>
Unclosed HTML tag not working in document.write()

I'm just learning js, and am confused by some behavior I'm seeing in Chrome (version 5.0.375.127, OSX). This may be more of a browser issue than a javascript issue, so my apologies if this is the wrong forum. I've got the following little HTML file. <html> <head> &lt;script type="text/javascript"> function message() { document.write("<p>My message"); } &lt;/script> </head> <body onload="message()"> </body> </html> when I load it into Chrome, I get a blank page. Loading this HTML: <p>My message displays "My message". A little

8/28/2010 8:18:58 PM 8 Roy Smith <...@panix.com>
u need money click this website

http://123maza.com/25/color187/

8/28/2010 11:18:13 AM 0 ur best <urrankinl...@gmail.com>
Simple hack to get $5000 to your *Paypal account

Simple hack to get $5000 to your *Paypal account At http://youcanget.co.cc i have hidden the Paypal Form link in an image. in that website on Right Side below search box, click on image and enter your name and Paypal ID.

8/28/2010 11:25:48 AM 0 Hot Hot Hot <m.appalako...@gmail.com>
playstatechange

I've been unable to get playstatechange to trigger from a WMV video file. MSDN states that its as easy as elment.playstatechange = function() {} but it neither errors nor triggers. Interestingly element.playState does return a valid values. Does playstatechange actually work? Andrew Poulos

8/28/2010 9:26:11 AM 0 Andrew Poulos <ap_p...@hotmail.com>
Mistakes, Criticism, and Flames

It is usually best to own your mistakes. It is not that big a deal to make a dumb mistake; it's how you act after it's pointed out that counts the most. Think about this: Say someone acts like a punk while posting a code comment. Who does that reflect poorly on, the author of the code that is being commented on or the poster? If the author owns the mistake, then then he did the right thing and the other guy might tend to be perceived as a punk. Sure it sucks when the other person is being a jerk. And if you actually had mistake, its worse. But if it is a mistake, then fix i

8/27/2010 9:07:18 PM 4 Garrett Smith <dhtmlkitc...@gmail.com>
document.print in XHTML

I am using a ultra-simple PHP counter, that counts number of visits in a plain txt file counter.txt, e.g. index 10 pictures 8 cv 6 To display the number of visits, I use this combination: &lt;script type="text/javascript" src="counter.txt">&lt;/script> .... Number of visits: &lt;script type="text/ javascript">document.write(pictures)&lt;/script> This ultra-simple thing works perfect in HTML, but not in XHTML, since XHTML does not support document.write any more. Is there a way around for this problem? Thanks, Marko.

8/27/2010 8:00:41 PM 6 Pygmalion <gutta.lapidem.ca...@gmail.com>
FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2010-08-27)

----------------------------------------------------------------------- FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? ----------------------------------------------------------------------- The buttons on a confirm box cannot be changed, nor can a default button be specified. Change the question to a statement so that "OK" is suitable as the default response. Example: "Would you like us to charge your credit card?" (wrong) "We will now charge your credit card." (right). The complete comp.lang.javascript FAQ is at http://jibbering.com/faq/

8/26/2010 11:00:03 PM 2 "FAQ server" <javascr...@dotinternet.be>
JavaScript for Form (using CGI formmail) that sends user a copy of the form data

I have a form that collects field data, validates the data and sends it (on submit) to a specific email address and to a text file. This is done through a CGI form mail program. The form works well for this, but I=92d like to add some functionality using JavaScript. The functionality I=92d like to have is: When the form submits, and email is sent to the specific email, I=92d also like the same email sent to the person submitting the form. One of the fields on the form contains the email address of the person filling out the form(senderEmail). I=92d like to have the value of that f

8/26/2010 8:52:15 PM 1 TPK <tim.k...@comcast.net>
OpenWindow with new CSS

I'm using a CMS that applies the web site theme to every page within the web site,. I have a OpenWindow function that opens a popup window for some hyperlinks. Can I use javascript to access a different CSS file in the popup window ? The CSS file with then use display:none to hide the banner, side navigation, etc. Thanks

8/26/2010 5:59:31 PM 6 Syl <david.hun...@gmail.com>
* Simple hack to get $5000 to your Paypal account

* Simple hack to get $5000 to your Paypal account At http://moneyforwarding.co.cc i have hidden the Paypal Form link in an image. in that website on Right Side below search box, click on image and enter your name and Paypal ID.

8/26/2010 4:38:00 PM 0 Brazil Acctressess <paidi.shivakris...@gmail.com>
Javascript image player running out of memory?

Hello, I have a little animation player which successively loads and displays a series of image frames. On a single page, I have about 20 separate animations which the user can click to view. It's fine for the first 10 or so, but after you have watched enough of them, it stops working. It seems like maybe the page runs out of memory or something. I only have one animation playing at a time, and I load the images into an array when the user clicks a thumbnail. Once they are all loaded, I start playing them. When the user clicks a new animation, I am trying to release the

8/25/2010 7:59:18 PM 10 Bint <b...@ign.com>
FAQ Topic - How do I make a 10 second delay? (2010-08-25)

----------------------------------------------------------------------- FAQ Topic - How do I make a 10 second delay? ----------------------------------------------------------------------- There is no built-in way to pause execution in javascript such as a sleep function, but hosts usually provide a method of some form. Web browsers are designed for event driven programming and only provide the `setTimeout` and `setInterval` functions to facilitate timed delays. The delay before calling `getSnork` may exceed the second parameter to `setTimeout` and `setInterval` due to implementatio

8/24/2010 11:00:02 PM 0 "FAQ server" <javascr...@dotinternet.be>
Need help writing this mootools line as normal Javascript

Hi, Does anyone know how to rewrite this line (using the mootools "$" object) in terms of Javascript that doesn't depend on a JS framework? $.Require([gaJsHost + 'google-analytics.com/ ga.js'],callback.bind(this)) Thanks for your help, - Dave

8/25/2010 3:45:40 PM 1 laredotornado <laredotorn...@zipmail.com>
un-"hijacking" a stolen website

hi folks I recently discovered that my domain has been "hijacked" without permission by someone who purchased a domain, obviously set up forwarding at the dns level, in some kind of stupid attempt to hijack hits (or something) from my site. My actual site does appear under his domain-name, and I tested by updating a page, and it also updates, meaning he has forwarding which keeps his domain name in the browser window. I'm an html coder, not too "up" on JS, but I did use a simple function to prevent my pages from being "locked" into other frames like hotmail pages, etc.

8/25/2010 8:55:15 AM 3 "Delanie" <s...@cart.com>
Quicktime and qt_ended

On Apple's site at <url: http://developer.apple.com/safari/library/documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/QuickTimeandJavaScri.html > it talks about DOM events. I'm interested in is the "qt_ended" event. You need to add <object id="qt_event_source" classid="clsid:CB927D12-4FF7-4a9e-A169-56E4B8A75598" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=7,2,1,0" > </object> to the page and this IE-specific style to the movie style="behavior:url(#qt_event_source);" which while not ideal I can deal with. What I

8/25/2010 7:22:28 AM 4 Andrew Poulos <ap_p...@hotmail.com>
to replace characters into an imput

Hi at all having an imput text like: <input type="text" name="text1" id="text1" size=40 /> I want to unsert into this field some characters from js at cursor position or replacing a lot (one or more) selected characters. I tryed a js like: function insert(id,str) { var range; if(document.all) { var cDoc= document.getElementById(id); range=cDoc.selection.createRange(); range.text=str; } else if (window.getSelection) cWin = document.getElementById(id); userSelection = cWin.getSelection(); userSelection=str; cWin.document.execCommand('insertHTM

8/25/2010 6:44:29 AM 2 "jomla" <jo...@nonspam.com>
GPG/PGP Decryption/Encryption in Javascript

Any Javascript out there that decrypts GPG/PGP (encryption seems well catered for)?

8/25/2010 4:34:13 AM 1 JeahJeah <emaildun...@gmail.com>
Interrogate ID of logged in user?

Access to one of my web pages is htaccess protected, and I want to control some HTML attributes depending on the logged in user. Is there a way to interrogate the user ID at client-side which has been typed in by a user on that htaccess protected page? Thanks for any hint. Janis

8/24/2010 10:14:59 AM 12 Janis Papanagnou <janis_papanag...@hotmail.com>
Object Literals vs. Constructor Functions

Does one have advantages over the other. I've read that object literals are the preferred way of defining objects, but I'm not sure if that is true, or why if it is.

8/24/2010 1:20:53 AM 3 Corky <bobc.corco...@gmail.com>
FAQ Topic - Why do I get permission denied when accessing a frame/window? (2010-08-24)

----------------------------------------------------------------------- FAQ Topic - Why do I get permission denied when accessing a frame/window? ----------------------------------------------------------------------- In the normal browser security model, a script may only access the properties of documents served from the same domain or IP address, protocol, and port. Any attempt to access a property in such cases will result in a "Permission Denied" error. Signed scripts or trusted ActiveX objects can overcome this in limited situations. <URL: http://msdn.microsoft.com/en-us/

8/23/2010 11:00:03 PM 0 "FAQ server" <javascr...@dotinternet.be>
How do I capture the open-in-new-window/tab event?

Hi, I have a link <a href="download.pdf">Download</a> and I'm interested in capturing the event when someone right-clicks on the link and opens it in a new window/tab. Any advice you have is greatly appreciated, - Dave

8/23/2010 6:47:43 PM 3 laredotornado <laredotorn...@zipmail.com>
BBC Glow?

Many (perhaps all) JS frameworks are despis=E8d and rejected in this newsgroup. I am impressed by the design of the BBC framework called Glow; and by the quality of its documentation: http://www.bbc.co.uk/glow/ Has anyone an opinion of this open-source product? Thx. -- pete

8/23/2010 4:18:12 PM 9 pete <p...@pwilson.net>
jdivbox - a lightbox for jquery that support mp3, video, flash....

I developed a light box for jquery that support mp3,video,flash... http://jquery.phpbasic.com/

8/23/2010 4:23:44 PM 0 "www.phpbasic.com" <w2a...@gmail.com>
Newbie help with changing button image

Hello, I am new to javascript and html even. I am trying to rig up a button which is an image. When the image is clicked, I want it to change to a different image. I am using a javascript function to change the image. The function is getting called -- I can tell because I stuck an alert in there -- but the image never changes. What am I doing wrong? The entire code is below--thanks for any help! B <html> <head> <title>Test</title> &lt;script language="JavaScript"> function imgtest() { var theimage = document.getElementById ('ch

8/23/2010 3:34:01 PM 6 Bint <b...@ign.com>
'Hoisting' or Parsetime versus Runtime

Consider the following: alert(typeof foo); alert(typeof bar); alert(typeof baz); if (0) { function foo() { var a = 1; } var foo = 10; var bar = function baz() { var a = 1; }; } alert(typeof foo); alert(typeof bar); alert(typeof baz); Which alerts: Chrome: function, undefined, undefined, function, undefined, undefined IE: function, undefined, function, function, undefined, function Firefox: undefined, undefined, undefined, undefined, undefined, undefined Opera: function, undefined, undefined, function, undefined, undefined Is the effect I'm seeing

8/23/2010 1:12:54 PM 5 DaveC <david.andrew.chap...@googlemail.com>
missing ] after element list

hiii i have one code var data =response.cards; alert(data); $('#cards_received').html(''); for(var i=0;i<data.length;i++){ var datac=data[i]; var response = eval(" (" + datac + ") "); var divcard='<div id="" class="vcard" onclick="Card.showprofileon_recv_card('+response+');" style="border- bottom:1px solid white;background-image: url(images/'+data[i].image +');">'+data[i].user_from+'</div>'; $('#cards_received').append(divcard); } -------------------------------------------------------------------------------------------------------------------

8/23/2010 5:24:48 AM 5 Rahul Mehta <rahul23134...@gmail.com>
Error reading element styles when set in stylesheet - is this a browser bug?

Consider this: <html> <head> <style type=3D"text/css"> p.ex1 {margin-left:50px;} </style> </head> <body onload=3D" alert(document.getElementById('ex1').style.marginLeft); alert(document.getElementById('ex2').style.marginLeft); "> <p class=3D"ex1" id=3D'ex1'>A paragraph with a 20px left margin.</p> <p id=3D'ex2' style=3D'margin-left:20px;'>A paragraph with a 20px left margin.</p> </body> </html> Why is the first alert empty and how can I fix it without adding the style inline? Thanks, Ciar=E1n

8/23/2010 2:39:50 AM 3 Ciaran <cronok...@hotmail.com>
FAQ Topic - How do I close a window and why does it not work on the first one? (2010-08-23)

----------------------------------------------------------------------- FAQ Topic - How do I close a window and why does it not work on the first one? ----------------------------------------------------------------------- If a window was opened by javascript, then it can be closed without confirmation by using `windowRef.close()`. Before calling `windowRef.close()` (or other `window` methods), make sure the window reference is not null and its `closed` property is `false`. Popup windows cause usability problems and are generally best avoided. <URL: http://www.useit.com/alertb

8/22/2010 11:00:02 PM 0 "FAQ server" <javascr...@dotinternet.be>
FAQ Topic - Why does framename.print() not print the correct frame in IE? (2010-08-22)

----------------------------------------------------------------------- FAQ Topic - Why does framename.print() not print the correct frame in IE? ----------------------------------------------------------------------- IE prints the frame that has focus when you call the print method `frameref.focus();frameref.print();` <URL: http://msdn.microsoft.com/en-us/library/ms976105.aspx> The complete comp.lang.javascript FAQ is at http://jibbering.com/faq/ -- The sendings of these daily posts are proficiently hosted by http://www.pair.com.

8/21/2010 11:00:03 PM 1 "FAQ server" <javascr...@dotinternet.be>
AJAX Firefox/IE problem

I have a routine containing AJAX that will not work under Firefox but does work under IE. I have the following debug code in the routine. if(xmlhttp.readyState == 4){ alert("readyState: " + xmlhttp.readyState); alert("status: " + xmlhttp.status); } The first alert works. The second works under IE. Under Firefox an error is returned in the Error Console, xmlhttp is not defined. Can someone tell me what I'm doing wrong? Thanks... Bruce

8/21/2010 2:09:06 AM 15 bruce <bruc...@bellsouth.net>

Pages: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22









Newest Articles

Virtual Inheritance
13 min. 50 sec. ago

Simulating a Very Low IF (VLIF) receiver
16 min. 21 sec. ago

How do I insert the coordinates (centroid) of detected moving objects onto the object?
23 min. 18 sec. ago

Hardup Quark on Who Wants To Be A Millionaire
24 min. 41 sec. ago

Randsample (leave-one-out)
34 min. 19 sec. ago