Re: beginner question : smil and frame (dirty solution, but at least it works)

ok thx for your answer

actually, these objets are from differents files, so 
begin="myniceobject.click" doesn't work.
I was trying to convert an old site made with frames to a new one using new 
tools. Frames are Evil, but the previous developper though anything else, 
and I was to lazy to change all.

I've found a solution, by using a 
onclick="name_of_the_frame.name_of_the_par.beginElement();" on the element 
supposed to start the animation, after having set the name of the frame and 
the block smil in the other frame.

[frame A]
<SCRIPT>window.name=name_of_the_frame;</SCRIPT>
<smil:par id=name_of_the_par .../>

[frame B]
<IMG onclick="name_of_the_frame.name_of_the_par.beginElement();"/>

it's really really dirty :) but this could help if you have to work with 
frames or popups (hopefull you don't)

- Benoit


Le Thu, 09 Oct 2003 09:34:04 +0200, Lloyd Rutledge <Lloyd.Rutledge@cwi.nl> 
a écrit:

>
>
> Actually, how are you using frames here?  If these objects are from
> different files, then they can't sync -- you can only sync between
> objects in the same file.  Frames are becoming considered bad practice
> anyway, even in non-SMIL HTML.  Much (if not all) frame use in HTML
> can be replaced by a single HTML file, and in XHTML+SMIL this
> unification is often even easier.  Use the begin attribute I sent
> earlier and put the objects in one file.  Replace the frame
> positioning with CSS absolute positioning or, if you must, tables.
>
> -Lloyd
>
> On Tue, 07 Oct 2003 "Lloyd Rutledge" wrote:
>
>> Just begin="myniceobject.click" should work.
>>
>> -LLoyd
>>
>> On Tue, Oct 7 2003 "b.darties" wrote:
>>
>> > Hi
>> > > I'm using smil for a few hours only, so sorry for this very low- 
>> level > question
>> > > I have 2 frames A and B. There is an object called "myniceobject" in 
>> the > frame B, and I want to  link it to a enevenment defined in the 
>> frame A. > Each frame has a specific name, but I'm unable to find the 
>> correct syntax > to point to an object located in another frame
>> > > [frame A]
>> > <smil:par begin="(????).myniceobject.click" fill="freeze" (??? missing 
>> > arguments?)>
>> > > [frame B]
>> > <img id="myniceobject">
>> > > > Could someone help me please? There may be another approach, to 
>> define > target frame or whatever, but i'm not skilled enough to see a 
>> solution.
>> > > benoit
>
> --
> Lloyd Rutledge  vox: +31 20 592 40 93       fax: +31 20 592 43 12
> CWI             net: Lloyd.Rutledge@cwi.nl  Web: http://www.cwi.nl/~lloyd
> Post:   PO Box 94079    |  NL-1090 GB Amsterdam  |  The Netherlands
> Street: Kruislaan 413/C |  NL-1098 SJ Amsterdam  |  The Netherlands
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Received on Thursday, 9 October 2003 13:49:00 UTC