this is assuming that your php is wrapped in the javascript tag

<?php
if($i == 1){
echo '$("#ex3a").jqm().jqmShow();';
}
?>

of course this is not tested, but I am assuming you want this to show when
your page loads, so you would also put that code in the
$(document).ready(function(){}); statement.

On 4/23/07, akiratsu <[EMAIL PROTECTED]> wrote:



Hi Benjamin,

How could i execute that 'javascript function'(without click) from my php
?

for example:
<?php
    // if condition is true then  run 'Example 3a /plugin 'jqModal'
    if ($i==1)
   {
      'execute-> $('#ex3a').jqm .....  '
   }
?>

thanks for help,
Rudy




bmsterling wrote:
>
> .jqmShow(); will execute the show.
>
> $().ready(function() {
>   $('#ex3a').jqm({
>     trigger: '#ex3aTrigger',
>     overlay: 30, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
>     overlayClass: 'whiteOverlay'}).jqmShow();
>
> });
>
> --
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
>
>

--
View this message in context:
http://www.nabble.com/How-to-Trigger-link-%2C-without-click-event-tf3588041s15494.html#a10147502
Sent from the JQuery mailing list archive at Nabble.com.




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to