|
-
Jul 26th, 2008, 09:53 AM
#1
Thread Starter
Frenzied Member
Build string, with javascript call & passing parameters
driving me bonkers...keep getting javascript errors no matter what combination of quotes and double quotes I use...
Code:
echo "<td><textarea onclick=edit_text('0','$value'); name='".$value."' id='".$value."' class='err_box'></textarea></td>";
Last edited by StrangerInBeijing; Jul 26th, 2008 at 07:47 PM.
-
Jul 26th, 2008, 03:26 PM
#2
Re: Build string, with javascript call & passing parameters
instead of using echo, just escape the php code and use html:
PHP Code:
?> <td><textarea onclick="edit_text('0','<?php echo $value; ?>'); name='<?php echo $value; ?>' id='<?php echo $value; ?>' class='err_box'></textarea></td> <?php ;
My usual boring signature: Something
-
Jul 26th, 2008, 07:47 PM
#3
Thread Starter
Frenzied Member
Re: Build string, with javascript call & passing parameters
yeah, that should do it. got into bad habbit with all this echo stuff.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|