How to open a url into a hidden frame

97 views
Skip to first unread message

Richard U

unread,
Aug 24, 2015, 12:15:37 AM8/24/15
to tiddl...@googlegroups.com
I'm trying to create a link that communicates with my home automation system. I do that by opening a URL, which returns a simple "Done". Since I don't want to see a new tab with the word done, I'd like to redirect that to a hidden frame or hide it in some other way. Does anyone have any ideas? Or code?

UPDATE: I figured out how to do this:

<iframe style="display:none;" name="some"/>

<form method="GET" target="some">
    <button type="submit" formaction="choice1.com">Choice1</button>
    <button type="submit" formaction="choice2.com">Choice2</button>

</form>

Mat

unread,
Aug 24, 2015, 6:12:14 AM8/24/15
to TiddlyWiki
Spontaneously, I'd say this is a browser issue and you'll probably find better info merely googling than in this group. Or do I misunderstand your question - is it really a TW issue?

Exciting with a home automation system, - please, I'd love to hear more about how you involve TW in this!!

<:-)

Richard U

unread,
Aug 24, 2015, 9:24:41 AM8/24/15
to tiddl...@googlegroups.com
UPDATE:

I figured out the answer. Tried to edit my original question, then the system deleted it. 

Here is what I did:

<iframe style="display:none;" name="some"/>

<form method="GET" target="some">
    <button type="submit" formaction="choice1.com">Choice1</button>
    <button type="submit" formaction="choice2.com">Choice2</button>

</form>


For home automation, I use a program called CQC which connects to just about anything: lights, thermostats, IR, IP etc. It has an httptrigger driver, which listens for commands that you can train to do anything you want (e.g. turn on lights, control tvs, etc.). 

I wouldn't call this an issue, but I have experimented with other html editors which allow me to direct a link to a hidden frame, thus not triggering the dreaded tab with just the word "Done" on it. I just haven't figured out how to do this in TW.
Reply all
Reply to author
Forward
0 new messages