June 24, 200520 yr I am using the javascript properties, history.go and location.href in the following code. The history.go works fine, the location.href partially works. It sends the user back to the confirm_events.xsl page but does not execute the rest of the string. Any help will be much appreciated.......Ray <xsl:attribute name="onload"> <xsl:choose> <xsl:when test="$current-action = 'new'">history.go(-1)</xsl:when> <xsl:otherwise> location.href = 'confirm_events.xsl?-db=Web_TA_Pre_Reg_DB&-lay=Registration Evaluation Form-2&-error=confirm_events.xsl&-token=<xsl:value-of select="$request-query/fmq:query/fmq:parameter[@name = '-token']" />&-token.1=<xsl:value-of select="$request-query/fmq:query/fmq:parameter[@name = '-token.1']" />&-token.2=<xsl:value-of select="$request-query/fmq:query/fmq:parameter[@name = '-token.2']" />&-token.3=<xsl:value-of select="$request-query/fmq:query/fmq:parameter[@name = '-token.3']" />&ParticipantIDQ=<xsl:value-of select="$request-query/fmq:query/fmq:parameter[@name = '-token.3']" />&-sortfield.1=EventDate&-max=40&-find'; </xsl:otherwise> </xsl:choose> </xsl:attribute>
June 26, 200520 yr I see two things: - replace the spaces in your layout parameter with %20 - all tokens must be named now: -token.something . The very first is not. Another question: Why do you use JavaScript for that? What happens if the client has not turned on JavaScript in his browser? You could also use server-side redirects. Look at my example in this thread: http://www.fmforums.com/threads/showflat.php?Cat=0&Number=151616&an=0&page=1#151616
June 26, 200520 yr Author HI Martin, I will give both your suggestions a whirl when I return to work tomorrow, many thanks........... Ray ====================================
June 27, 200520 yr Author Hi Martin, I have a rather captive audience and provide user support for those having problems using our database online. Javascript has not been a problem to date. I had posted this same question to a Javascript forum and received a response (via an informative link) that resolved the problem. I used an unescaped " instead of the invalid HTML entity reference "'" and it worked fine. Thanks again for your input.........roadrunner(Ray)
Create an account or sign in to comment