Re: Re: How to load smarty variables from javascript variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you very much gangyakin



--- gangyakin <gangyakin@xxxxxxxxxxxx> wrote:
> --- In php-objects@xxxxxxxxxxxxxxx, uthaya kumar
> <uthayaa_p@xxxx> 
> wrote:
> > Hi,
> > 
> > 
> > <script language="javascript">
> > {$groupattribarr} =getAttributs();
> > function  getAttributs()
> > {
> >   return array
> > }
> > </script>
> > 
> > <html>
> > <body>
> >   {recursion_view_customer_details
> > groupattribstr=$groupattribstr
> > groupattribarr=$groupattribarr}
> > </body>
> > </html
> > 
> > From the above snippet, smarty variable
> > $groupattribarr 
> > should get the values dynamically from javascript?
> > 
> > Please give me some suggestions ..
> > 
> > Thanks 
> > uthaya
> > 
> 
> Something should be cleared that javacode as you
> metioned above will 
> be run at client side; and php code will be run at
> server side. so if 
> you want get some varible value from javacode, that
> is from client 
> side, you should use HTML code <form> or from URL.
> then get varible 
> in phpcode file.
> for example :
> * the HTML code like : <form action=login.php
> ><input type=edit 
> name=pv_pw><input name=pv_un></form>
> * the login.php like :
> if($_POST["pv_un"]=="yourname" and $_POST
> ["pv_pw"]=="1234") {echo "ok";}
> 
> so , your code in client side, almost like this:
> > <script language="javascript">
> >  something=getAttributs();
> > function  getAttributs()
> > {
> >   return array
> > }
> > </script>
> > 
> > <html>
> > <body>
> >  some code generate by
> recursion_view_customer_details
> > </body>
> > </html
> asume that {$groupattribarr}= something in php.
> 
> holp that is clear and helpful.
> 
> 
> 
> 
> 


		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux