incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kay Schenk <kay.sch...@gmail.com>
Subject Re: [DL] need help with a very odd problem on new main DL page...
Date Wed, 02 May 2012 22:58:10 GMT


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( "<div
> 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( "<h2>" + myURLlink+ "Download Apache OpenOffice
>> " + VERSION + "</a></h2>" + "<p>" + myURLlink + "Click to start
>> downloading the most recent version for " + getPlatform(SCHEMA) + "
>> and " + getLanguage() + "." + "<br/></p>" ); } else { <!-- dump SF
>> extension --> alert("link before replacment: " + LINK); var newLINK
>> = LINK.replace(/\/download$/,""); alert ("link after replacment: "
>> + newLINK); <!-- route everybody to somplace else ??? --> 
>> document.write( "<h2><a href='" + newLINK + "' title='" + newLINK
>> + "'>Download Apache OpenOffice</a></h2>" + "<p><a href='"
+
>> newLINK + "' title='" + newLINK + "'>Get Apache OpenOffice for " +
>> getLanguage() + " from a Native Language community area.</a></p>"
>> ); } 
>> -----------------------------------------------------------------
>> 
>> 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

Mime
View raw message