Results 1 to 3 of 3
  1. #1
    Caz1224 is offline Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    Default OnClick = "A java script"

    Hi Guys,

    I am very new to java and current I am creating a button to open a window as a pop up.
    This window needs to load a asp page that I have already built.
    So on the parent page I have created a button.

    INPUT onclick=Somejava; type=button value=button

    I am not sure how to set the onclick to run some scripts and then set the href before doing a window.open

    The scripts it needs to run are as follows:

    Java Code:
    var urno=window.parent.parent.frames['patframe'].document.getElementById("BANNERRegistrationNo");
    
    href="\\\\server\\folder$\\"+urno.value+"\\";
    window.open
    If anyone could give me a hint of where to start... Do I put this in a separate script? If so how do I call it... Or is there an easier option?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I have to ask you -- what does this have to do with programming in Java as all you've posted looks like JavaScript. You do understand the difference, right? That Java is as closely related to Java as ham is to hamster. If I'm right and this is a JavaScript question, then your best bet is to Google for a JavaScript forum to ask this question in, and I'll remove your question from the forum.

    Luck.

  3. #3
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Quote Originally Posted by Fubarable View Post
    If I'm right and this is a JavaScript question, then your best bet is to Google for a JavaScript forum to ask this question in, and I'll remove your question from the forum.
    You're right. It is a JavaScript question.

Similar Threads

  1. How to "allow null" in a very simple script?
    By Mattedatten in forum New To Java
    Replies: 7
    Last Post: 12-04-2010, 11:09 PM
  2. Java, Military Format using "/" and "%" Operator!!
    By sk8rsam77 in forum New To Java
    Replies: 11
    Last Post: 02-26-2010, 03:03 AM
  3. Replies: 1
    Last Post: 11-20-2009, 07:58 PM
  4. Replies: 2
    Last Post: 01-24-2009, 06:56 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

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