Pode HTML Iframe condition probel

Get help using Construct 2

Post » Sat Sep 15, 2012 9:38 pm

I'm looking for someones help who is familiar with the PodeHTML Ifram plugin. I'm trying to load the current HTML iframe page into a text sprite using the currenturl expression. It pops up an error of undefined however assertion failure expvalue.setstring without string type is the error message.

what is the correct way to load an iframe url into a text sprite? I've got every tick set text.text to "URL:"&Frame.CurrentURL

Any help would be greatly appreciated
B
67
S
21
G
15
Posts: 701
Reputation: 15,579

Post » Sat Sep 15, 2012 9:59 pm

Try "URL:" & str(frame.CurrentURL)

The error indicates that the value isn't of string type.
Casting it might help.

Maybe something @Pode should have a look at.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Sep 16, 2012 2:35 am

@Kyatric

I figure out that localhost was causing that particular problem. When I upload the error goes away but the text never changes to what it should. I've tried urldecode, urlencode str and str(urldecode/urlencode all of which turn up undefined as the text. Any thoughts?

BTW forgive the spelling errors, I must have sticky keys on my laptop. lanceal2012-09-16 02:37:34
B
67
S
21
G
15
Posts: 701
Reputation: 15,579

Post » Sun Sep 16, 2012 3:44 pm

Anyone have a thought on how to pull the current iframe url into a string?
B
67
S
21
G
15
Posts: 701
Reputation: 15,579

Post » Thu Oct 11, 2012 12:26 pm

@lanceal : here's a new build (v1.42) of the iframe plugin, with a change to the way it deals with "current URL".
You can now retrieve the current URL at edit time and runtime.

The plugin : https://dl.dropbox.com/u/1412774/IFrameURLDemo/pode_html_iframe.1.42.zip
The demo : https://dl.dropbox.com/u/1412774/IFrameURLDemo/index.html
The .capx : https://dl.dropbox.com/u/1412774/IFrameURLDemo/IFrameURLDemo.capxhttps://dl.dropbox.com/u/1412774/IFrameURLDemo/IFrameURLDemo.capx
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Oct 11, 2012 3:10 pm

Thanks much @Pode :)
B
67
S
21
G
15
Posts: 701
Reputation: 15,579


Return to How do I....?

Who is online

Users browsing this forum: mercuryus and 19 guests