You are here: Re: Com object with PHP How to use? Here is the code « PHP Language « IT news, forums, messages
Re: Com object with PHP How to use? Here is the code

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация