Le 12/05/2011 11:37, Helloise Smit a écrit :
i have this line of code:

<a href="#" id="profilelink" name="link2" onClick="viewornot(<?php echo $freechat_id ?>)"><?php echo $freechat_list; ?></a>
//if user clicked ok then populate messagebox en send button here

then i have my JS:
function viewornot(id)
  {
     var e = confirm('Do you want to view this profile?');
     if (e == true)
     {
window.location.href = "http://www-rainbowcode-net/apps_dev.php/profiles/showprofilepersonal?id="+id; window.location('http://www-rainbowcode-net/apps_dev.php/profiles/showprofilepersonal?id='+id);
        return true;
     }
     else
     {
         var e2 = confirm('Do you want to send a message?');
         if (e2 == true)
         {
              return e2;
         }
      }
  }

on the e2 confirm: if OK was clicked i just want to send some value(true,1) back so that after my href code i can do the message box and send button for the user
so how can i check if e2 is true after my href code???

thank you

you should ask for help on a Javascript forum. This has nothing to do with Symfony (which is a PHP framework, not a JS one).

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to