Hi Charles,

This one should have worked:

<div id="panel" data-ex-role="exhibit-viewPanel" data-ex-initial-view="1">

But looking deeper, it appears there's a bug. Exhibit.getAttribute was expected to always return a string, though the underlying jQuery call "makes every effort to convert it to a typed value", so in this case it was returning an integer.

I've modified getAttribute in the repository to better handle always returning a string. If you're working with a clone off GitHub, make a pull; it won't be available on the hosted code server until some future date.

Also, if you're not already, you may want to temporarily add:

<div data-ex-role="exhibit-controlPanel" data-ex-developer-mode="true"></div>

to your file so you can use the history reset widget, which may also be interfering with your ability to see changes take shape (by always taking over and setting the view to whatever you looked at last).

On 2012-07-17 08:25 , charles peguiron wrote:
Hello,

I'm working with Exhibit 3 Scripted.

When I build my HTTP page, I trying to specify which view is to display by
default.

I tried to modify the initialView attribute but it doesn't change anything.
Here is the different syntaxes I tried:

<div id="panel" data-ex-role="exhibit-viewPanel"
data-ex-initialView=1>...._my_views_...</div>
OR
<div id="panel" data-ex-role="exhibit-viewPanel" data-ex-initialView="1">
OR
<div id="panel" data-ex-role="exhibit-viewPanel" data-ex-initial-view="1">
OR
<div id="panel" data-ex-role="exhibit-viewPanel" ex:initialView=1>
...

I looked at the examples but I can't find one that use this attribute.

Is that functionality working well for somebody? If it is the case can I
have an example please?

Best regards,

Charles



--
You received this message because you are subscribed to the Google Groups "SIMILE 
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to