[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-list
Subject:    [Mono-list] Embedding Mozilla in GTKSharp + javascript
From:       Jorge Gonzalez <jorge.unal () gmail ! com>
Date:       2005-12-29 15:52:36
Message-ID: 61d77c580512290752x5af679b4v () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


hi,

I'm working with an example of navigator,
in c#, it runs fine but i've got only one problem....

I have a page made in html that have a javascript code and one flash
movie, this is the code:

_____________________________________________________________________________


http://www.monohispano.org/ejemplos/gtksharp/editor/

_____________________________________________________________________________

<body bgcolor="#ffffff" >
<embed src="peliculaFlash.swf" quality="high" bgcolor="#ffffff"
width="500" height="250"
name="peliculaFlash" swLiveConnect="true" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
<br>
<form name="form1" >
  <input type="text" name="sendText" maxlength="45" >
</form>
<br>
<form name="form2">
  <input type="text" name="sendText" maxlength="45"
onChange="Cargar(this);">
</form>
</body>
_____________________________________________________________________________

<script>
function Cargar(args){
    variable = document.forms[0];
    variable[0].value=args.value;
    for( i in document.embeds){
        if( document.embeds[i].name=="peliculaFlash" ){
            variable = document.forms [0];
            document.embeds[i].SetVariable("entrada" , args.value);
        }
    }
}
</script>
_____________________________________________________________________________

The flash movie have a text box with the name "entrada" only,
_____________________________________________________________________________


...Mozilla FireFox (1.5) and IE (6.0) runs the example but in the c#
navigator it does'nt load the data in the flash movie

Could you please help me to solve this?
thanks.


--

JAG
Jorge González
jorge.unal (at) gmail.com
Bogotá   -   Colombia   -   Sur América

[Attachment #5 (text/html)]

<span class="gmail_quote"></span>hi,<br><br>I'm working with an example of \
navigator,<br>in c#, it runs fine but i've got only one problem....<br><br>I have a \
page made in html that have a javascript code and one flash<br> movie, this is the \
code:<br><br>_____________________________________________________________________________<br><br><br><a \
href="http://www.monohispano.org/ejemplos/gtksharp/editor/">http://www.monohispano.org/ejemplos/gtksharp/editor/
 </a><br><br>_____________________________________________________________________________<br><br>&lt;body \
bgcolor=&quot;#ffffff&quot; &gt;<br>&lt;embed src=&quot;peliculaFlash.swf&quot; \
quality=&quot;high&quot; bgcolor=&quot;#ffffff&quot; <br>width=&quot;500&quot; \
height=&quot;250&quot;<br>name=&quot;peliculaFlash&quot; \
swLiveConnect=&quot;true&quot; \
align=&quot;middle&quot;<br>allowScriptAccess=&quot;sameDomain&quot; \
type=&quot;application/x-shockwave-flash&quot; <br>pluginspage=&quot;<a \
href="http://www.macromedia.com/go/getflashplayer">http://www.macromedia.com/go/getflashplayer</a>&quot; \
/&gt;<br>&lt;br&gt;<br>&lt;form name=&quot;form1&quot; &gt;<br>&nbsp;&nbsp;&lt;input \
type=&quot;text&quot; name=&quot;sendText&quot; maxlength=&quot;45&quot; &gt; \
<br>&lt;/form&gt;<br>&lt;br&gt;<br>&lt;form \
name=&quot;form2&quot;&gt;<br>&nbsp;&nbsp;&lt;input type=&quot;text&quot; \
name=&quot;sendText&quot; \
maxlength=&quot;45&quot;<br>onChange=&quot;Cargar(this);&quot;&gt;<br>&lt;/form&gt;<br>
 &lt;/body&gt;<br>_____________________________________________________________________________<br><br>&lt;script&gt;<br>function \
Cargar(args){<br>&nbsp;&nbsp;&nbsp;&nbsp;variable = \
document.forms[0];<br>&nbsp;&nbsp;&nbsp;&nbsp;variable[0].value=args.value;<br>&nbsp;&nbsp;&nbsp;&nbsp;for( \
i in  document.embeds){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if( \
document.embeds[i].name==&quot;peliculaFlash&quot; \
){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variable \
= document.forms [0];<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.embeds[i].SetVariable(&quot;entrada&quot; \
, args.value);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} \
<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br>&lt;/script&gt;<br>_____________________________________________________________________________<br><br>The \
flash movie have a text box with the name &quot;entrada&quot; \
only,<br>_____________________________________________________________________________
 <br><br><br>...Mozilla FireFox (1.5) and IE (6.0) runs the example but in the \
c#<br>navigator it does'nt load the data in the flash movie<br><br>Could you please \
help me to solve this?<br>thanks.<br><br clear="all"><br>--  <br><br>JAG<br>Jorge \
González<br>jorge.unal (at) <a \
href="http://gmail.com">gmail.com</a><br>Bogotá&nbsp;&nbsp; -&nbsp;&nbsp; \
Colombia&nbsp;&nbsp; -&nbsp;&nbsp; Sur América<br><br>



_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic