Page 23 of 121

Re: Guideme - Bug

Posted: Tue Jul 29, 2014 5:00 am
by Takenaga
PlayfulGuy wrote: @philo - did you note my other post too? I had a question about using overRide.leftHtml and forms.

Also I've been playing with html for the left panel but can't get images to display. I just get the little X in a box thing. How would I construct the path to the image (like is there a certain protocol I have to specify or something), and do I need to add the image to the jar file?

Thanks
PG
I will put this feature request on the list on github and try to look into it.

Re: Guideme - Bug

Posted: Tue Jul 29, 2014 8:33 am
by philo
Takenaga wrote:
PlayfulGuy wrote: @philo - did you note my other post too? I had a question about using overRide.leftHtml and forms.

Also I've been playing with html for the left panel but can't get images to display. I just get the little X in a box thing. How would I construct the path to the image (like is there a certain protocol I have to specify or something), and do I need to add the image to the jar file?

Thanks
PG
I will put this feature request on the list on github and try to look into it.
The image needs to be in the media directory
it also needs the correct path
it is probably documented in this thread somewhere, I will not be able to check the code til Friday, but it does work with the correct path.

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Tue Jul 29, 2014 8:41 am
by philo
philo wrote:
meson1 wrote:Are images in the right hand pane not supported? Or is it that GuideMe isn't set up to look for them in the media directory?
meson1.
It is a browser control, so will handle any html.
I would guess it would be looking for the image in the install directory as the browser does not know where the media directory is.
I am already doing a string replace on the html to replace <span>xxxx</span> where xxxx is any of the settings or java variables, I will do something similar with the media directory.

So \MediaDir\ would get replaced by the actual path to the media directory

Code: Select all

<img src="\MediaDir\button.png" alt="stroke" height="128"/>
Change is in 0.0.9
I think this should work for the lefthtml pane as well

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Tue Jul 29, 2014 9:49 pm
by wheresmything
OK, this is a bit off topic, but as I start work on my revolutionary idea (which is actually not the least bit revolutionary) I wanted to use the models from the page 1 image of Hearts Club, but I don't know who they are. Can anyone tell me who those 6 models are?

Thanks

Re: Guideme - Bug

Posted: Tue Jul 29, 2014 11:46 pm
by guardianx
PlayfulGuy wrote: @philo - did you note my other post too? I had a question about using overRide.leftHtml and forms.

Also I've been playing with html for the left panel but can't get images to display. I just get the little X in a box thing. How would I construct the path to the image (like is there a certain protocol I have to specify or something), and do I need to add the image to the jar file?

Thanks
PG
I use leftHtml fairly extensively in my tease here.

This is what I learned:
1. One way input.
You can pass variables to the HTML page via query string parameters. But you cannot pass values from the html form objects back to guideMe.

2. Browser differences.
GuideMe uses IE browser engine to render the HTML. The version of IE is dependent on what you have on your OS. So your pc might use IE8, while someone else might be IE7 etc.

This you means you might have to deal with possible IE quirks, CSS style behavior etc. HTML may look perfectly fine yet look funny on another pc. I have no clue what happens on a mac, I'm guessing Safari is being used.

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Wed Jul 30, 2014 6:35 am
by Trusfrated
wheresmything wrote:OK, this is a bit off topic, but as I start work on my revolutionary idea (which is actually not the least bit revolutionary) I wanted to use the models from the page 1 image of Hearts Club, but I don't know who they are. Can anyone tell me who those 6 models are?

Thanks
Kayden Kross, Elle Alexandra
Khyanna Song, Bailey Rose
Tori Black, Tiffany Thompson

(They're all in the Hearts Club beta download.)

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Wed Jul 30, 2014 1:21 pm
by wheresmything
Excellent, thanks

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Mon Aug 11, 2014 6:55 pm
by PlayfulGuy
@guardianx - Thanks. Looking through your code helped me sort out the issue, and taught me a couple tricks too. Much appreciated.

Now can someone tell me what I'm doing wrong? I've made a page to allow the user to enter a passcode, verify the code and go to the appropriate page. It should be dirt simple but....

Here's my page:

Code: Select all

     <Page id="getCode">       <Text>        <p>Page to enter passcode<br />           </p>            <form>              <p>So what's the code boy? <input type="text" name="TheCode" size="10" value=""/><br />            </p>            </form>      </Text>             <Image id="start.jpg" />          <Button target="CodeIncorrect" onclick="checkCode()">Right?</Button>       <javascript>        <![CDATA[        function checkCode() {            var res = guideSettings.getFormField("TheCode");        var theCode = scriptVars.get("vCode");                jscriptLog("checkCode: comparing res='" + res + "' to vCode='" + theCode +"'");                     if ( res == theCode ) {          jscriptLog("Codes match!");                     overRide.setPage("page96");        }        else {          jscriptLog("Codes do NOT match!");                    }        }        ]]>           </javascript>    </Page> 
When I run the tease I get the following jscript.log

Code: Select all

 2014-08-11 12:44:52,081 INFO  Jscript - Starting ScriptVariables: {vCode=4345}2014-08-11 12:44:52,081 INFO  Jscript - Starting Flags {Image37,Image07,Image26,Image44}2014-08-11 12:44:52,089 INFO  Jscript - checkCode: comparing res='4345' to vCode='4345'2014-08-11 12:44:52,089 INFO  Jscript - Codes match!2014-08-11 12:44:52,089 INFO  Jscript - Ending ScriptVariables: {vCode=4345}2014-08-11 12:44:52,089 INFO  Jscript - Ending Flags {Image37,Image07,Image26,Image44} 
So, it all appears to work, but I end up on the page "CodeIncorrect" as defined on the button, rather than the target page being overridden by the onClick function as intended.

WTF?

Thanks for any and all input,

PG

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Mon Aug 11, 2014 8:14 pm
by philo
PlayfulGuy wrote:Now can someone tell me what I'm doing wrong? I've made a page to allow the user to enter a passcode, verify the code and go to the appropriate page. It should be dirt simple but....
          overRide.setPage("page96");
overRide only works in function pageLoad()

So if you set a variable in function checkCode()

Code: Select all

        if ( res == theCode ) {          jscriptLog("Codes match!");          scriptVars.put("code", "correct");        }        else {          jscriptLog("Codes do NOT match!");          scriptVars.put("code", "incorrect");                   } 
On page CodeIncorrect check the value and redirect if needed

Code: Select all

function pageLoad(){    var code= scriptVars.get("code");     if (code == "correct") {          overRide.setPage("page96");    } else {      //Actual script stuff for the page   }}
It should work I have not tested the above code,

thinking about it it is a bit clunky so I might change it so it at least checks overRide.setPage in a future release.

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Tue Aug 12, 2014 5:29 pm
by guardianx
PlayfulGuy wrote: Now can someone tell me what I'm doing wrong? I've made a page to allow the user to enter a passcode, verify the code and go to the appropriate page. It should be dirt simple but....
I suggest using a page that does nothing but validate & redirect. All you need to do is set your button to save the form values and call that page.

Also, you will want to trim() the string returned from getFormField().

Code: Select all

 <Page id="start">  <javascript>    <![CDATA[        function saveCode() {            var res = guideSettings.getFormField("TheCode").trim();            scriptVars.put("vTheCode", res);        }    ]]>      </javascript>  <Text>    <p>Page to enter passcode</p>    <p>So what's the code boy? </p>    <form>        <input type="text" name="TheCode" size="10" value=""/>    </form>  </Text>        <Image id="start.jpg" />     <Button target="Validate" onclick="saveCode()">Right?</Button></Page> <Page id="Validate">  <javascript>    <![CDATA[        function pageLoad() {            var vTheCode = scriptVars.get("vTheCode");            var vCode = "abc123";             if (vTheCode == vCode)  {                overRide.setPage("Success");            } else {                overRide.setPage("Failure");            }        }    ]]>      </javascript>  <Text>  </Text>      </Page> <Page id="Failure">    <Text>Wrong code!</Text></Page> <Page id="Success">     <Text>Right code!</Text></Page> 

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Tue Aug 12, 2014 6:02 pm
by Lex_Shade
The importer generates a wrong closing url tag. E.g.:

Code: Select all

 <Url>http://www.milovana.com/webteases/showflash.php?id=26521</Url>  <Author id="17204">    <Name>1885</Name>    <Url/>  </Author> 

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Tue Aug 12, 2014 6:03 pm
by Takenaga
Lex_Shade wrote:The importer generates a wrong closing url tag. E.g.:

Code: Select all

 <Url>http://www.milovana.com/webteases/showflash.php?id=26521</Url>  <Author id="17204">    <Name>1885</Name>    <Url/> 
What's wrong, is the </Author> tag missing?
The <Url/> in your last line is an empty element and is used for the url to the author, if any (<Url/> is the same as <Url></Url>).

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Wed Aug 13, 2014 5:05 pm
by Lex_Shade
I was wondering why the parser was not complaining that.
Your are correct. I mixed up <tag/> with </tag> :oops:

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Tue Sep 02, 2014 9:48 pm
by BoundSquirrel
I’ve finished my first Guideme tease, “10 Seconds” and have uploaded it here:

https://mega.co.nz/#!WgdhGTQY!24w71GWTe ... _Mary3PjsI

Please provide feedback in the FB post so I know what I can improve on for my next one.
Enjoy!

Update: The main file has been updated and should correct the issues using previous versions.

https://mega.co.nz/#!H99XQILQ!j44xI-yt- ... s5lMCykIwg

Re: GuideMe (TeaseMe v2.0): BETA Thread

Posted: Sat Sep 06, 2014 1:42 am
by Studfu55
guideme jar update doesn't seem to work for me and a few others if what I am reading is correct. Any suggestions?