[MarkLogic Dev General] javascript in .xqy file

McBeath, Darin W (ELS-STL) D.McBeath at elsevier.com
Wed Aug 27 12:06:27 PDT 2008


You could try putting it all on one line.

________________________________

From: general-bounces at developer.marklogic.com 
To: general at developer.marklogic.com 
Sent: Wed Aug 27 14:01:38 2008
Subject: [MarkLogic Dev General] javascript in .xqy file 


I have the following script in the  <head> tag of my .xqy page:

 

<script type="text/javascript">

      // this should be in the head

      $(function(){

            $("#suggest2").autocomplete("test.xqy", {

            delay: 200,

            width: 260,

            selectFirst: false

        });

      })

</script>

 

However, this code breaks the .xqy page.  I have verified that this code works great in a standard html file, but as soon as I move it to my .xqy page, it causes errors.  I have tried adding extra curly braces in an attempt to escape them, and the page will then render, but the javascript isn’t evaluated correctly.

 

Does anyone know a ‘trick’ for using javascript like this in .xqy files?

 

Thanks

Mindie

 

________________________________

NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080827/7609b597/attachment-0001.html


More information about the General mailing list