Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2007, 10:43 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default incorporate javascript, works in html but not xslt

Hi,
How do i incorprate the following code in my xslt file.
This script works in html but not in the xslt file.
This is part of my previous post where I want javascript popup and set variable & pass parameters.

<script>
   var windowW=20// wide
   var windowH=208 // high
   var windowX = 20 // from left
   var windowY = 20 // from top
   var urlPop = "http://srv08-za119/fcparmalattest/browse2.aspx?o=769"
    var title = "This Is A Frameless Popup Window"
    var autoclose = true

      s = "width="+windowW+",height="+windowH;
        var beIE = document.all?true:false

        function openFrameless(){
        if (beIE){
        NFW = window.open("","popFrameless","fullscreen,"+s)
        NFW.blur()
        window.focus()
        NFW.resizeTo(windowW,windowH)
        NFW.moveTo(windowX,windowY)
        var frameString=""+
        "<html>
          "+
          "<head>
            "+
            "<title>"+title+"</title>"+
            "
          </head>"+
          "<frameset rows='*,0' framespacing='0' border='0' frameborder='0'>
            "+
            "<frame name='top' src='"+urlPop+"' scrolling='auto'>"+
            "</frame>"+
            "<frame name='bottom' src='about:blank' scrolling='no'>"+
           "</frame>"+
          </frameset>"+
          "
        </html>"
        NFW.document.open();
        NFW.document.write(frameString)
        NFW.document.close()
        } else {
        NFW=window.open(urlPop,"popFrameless","scrollbars, "+s)
        NFW.blur()
        window.focus()
        NFW.resizeTo(windowW,windowH)
        NFW.moveTo(windowX,windowY)
        }
        NFW.focus()
        if (autoclose){
        window.onunload = function(){NFW.close()}
        }
        }

      </script>
      </head>

<body> <a href="javascript:openFrameless()">click here</a></body>

I tried attacheing the entire file but no luck!

Please Assist!

Regard,


 
Old December 10th, 2007, 04:22 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Hi,

I dont think you are escaping your quotes correctly
 
Old December 12th, 2007, 03:32 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thank You for your assistance but unfortunatley it is still not working!

I am trying to onclick open a frameless popup that closes automatically when losing focus.

Regards,






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to incorporate an html code in xslt ismailc XSLT 22 January 16th, 2008 05:22 AM
Incorporate HTML Code in XSLT (Drop down border) ismailc XSLT 3 January 14th, 2008 09:18 AM
Javascript works in IE7 not in FF 2 swifty_programmer Javascript 2 August 31st, 2007 02:07 AM
Javascript Works Fine in Aspx page but... vivek_inos Javascript 0 June 14th, 2006 01:57 AM
Does Print Template <HTML XMLNS:IE> works w/ xslt? gracehanh XSLT 0 July 20th, 2005 08:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.