SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    Back in Action Winged Spider's Avatar
    Join Date
    Jun 2001
    Location
    outside my mind
    Posts
    900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using ASP variables inside Java

    A recent project of mine needs to use ASP defined variables inside of Java. How would I go about doing that?

    Here's the code. I would need to replace "this page" with two variables.

    Code:
    function confirm_delete()
    { return confirm("Are you sure you want to delete this page?")}


  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi WingedSpider,

    I'm going to presume you really mean javascript and not java. if so, the following should work


    <script type="text/javascript">
    <!--
    var fileName = <%=fileName%>;
    var userName = <%=userName%>;

    function confirm_delete()
    { return confirm("Are you sure you want to delete " + fileName + ", " + userName)}
    // -->
    </SCRIPT>

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


Bookmarks

Posting Permissions

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