469,894 Members | 2,151 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,894 developers. It's quick & easy.

Accessing javascript from menu

Hi All

I have a menu control on my page, something like:

<form action=Default.aspx runat="server">
<asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3"
DynamicHorizontalOffset="2">
<Items>
<asp:MenuItem Text="File" Value="File" Selectable="False">
<asp:MenuItem Text="Open" Value="Open"></asp:MenuItem>
<asp:MenuItem Text="Print" Value="Print"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Edit" Value="Edit" Selectable="False">
<asp:MenuItem Text="Copy " Value="Copy"></asp:MenuItem>
<asp:MenuItem Text="Cut " Value="Cut"></asp:MenuItem>
<asp:MenuItem Text="Paste" Value="Paste"></asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>
</form>

and I also on the same menu some other items.

My question is this, when I click on the Copy, Cut or paste menus, I want to
copy cut or paste the text from a textarea on the page without posting date
back to the server, i.e. by accessing a javascript on the page when the menu
is clicked?

How can this be done?
Oct 16 '06 #1
0 1024

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rob McLennan - ZETLAND | last post: by
4 posts views Thread by JesusFreak | last post: by
7 posts views Thread by Marci | last post: by
2 posts views Thread by Jackson Yap | last post: by
8 posts views Thread by chrisdude911 | last post: by
7 posts views Thread by simchajoy2000 | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.