Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: how to open a popup window of specific size in asp

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy how to open a popup window of specific size in asp

    Hi everyone, I am new to this and I am trying to open a pop up window of a specific size that has no toolbars or scrollbars. Here is the link I have but it just opens to a full size blank page. Any help would be appreciated...Please help!!! Thanks


    <A HREF="dostream.jsp?jid=<%= currentSession.getJSession() %>&tid=<%= currentSession.getID() %>&sid=<%= stream.getVariableStringValue("id") %>"<%= (newWindow?" target=\"_blank\"":"") %>><IMG src="<%= streamImage %>" border="0" alt="Click here to start listening!"></A>


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: how to open a popup window of specific size in asp

    I've moved this thread to the Other Programming Languages forum, since it's not a Java question.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to open a popup window of specific size in asp

    Im sorry guys, I didn't mean .asp I meant A. S. P. (as soon as possible). Im embarrassed with my ignorance.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: how to open a popup window of specific size in asp

    Haha, that's ASAP- but even then, it's a bad idea to mention things like that because it makes you seem impatient. There are hundreds of posts here, all with an urgent user behind them.

    This still isn't a Java question. It's an HTML and Javascript question. I actually happened to write exactly this last night:

    <script type="text/javascript">
    function newPopup(url) {
    popupWindow = window.open(url,'popUpWindow','height=500,width=500,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
    }
    </script>
    <a href="JavaScript:newPopup(url');">link text</a>
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to open a popup window of specific size in asp

    thank you so much, This did it for me. I will be more patient in the future. I am new to forums and still learning the rules. thanks again

  6. #6
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to open a popup window of specific size in asp

    I used this above script and all works great, except it is still resizable. The folowing script is what I used.

    <script type="text/javascript">
    function newPopup(url) {
    popupWindow = window.open(url,'popUpWindow','height=700,width=80 0,resizable=no,scrollbars=no,toolbar=no,menubar=no ,location=no,directories=no,status=no')
    }
    </script>
    <a href="JavaScript:newPopup('dostream.jsp?jid=<%= currentSession.getJSession() %>&tid=<%= currentSession.getID() %>&sid=<%= stream.getVariableStringValue("id") %>');">

    <IMG src="<%= streamImage %>" border="0" alt="Click here to start listening!">

    </a>

Similar Threads

  1. Cannot Open Socket on Specific Address/Port
    By dlamet in forum Java Networking
    Replies: 2
    Last Post: December 26th, 2011, 04:07 PM
  2. Im trying to open a new GUI window by clicking on a button
    By amzwans in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 10th, 2011, 11:33 PM
  3. Can't edit JTextField from within a popup window
    By One in forum What's Wrong With My Code?
    Replies: 10
    Last Post: June 7th, 2011, 04:29 AM
  4. How to press button to open another window
    By vkokaram in forum AWT / Java Swing
    Replies: 1
    Last Post: July 18th, 2010, 03:51 PM
  5. Facing problem with open modeless dialog from modal window
    By Divya in forum Java Theory & Questions
    Replies: 1
    Last Post: May 14th, 2009, 03:18 AM