Re: [wdvltalk] Javascript window problem
Sorry for not replying Diane I've been away but I'm glad you got it sorted! MOU ___ All New Yahoo! Mail Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
[wdvltalk] Javascript window problem
I need to open a new window which displays some information when a link is clicked. I have what I think is a straight forward script for doing that. I tested it, and it works on the three computers I have access to, but not on my client's computer. It doesn't work for some of his customers either. Does anyone have an idea as to what the problem may be? Here's the script, in a table cell: td width=25% nowrap height=16 font size=2 color=#80 face=Arial a href=# onclick=javascript: newwindow = open('http://www.domain.com/info.asp', 'info', 'height=200, width=200, scrollbars=yes'); newwindow.document.write ('font face=arial color=#191970For:br%=strFor%/font'); newwindow.focus();See Info/a /font/td Thanks, Diane The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
Re: [wdvltalk] Javascript window problem
Diane If your tests fire and run the script directly then you have nothing wrong with your script. The fault, therefore, will lay with your client's computer - either they have a pop-up blocker enabled or they have scripting disabled. That would be my first port of call to work this out. Alternatively, you could always rejig things so your code actually runs inside the new window and resizes it onLoad, then specify a new window as the target of your link. That was you'll get a pop-up window when you click the link then the script will resize that new window. If scripting is disabled you'll still get your pop-up window just not to the correct size. MOU ___ All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
Re: [wdvltalk] Javascript window problem
Thanks, Ross If this is being called by clicking on a link, is it a popup window? Would a popup blocker block it, and if so, would it display an empty window? Also, all the pages on the site are scripted. I agree it can't be the code, but I don't know what it CAN be. I have a table of information that's displayed. One field can be too long, and my client wants me to replace it with a link to a smaller pop-up like window that contains the data. After reading your post, I tried making it a simple link. This should have need obvious to me from the beginning, just pass the data as a query string. I don't know how to resize the window though. One of the html sites I Googled says it can't be done in a function called via onload. I tried it and the onload function fires just fine *unless* I add code to resize the window. I've tried window.resizeTo and self.resizeTo, both stop the function from firing. So I went back to what I originally had, only I changed it to this: a href=# onclick=javascript: newwindow = open('info.asp?c=testing', 'info', 'height=200, width=200, scrollbars=yes');see info/a The line is now totally ignored, no window is displayed. Any ideas on how to resize the current window as it loads? Ross Clutterbuck wrote: Diane Alternatively, you could always rejig things so your code actually runs inside the new window and resizes it onLoad, then specify a new window as the target of your link. That was you'll get a pop-up window when you click the link then the script will resize that new window. If scripting is disabled you'll still get your pop-up window just not to the correct size. MOU The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
Re: [wdvltalk] Javascript window problem
- Original Message - From: Diane Schips If this is being called by clicking on a link, is it a popup window? If it's a normal link with target=_blank I don't think so, but a window opened by Javascript would surely be a popup snip So I went back to what I originally had, only I changed it to this: a href=# onclick=javascript: newwindow = open('info.asp?c=testing', 'info', 'height=200, width=200, scrollbars=yes');see info/a Maybe it's not causing the problem, but it should be window.open() shouldn't it? As in: featureStr = 'width=' + picWide + ',height=' + picHigh; window.open(imgURL,'newWin', featureStr); There's also a document.open() function which is for creating a page on the fly so open() on its own could confuse a browser Bj The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
Re: [wdvltalk] Javascript window problem
Thank you Ross, and BJ. I kept playing around with it and now it works! I'm not entirely certain what the difference is, but my client and his customers can all see it! Thanks for your help! Ross Clutterbuck wrote: Diane If your tests fire and run the script directly then you have nothing wrong with your script. The fault, therefore, will lay with your client's computer - either they have a pop-up blocker enabled or they have scripting disabled. That would be my first port of call to work this out. Alternatively, you could always rejig things so your code actually runs inside the new window and resizes it onLoad, then specify a new window as the target of your link. That was you'll get a pop-up window when you click the link then the script will resize that new window. If scripting is disabled you'll still get your pop-up window just not to the correct size. MOU ___ All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. • The WDVL Discussion List from WDVL.COM • To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: wdvltalk@lists.wdvl.com To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: '' To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.