﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Pass value from script to url</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 22 Sep 2026 07:06:39 GMT</lastBuildDate><ttl>20</ttl><item><title>Pass value from script to url</title><link>https://forums.millisecond.com/Topic23134.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;Is it possible to pass a value of the script as an output parameter via url?&lt;br/&gt;&lt;br/&gt;For example I would like to return a parameter d of the iat test at the end of the script &lt;a href="http://example.com?dparam=XXXX"&gt;http://example.com?dparam=XXXX&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Is it also possible to pass these values as POST instead of GET?&lt;br/&gt;&lt;br/&gt;Thank you</description><pubDate>Wed, 20 Dec 2017 09:41:56 GMT</pubDate><dc:creator>francescodf</dc:creator></item><item><title>RE: Pass value from script to url</title><link>https://forums.millisecond.com/Topic23140.aspx</link><description>&lt;div data-id="23138" class="if-quote-wrapper" unselectable="on" data-guid="1513791705721"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23138" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23138" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23138" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, December 20, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23138"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23134" class="if-quote-wrapper" unselectable="on" data-guid="1513791705721"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23134" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23134" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23134" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;francescodf - Wednesday, December 20, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23134"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there,&lt;br/&gt;&lt;br/&gt;Is it possible to pass a value of the script as an output parameter via url?&lt;br/&gt;&lt;br/&gt;For example I would like to return a parameter d of the iat test at the end of the script &lt;a href="http://example.com?dparam=XXXX"&gt;&lt;a href="http://example.com?dparam=XXXX"&gt;http://example.com?dparam=XXXX&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Is it also possible to pass these values as POST instead of GET?&lt;br/&gt;&lt;br/&gt;Thank you&lt;a class="if-quote-goto quote-link" href="#" data-id="23134"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can set the URL a web experiment redirects to in a script via the defaults.finishpage propery. That URL can include query parameters, i.e. you'd do something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptend = [defaults.finishpage = text.redirect_to.item(1);]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text redirect_to&amp;gt;&lt;br/&gt;/ items = ("&lt;a href="http://example.com?subjectid=&amp;lt;%script.subjectid%&amp;gt;&amp;amp;dparam=&amp;lt;%expressions.d%&amp;gt;" )"=""&gt;&lt;a href="http://example.com?subjectid=&amp;lt;%script.subjectid%&amp;gt;&amp;amp;dparam=&amp;lt;%expressions.d%&amp;gt;")"&gt;http://example.com?subjectid=&amp;lt;%script.subjectid%&amp;gt;&amp;amp;dparam=&amp;lt;%expressions.d%&amp;gt;")&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a href="http://example.com?dparam=XXXX"&gt;&lt;br/&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23138"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks Dave :)</description><pubDate>Wed, 20 Dec 2017 09:41:56 GMT</pubDate><dc:creator>francescodf</dc:creator></item><item><title>RE: Pass value from script to url</title><link>https://forums.millisecond.com/Topic23138.aspx</link><description>&lt;div data-id="23134" class="if-quote-wrapper" unselectable="on" data-guid="1513790222697"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23134" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23134" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23134" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;francescodf - Wednesday, December 20, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23134"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there,&lt;br/&gt;&lt;br/&gt;Is it possible to pass a value of the script as an output parameter via url?&lt;br/&gt;&lt;br/&gt;For example I would like to return a parameter d of the iat test at the end of the script &lt;a href="http://example.com?dparam=XXXX"&gt;&lt;a href="http://example.com?dparam=XXXX"&gt;http://example.com?dparam=XXXX&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Is it also possible to pass these values as POST instead of GET?&lt;br/&gt;&lt;br/&gt;Thank you&lt;a class="if-quote-goto quote-link" href="#" data-id="23134"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can set the URL a web experiment redirects to in a script via the defaults.finishpage propery. That URL can include query parameters, i.e. you'd do something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptend = [defaults.finishpage = text.redirect_to.item(1);]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text redirect_to&amp;gt;&lt;br/&gt;/ items = ("&lt;a href="http://example.com?subjectid=&amp;lt;%script.subjectid%&amp;gt;&amp;amp;dparam=&amp;lt;%expressions.d%&amp;gt;")"&gt;http://example.com?subjectid=&amp;lt;%script.subjectid%&amp;gt;&amp;amp;dparam=&amp;lt;%expressions.d%&amp;gt;")&lt;/a&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a href="http://example.com?dparam=XXXX"&gt;&lt;br/&gt;&lt;/a&gt;</description><pubDate>Wed, 20 Dec 2017 09:21:21 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>