Sam Laundon Posted October 29, 2005 Posted October 29, 2005 How to use a script? I am new to CWP with XSLT and am trying to learn how to use a link with a script. I have taken the xslt home page made with Site Assistant and want to create a login link that will take the user to proper page when logining in. Here is what Site Assistant produced: Login If my link is http://localhost/fmi/xsl/my_stylesheet.xsl?-db=my_database&-lay=my_layout&-grammar=fmresultset&-script=login_cwp Where does it go in the above xsl? Thanks in advance - Sam
Martin Brändle Posted October 29, 2005 Posted October 29, 2005 In connection also with your previous question about images: Writing XSLT stylesheets is nothing else than mixing xsl:... instructions that parse your XML result tree with plain HTML, text or XML, that forms your output.
Sam Laundon Posted October 30, 2005 Author Posted October 30, 2005 Thanks Martin, so far it is not working. I replaced: Login With: Login And I get the following message: The entity name must immediately follow the & in the entity reference. (XML-0067) I don't have a clue as to what I should be doing here Thanks again - Sam
Martin Brändle Posted October 30, 2005 Posted October 30, 2005 Sorry, forgot to say that one has to replace & with &
Sam Laundon Posted October 30, 2005 Author Posted October 30, 2005 Martin, we will get there yet. Here is what I did: Login And I get this error: The entity "amp-lay" was referenced, but not declared. (XML-0190) I have not ideal what the above means. Thanks again - Sam
Martin Brändle Posted October 30, 2005 Posted October 30, 2005 Please read carefully. You forgot the ; after each &
Sam Laundon Posted October 30, 2005 Author Posted October 30, 2005 Martin, I compain about my clients not reading all the time. Thanks that did it. Sam
Sam Laundon Posted November 1, 2005 Author Posted November 1, 2005 Martin, how would I use a script to automatically have the signed in client taken directly to their records? This has me stumped. I have the home.xslt that was created by site assistant. There will be an enter button for the client. I would then like the script to get the client's AccountName and then go to the appropriate records for that client. Presently I am using IWP which works great except for occasional problems the clients have with the Block Pop-Up Windows. I am exploring CWP as another option to IWP. I have a script that does what I described above, but the concept seems different in CWP.
Recommended Posts
This topic is 6960 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now