Posted by Vince Morgan on 01/22/07 09:40
> <input type="text" name="ruta" size="10" value="<?php echo
> $ruta;?>">
> <input type="button" value="REGISTRA" name="Registra"
> onclick="limpia()"><br />
>
> <script language="javascript" type="text/javascript">
> function limpia(){
> alert($ruta);
>
> }
> </script>
> </body>
>
> </html>
>
What you are passing to the "limpia()" function is a string, nothing more.
Whatever meaning it may have on your server is lost on the client machine as
it knows nothing about what you trying to do. If it were the actual name of
a COM object you know should exist on the client machines then you would
first need to create an instance of that object at the client end before you
do anything with it.
I.e.
var obj = new (the $ruta string);
HTH
Vince Morgan
Navigation:
[Reply to this message]
|