From bob at fotografics.it Mon Jun 27 02:47:01 2011 From: bob at fotografics.it (Bob Schwartz) Date: Mon, 27 Jun 2011 09:47:01 +0200 Subject: [thelist] javascript help In-Reply-To: References: Message-ID: <3C58F7F9-237E-435F-B615-DA19AB772006@fotografics.it> > Bob, > > Is this the sort of thing you want - not my code - I found ages ago and use > it now and then for opening and closing windows. > The closeWindow seems to have the bit of code you might use ....it checks to > see if the window is open before closing it, you could add your own code in > there. > > Cheers Simon > > var windowHandle = null; > var windowHandle_closed = false; > > function openWindow() { > windowHandle = > window.open('http://www.example.com/','windowName','height=200,width=200'); > if (windowHandle_closed) { > windowHandle_closed = false; > } > } > > function closeWindow() { > if (windowHandle != null) { > if (!windowHandle_closed) { > windowHandle_closed = true; > windowHandle.close(); > } > } > } Thanks Simon, I'm sure that hidden in your code is the correct path to get where I want to go, but I'm too stupid when it comes to writing code to adapt it. Bob From alberto.domingo at uah.es Mon Jun 27 11:08:32 2011 From: alberto.domingo at uah.es (Alberto Domingo) Date: Mon, 27 Jun 2011 18:08:32 +0200 Subject: [thelist] javascript help In-Reply-To: <1889244D-17D0-4D71-A752-178702C5A4D0@fotografics.it> References: <1889244D-17D0-4D71-A752-178702C5A4D0@fotografics.it> Message-ID: Hi Bob, This could do what you describe: Popup contents The same code can be included in a script tag anywhere in the head or the body. Alberto At 10:35 26/06/2011, you wrote: >Would someone be so kind as to give me a hand with a simple javascript? > >What I need is a js that checks to see if a pop-up window has been >opened as a pop-up or not, and if not, write a link. > >i.e - if opener is null, then write http:///www.mulink.com, else do nothing. >-- > >* * Please support the community that supports you. * * >http://evolt.org/help_support_evolt/ > >For unsubscribe and other options, including the Tip Harvester >and archives of thelist go to: http://lists.evolt.org >Workers of the Web, evolt ! From alberto.domingo at uah.es Mon Jun 27 11:27:34 2011 From: alberto.domingo at uah.es (Alberto Domingo) Date: Mon, 27 Jun 2011 18:27:34 +0200 Subject: [thelist] javascript help Message-ID: Hi again Bob, Sorry, I misunderstood your description. Here is a code for three options. I hope some of them is what you need. This code is to be included in the page that shows as a popup. Also included as an attachment. Popoup contents Alberto At 10:35 26/06/2011, you wrote: >Would someone be so kind as to give me a hand with a simple javascript? > >What I need is a js that checks to see if a pop-up window has been >opened as a pop-up or not, and if not, write a link. > >i.e - if opener is null, then write http:///www.mulink.com, else do nothing. >-- > >* * Please support the community that supports you. * * >http://evolt.org/help_support_evolt/ > >For unsubscribe and other options, including the Tip Harvester >and archives of thelist go to: http://lists.evolt.org >Workers of the Web, evolt ! From alberto.domingo at uah.es Mon Jun 27 11:32:58 2011 From: alberto.domingo at uah.es (Alberto Domingo) Date: Mon, 27 Jun 2011 18:32:58 +0200 Subject: [thelist] javascript help Message-ID: Hi again Bob, Sorry, I misunderstood your description. Here is a code for three options. I hope some of them is what you need. This code is to be included in the page that shows as a popup. Also included as an attachment. The code seems to be removed in the process. Here is again. Change [ by <. Hope it works now. [html> [head> [/head> [body> Popoup contents [SCRIPT type="text/javascript"> if(!window.opener) { // if you just need to add the link, use next line document.write("

go to lists.evolt.org"); // if you need to change the body contents by the link, remove comments // in next line //document.body.innerHTML="

go to lists.evolt.org"; // if you want to redirect the window to a new address, remove comments // in next line //document.location.href='http://lists.evolt.org'; } [/SCRIPT> [/body> [/html> Alberto At 10:35 26/06/2011, you wrote: >Would someone be so kind as to give me a hand with a simple javascript? > >What I need is a js that checks to see if a pop-up window has been >opened as a pop-up or not, and if not, write a link. > >i.e - if opener is null, then write http:///www.mulink.com, else do nothing. >-- > >* * Please support the community that supports you. * * >http://evolt.org/help_support_evolt/ > >For unsubscribe and other options, including the Tip Harvester >and archives of thelist go to: http://lists.evolt.org >Workers of the Web, evolt ! From alberto.domingo at uah.es Mon Jun 27 11:47:05 2011 From: alberto.domingo at uah.es (Alberto Domingo) Date: Mon, 27 Jun 2011 18:47:05 +0200 Subject: [thelist] javascript help In-Reply-To: <65833688-7F57-48D7-974B-50EDEFF40681@fotografics.it> References: <1889244D-17D0-4D71-A752-178702C5A4D0@fotografics.it> <65833688-7F57-48D7-974B-50EDEFF40681@fotografics.it> Message-ID: If window.opener is NULL, window.opener would evaluate as FALSE in the if() conditional, so NOT(!) window.opener (!window.opener) is NOT FALSE, whis is TRUE, so the conditional redirects the page only if window.opener is NULL Probably you didn't notice the ! operator. I included a code with more options in another message. Alberto At 18:21 27/06/2011, Bob Schwartz wrote: >Re-reading it I figured out what happens - as the page loads it >redirects to the home or any other page I specify - perfect, thanks very much. > > > > Hi Bob, > > > > This could do what you describe: > > > > > > > > > > > > > > Popup contents > > > > > > > > > > The same code can be included in a script tag anywhere in the > head or the body. > > > > Alberto > > > > > > At 10:35 26/06/2011, you wrote: > >> Would someone be so kind as to give me a hand with a simple javascript? > >> > >> What I need is a js that checks to see if a pop-up window has > been opened as a pop-up or not, and if not, write a link. > >> > >> i.e - if opener is null, then write http:///www.mulink.com, else > do nothing. > >> -- > >> > >> * * Please support the community that supports you. * * > >> http://evolt.org/help_support_evolt/ > >> > >> For unsubscribe and other options, including the Tip Harvester > >> and archives of thelist go to: http://lists.evolt.org > >> Workers of the Web, evolt ! > > > > From drstuey at gmail.com Wed Jun 29 01:10:04 2011 From: drstuey at gmail.com (Stuart Young) Date: Wed, 29 Jun 2011 18:10:04 +1200 Subject: [thelist] Total Validator Pro subscription - worth it? Message-ID: Hi, is the Total Validator Pro Tool worth the money? http://www.totalvalidator.com/tools/protool.html It says its the best HTML validator and it does accessibility, links, spellcheck too. -- This is the gmail account of Stuart Young Pt Chev, Auckland, Aotearoa New Zealand From lee.kowalkowski at googlemail.com Wed Jun 29 03:11:41 2011 From: lee.kowalkowski at googlemail.com (Lee Kowalkowski) Date: Wed, 29 Jun 2011 09:11:41 +0100 Subject: [thelist] Total Validator Pro subscription - worth it? In-Reply-To: References: Message-ID: On 29 June 2011 07:10, Stuart Young wrote: > is the Total Validator Pro Tool worth the money? > http://www.totalvalidator.com/tools/protool.html > It says its the best HTML validator and it does accessibility, links, > spellcheck too. You can use the free version to see if it does what you want, I mean the pro version doesn't have any extra validation rules. You only need the pro version if you need any of the additional features. I've worked on projects where they've used the pro version because they had automated regression test scripts that stored the HTML response of every page, and automatically validated the HTML using the Total Validator's command-line. For ?25, that was definitely worth the money (a drop in the ocean for government projects). In fact that's the only reason I've seen the Pro version used for. The other major features seem to be based on satisfying authentication, this might be useful to some organisations depending on when in the development life-cycle they're performing this type of testing, but in most development environments authentication can be stubbed-out or mocked so that the authenticated pages are accessible directly whilst the application is being developed. The browser extension is good for manual validation. The only gotcha with this is that if you have a page resulting from a POST, it will launch Total Validator and that will issue a GET (but this is what Firefox does when you view-source anyway), so you have to be careful there. -- Lee www.webdeavour.co.uk From bobm at dottedi.biz Sat Jul 2 08:07:37 2011 From: bobm at dottedi.biz (Bob Meetin) Date: Sat, 02 Jul 2011 07:07:37 -0600 Subject: [thelist] JavaScript image enlarge effect Message-ID: <4E0F1819.70701@dottedi.biz> Can anyone point me to a non-commercial version of an ajaxy script that does similar to this one: http://www.magictoolbox.com/magicthumb/ I like the idea that it opens the image in a window which can be centered on top of the browser. The zoom effect is a plus, not a mandatory. I can create a simple ajax function to open an image, but the zoom effect and separate window are beyond my comfort level. Thx -- Bob dotted i - http://www.dottedi.biz LinkedIn: http://www.linkedin.com/in/bobmeetin From simonmacdonald at uk2.net Sat Jul 2 08:14:56 2011 From: simonmacdonald at uk2.net (Simon MacDonald) Date: Sat, 2 Jul 2011 14:14:56 +0100 Subject: [thelist] JavaScript image enlarge effect In-Reply-To: <4E0F1819.70701@dottedi.biz> References: <4E0F1819.70701@dottedi.biz> Message-ID: <02b301cc38ba$0ac77ca0$205675e0$@net> Bob, have you tried jquery tools Overlay - nice effects and simple http://flowplayer.org/tools/demos/overlay/index.html Cheers Simon -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Bob Meetin Sent: 02 July 2011 2:08 PM To: thelist at lists.evolt.org Subject: [thelist] JavaScript image enlarge effect Can anyone point me to a non-commercial version of an ajaxy script that does similar to this one: http://www.magictoolbox.com/magicthumb/ I like the idea that it opens the image in a window which can be centered on top of the browser. The zoom effect is a plus, not a mandatory. I can create a simple ajax function to open an image, but the zoom effect and separate window are beyond my comfort level. Thx -- Bob dotted i - http://www.dottedi.biz LinkedIn: http://www.linkedin.com/in/bobmeetin -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! __________ Information from ESET Smart Security, version of virus signature database 6259 (20110702) __________ The message was checked by ESET Smart Security. http://www.eset.com __________ Information from ESET Smart Security, version of virus signature database 6259 (20110702) __________ The message was checked by ESET Smart Security. http://www.eset.com From lists at frankmarion.com Sat Jul 2 17:53:29 2011 From: lists at frankmarion.com (Frank Marion) Date: Sat, 2 Jul 2011 18:53:29 -0400 Subject: [thelist] JavaScript image enlarge effect In-Reply-To: <4E0F1819.70701@dottedi.biz> References: <4E0F1819.70701@dottedi.biz> Message-ID: http://leandrovieira.com/projects/jquery/lightbox/ On 2011-07-02, at 9:07 AM, Bob Meetin wrote: > Can anyone point me to a non-commercial version of an ajaxy script that does similar to this one: -- Frank Marion lists [_at_] frankmarion.com From 437341 at gmail.com Sun Jul 3 02:32:03 2011 From: 437341 at gmail.com (Mohan Arun) Date: Sun, 3 Jul 2011 13:02:03 +0530 Subject: [thelist] JavaScript image enlarge effect Message-ID: >>I like the idea that it opens the image in a window which can be centered on top of the >>browser. The zoom effect is a plus, not a mandatory. I can create a simple ajax function to >>open an image, but the zoom effect and separate window are beyond my comfort level. Jquery lightbox plugin? http://leandrovieira.com/projects/jquery/lightbox/ ------------ Mohan http://www.mohanarun.com