That was it! Many thanks. Now I'll go back to the original plan of
selecting timelines from a list and showing them.

I think my problem there was similar to this one.
We live in hope.

Thanks again.

Andrew McGurk


On Mar 14, 2:15 am, Michael Nosal <[email protected]> wrote:
> I think the problem is with this:
>
> >  <asp:Button ID="Button2" runat="server" Text="Show Timeline" 
> > OnClientClick="showTL()" Width="166px" />
>
> I'm guessing this produces HTML on your page that looks like:
> <input type="submit" id="Button2" onclick="showTL();" value="Show 
> Timeline"....>
>
> This is likely causing the problem as the showTL() function runs at the same 
> time that the <form> values are posted and the entire page refreshes. You're 
> not doing anything to handle this particular form POST, so it simply returns 
> the original HTML page with a blank Timeline again.
>
> Take that line out, and replace it with this HTML:
> <input type="button" onclick="showTL()" value="Show Timeline">
>
> Note the type="button" instead of type="submit" - this shouldn't cause the 
> entire page to be refreshed, but simply execute the showTL function.
>
> --Mike
>
> On Mar 12, 2012, at 6:24 PM, ZermattMan wrote:
>
>
>
> > Thanks for your comments.
>
> > Below is the simplest version of the code which shows the problem. Run
> > it as is and click on the "showTL" button, and the timeline flashes on
> > and off.
>
> > Replace <body> with <body onload="showTL();" onresize="onResize();"/>,
> > and the timeline shows correctly. Clicking on the button also works
> > then.
>
> > I'm sure it's simple (never use the 4-letter word "easy"), but...
>
> > ----------------------------- Start of code
> > <body>
> > <!--   <body onload="showTL();" onresize="onResize();"/>        -->
> >    <form id="form1" runat="server">
> >         <br />
> >        <asp:Button ID="Button2" runat="server" Text="Show Timeline"
> > OnClientClick="showTL()" Width="166px" />
> >         <br /> <br /><br />
> >     <div id="header" >
> >            </div>
> >       <div id="tl" class="timeline-default" style="height: 500px;
> > font-size: 12px; border: 10px solid #aaa;"></div>
> >    </form>
> > </body>
> > </html>

-- 
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