Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 441FBC6C8 for ; Wed, 2 May 2012 23:02:49 +0000 (UTC) Received: (qmail 94738 invoked by uid 500); 2 May 2012 23:02:48 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 94663 invoked by uid 500); 2 May 2012 23:02:48 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 93877 invoked by uid 99); 2 May 2012 23:02:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 23:02:48 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 66.94.237.213 is neither permitted nor denied by domain of kay.schenk@gmail.com) Received: from [66.94.237.213] (HELO nm12.access.bullet.mail.mud.yahoo.com) (66.94.237.213) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 May 2012 23:02:39 +0000 Received: from [66.94.237.127] by nm12.access.bullet.mail.mud.yahoo.com with NNFMP; 02 May 2012 23:02:18 -0000 Received: from [98.139.221.56] by tm2.access.bullet.mail.mud.yahoo.com with NNFMP; 02 May 2012 23:02:18 -0000 Received: from [127.0.0.1] by smtp109.sbc.mail.bf1.yahoo.com with NNFMP; 02 May 2012 23:02:18 -0000 X-Yahoo-Newman-Id: 715025.19437.bm@smtp109.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rb0nJlEVM1mEDa7rgwExmNoGV5wtftasHezkeGoqZdAY8hS 2kLkuzRzFdZuubgGGronvXBHv9MTUY4q_GqCZZ7ntMGqJ_rg8wdDVGkcdBPb hFUm7Xzo2WxckHdebqFNvystth3JoQGdz_EZzwCJFjF3Um5gD0Nuwf3GU.iX .Pa1Y9YrLDQUPs5pywwl4mX.GnZnMfWlSTT2yVEMbu_l9C1uLriGPSXbZUOX snQEo5Dp2AEp_0PgzUjbsV4o5MGgIKzyRySb2XrP3FQPSP1lQEUqJjOC8VTI fWufpYTs1moHzY86Z1DG.kvjaRVao_llngBKl8LJ.tFB_2otXEAFHzBpdBQv GL9Spu7.y9JCkGmwNxFcZAoe8Pfsq5ypEnjzq7D8yrnRqt.gXMYjgHveD.tt L3TEt3U2G9XCzRQ53m.pmzzW8GDQROSdE_zb5VFNJE9AJb1F9khfglymcTcL 5qdVrhQeYCnX9.R.0ZvByoFFwwEjO6C4E0.F67u1_xKm6UJtLIMGkc0IE.vt IZqPV5rOPgDdHJ7hjUWicJZTA2prAXGvS4adpL87UR1xYwU1JSvLhKfi23qR uNYmigbMQm18HZqFv5j7Htig9k9pUkEUGq87Q0neY1t1ZZLr5gf9t_moubeG jajDfJaJ.gNvUr3M- X-Yahoo-SMTP: dHt73eiswBAYjuZ6oL.TTjbe.KQkAIve Received: from [192.168.1.101] (kay.schenk@69.106.220.86 with plain) by smtp109.sbc.mail.bf1.yahoo.com with SMTP; 02 May 2012 16:02:18 -0700 PDT Message-ID: <4FA1BC02.3070402@gmail.com> Date: Wed, 02 May 2012 15:58:10 -0700 From: Kay Schenk User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120421 Thunderbird/12.0 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: [DL] need help with a very odd problem on new main DL page... References: <4FA174E4.5040402@gmail.com> <1A954730-85D2-485B-AA8C-AA62A7D99807@comcast.net> In-Reply-To: <1A954730-85D2-485B-AA8C-AA62A7D99807@comcast.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 05/02/2012 12:42 PM, Dave Fisher wrote: > Hi Kay, > > The prior line of code is controlling the green button's link. This > part needs to be incorporated into the hasMirrorLink if then else. > > //alert ("myURLlink :" + myURLlink); document.write( "
class=\"first button green\" id=\"optionitem1\" > onclick=\"openItem('optionitem1','" + LINK + "');" + "return > false;\">" ); > > Regards, Dave OMG! Thank you SO much...I knew another set of eyes would do it! :) > > On May 2, 2012, at 10:54 AM, Kay Schenk wrote: > >> Something very odd is happening with my testing of the new main DL >> page at: >> >> http://ooo-site.staging.apache.org/download/test/index_new_dl.html >> >> and I hope a new set of eyes or braincells or something can help. >> >> If you bring up the source of the page you'll see this bit of JS >> code: >> >> ------------------------------------------------------------------ >> //alert ("hasMirroLink: " + hasMirrorLink() ); if ( hasMirrorLink() >> ) { document.write( "

" + myURLlink+ "Download Apache OpenOffice >> " + VERSION + "

" + "

" + myURLlink + "Click to start >> downloading the most recent version for " + getPlatform(SCHEMA) + " >> and " + getLanguage() + "." + "

" ); } else { alert("link before replacment: " + LINK); var newLINK >> = LINK.replace(/\/download$/,""); alert ("link after replacment: " >> + newLINK); >> document.write( "

Download Apache OpenOffice

" + "

Get Apache OpenOffice for " + >> getLanguage() + " from a Native Language community area.

" >> ); } >> ----------------------------------------------------------------- >> >> all is fine when a mirror link is found. However, when one is NOT >> found here is what is happening to me (I tested with a Solaris UA >> setup, a platform we are no longer supporting which ended up >> here): >> >> * I get the first alert showing me a proposed downlosd link, which, >> due to the former code, generates: >> http://www.openoffice.org/download/other.html/download >> >> the trailing "/download" is appended for SourceForce >> requirement... >> >> * the edit to ditch the trailing "/download" seems to work and I >> now see: http://www.openoffice.org/download/other.html >> >> in second alert. >> >> * when I put my mouse OVER the now generated links, I SEE >> http://www.openoffice.org/download/other.html, and this is what >> shows up in my "message" area of Firefox. >> >> But, when I click on the link, I get bounced over to: >> http://www.openoffice.org/download/other.html/download >> >> which is of course erroneous...and I get a "404". >> >> Any ideas on this at all??? I'm at wits end. >> >> I am really trying to get this setup so no one gets thrown over a >> cliff under any circumstance and this is a puzzle I can't seem to >> solve. >> >> >> Thanks for any help on this. I'm off to some appointments and I'll >> check back later... >> >> >> >> -- >> ------------------------------------------------------------------------ >> >> MzK >> >> "Well, life has a funny way of sneaking up on you And life has a >> funny way of helping you out Helping you out." -- "Ironic", Alanis >> Morissette > -- ------------------------------------------------------------------------ MzK "Well, life has a funny way of sneaking up on you And life has a funny way of helping you out Helping you out." -- "Ironic", Alanis Morissette