First off let me say that I'm loving the latest version of Guideme. Really like the full screen mode and the new features I've tried have been great. I was reading through the wiki and found a bunch of new guide methods I wasn't aware of either. Great stuff! Thanks for all your hard work. If you ask me you can name your own reward.
That said, in my experimenting I have run into a couple issues. I'm using version 1.6
First, I've tried the new functions guide.setLeftBody() and guide.setLeftHtml() and neither appears to work. The test file below includes setLeftBody() which if I understand correctly should just put the specified text on the left, but for me it comes up blank. If I right-click and "View Source" on the left panel, it's a fully formed html page, with an empty body.
I get similar results with guide.setLeftHtml(). I have some existing pages that use overRide.setLeftHtml() so I know my HTML is good, but when I tried moving it to the left panel by using guide.setLeftHtml() instead of overRide I get the same blank left panel.
**Edit** I just clued in that these functions are duplicated as overRide.setLeftHtml() and overRide.setLeftBody() and these work as expected.
Second, and this may not be a Guideme issue, but I'm looking for ideas.
Also illustrated in the following test file, I've created a simple form to get some user input.
If you enter something in the form field and click the Get Input button it works fine.
However, if you type something and press enter (as is a natural response) it trashes the right html panel.
I don't know why, or what to do about it. I kind of think the browser component is looking for a target or submit button or something, but what would I give it as a target? Is there a way to make pressing enter activate the default button?
Thanks again, and any ideas on this form thing are greatly appreciated.
PG
Code: Select all
<Tease scriptVersion="v0.1">
<Settings>
<ForceStartPage>true</ForceStartPage>
</Settings>
<Title>Bug demo</Title>
<Pages>
<Page id="start">
<Text>
If you click in the form field and press enter the right html gets trashed.
<form>
Enter something: <input type='text' name='UserInput' value='' size='10' />
</form>
Your last input was <span>UserInput</span>
</Text>
<Button target="start" onclick="GetInput()" >Get input</Button>
<javascript>
<![CDATA[
function pageLoad() {
jscriptLog("Setting left panel text");
guide.setLeftBody("Some text for the left panel","");
}
function GetInput() {
var text = guideSettings.getFormField("UserInput");
scriptVars.put("UserInput", text);
}
]]>
</javascript>
</Page>
</Pages>
</Tease>



