Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 17573 invoked from network); 2 Sep 2009 03:57:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Sep 2009 03:57:47 -0000 Received: (qmail 91427 invoked by uid 500); 2 Sep 2009 03:57:44 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 90979 invoked by uid 500); 2 Sep 2009 03:57:44 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 90969 invoked by uid 99); 2 Sep 2009 03:57:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 03:57:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ed.hillmann@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-px0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 03:57:34 +0000 Received: by pxi9 with SMTP id 9so515857pxi.14 for ; Tue, 01 Sep 2009 20:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=RQ6JjqWDw113BIMIIH4wR7IkHihwXOpaHKJeZ/YAN+g=; b=k0Buzn1b+sYRYwd60DKQj/6F/rakceOAFdmhuvo3dVIaZlguaob6utiiuy3YiGD8Tb j9NAZb1hlEXTj4LJ50QuZ0vuHGFMUTfIVr26WUxIDTcwLpcpERzClFTvjUXeOmdkswX1 HRYzkxlzOzIrG4lH6JXTYndUV6MsEnFLTMEEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=dWIeF/Fp1t8aiLBvuwb1ZWqjFyG9rlJamu1E7bl1L2VZoqZc7qALlLEX2iBpyxMk16 AzbKbQkg6ts9rfSRS8kZldupWZpmPwwyH73e4ZOX9/UulyXKuXkvnuBnsi9wtCc5iRJB 3D2LNrAejrWrTlJEcVPBwW421jDam6ung70sg= MIME-Version: 1.0 Received: by 10.142.7.10 with SMTP id 10mr130419wfg.137.1251863833320; Tue, 01 Sep 2009 20:57:13 -0700 (PDT) Date: Wed, 2 Sep 2009 13:57:13 +1000 Message-ID: Subject: Q: How can I define a link that calls a Javascript function? From: Ed Hillmann To: Maven Users List Content-Type: multipart/alternative; boundary=00504502aca5179e1e04729043e9 X-Virus-Checked: Checked by ClamAV on apache.org --00504502aca5179e1e04729043e9 Content-Type: text/plain; charset=ISO-8859-1 Hi all. I've trying to write some documentation in xdoc, that defines web pages that are generated by Maven. I've been able to update the site.xml document so that I can define some Javascript functions in the HTML's element. That's all good. When I generate the page, I can see the Javascript methods where I expect them. My problem is trying to call them using an anchor element. Whenever I define an anchor element that tries to call the javascript function the link that is generated thinks I mean an anchor in the same page. So, it comes out So, when I click on it, nothing happens because there's no achor with that value. Is there a specific syntax I should be using to get the anchors defined so that they can call javascript methods defined within the HTML itself? Thanks for any help, Ed --00504502aca5179e1e04729043e9--