www.webdeveloper.com
Results 1 to 3 of 3

Thread: How can I reach Javascript from JSP code blog?

  1. #1
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    10

    How can I reach Javascript from JSP code blog?

    Code:
    <script>
    var name2; // want to reach the data which in JSP code blog
    ............
    ..........
    </script>
    
    
    <body>
    <%
    String name; // a data from database
    %>
    </body>
    Simply I want to reach "name" valuable from Javascript..
    I'll be happy if someone helps me..

    Thanx in advance..
    Talha

  2. #2
    Join Date
    Jun 2008
    Posts
    62
    Code:
    <script type="text/javascript">var someName = <&#37;=name%>;</script>

  3. #3
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    10
    Quote Originally Posted by Malgrim View Post
    Code:
    <script type="text/javascript">var someName = <%=name%>;</script>
    dear friend,

    unfortunately it doesn't work..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles