Post parameters in URL in preview?

Get help using Construct 3!

Post » Thu Oct 12, 2017 7:05 am

Does anyone know if there's a way to pass variables in the URL in the preview window? When uploading to my server I can pass parameters using the Browser.QueryParam("variable") method this works well, but I can't test this in the preview windows as the URL can't be edited. Does anyone know a workaround without uploading every build to my server?
B
4
Posts: 6
Reputation: 212

Post » Thu Oct 12, 2017 9:14 am

In the settings of Construct 3 you can modify the "Preview in" option so that it happens in a browser tab, then allowing you to modify the URL as much as you want.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,310
Reputation: 71,084

Post » Thu Oct 12, 2017 11:14 am

Perfect, thanks! (I only wish you could change the settings on the fly instead of restarting construct, but that's for another post : )
B
4
Posts: 6
Reputation: 212

Post » Fri Oct 13, 2017 9:31 am

You can always try to post it on the suggestion platform, but I have a feeling due to Construct being in a browser, this likely won't be an easy thing to implement, possibly impossible to.

Perhaps you should have a look into the remote preview ? This could allow you to open your preview directly in a regular browser, external to C3 and possibly still allow you to add elements at the end of your URL ?
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,310
Reputation: 71,084

Post » Fri Oct 13, 2017 11:33 am

Thanks, it'll work fine locally in the browser, I just open up a small separate window to run the preview in.
I couldn't get url parameters in the remote preview to work, but for now I'm fine :)
B
4
Posts: 6
Reputation: 212


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests