Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Java and frames

    I?m stuck - need help ~~ (java isn't a big part of my life ? be nice)

    I run Jalbum as a popup from an index in my main website, the user chooses the
    album looks at the picks reads the blurb then clicks a close button to return
    to the still open main site and possibly select another album ? works ok no
    problem. the popup opens explicitly without menubars etc
    But it occurred to me (eventually) that a visitor could get directly to an
    album from the likes of Google image search, and not be aware that the main
    site exists - No problem I?ll just put a link to the main site on each album.

    Not quite so simple the popup users frames
    Any way I've persevered ? with limited success ? should be fairly simple

    function newwindow2()
    {

    newwindow=window.open('http://www.lovatt.co.uk/','scrollbars=yes,menubar=yes,res
    izable=yes,toolbar=yes,location=yes,status=yes','f ullscreen');
    top.window.close()
    }

    It?s doing what I want ? open new browser window, close popup window. But
    it?s not putting in scrollbars, menus? etcetera
    I?ve tried with the yes?s and without ? I can get some functionality by
    separately punctuating but can?t get them all to work

    Any ideas ????



    graham1 Guest

  2. Similar Questions and Discussions

    1. ColdFusion + Java Guru Install Cybersource Java Api
      Hi, I need to install a cybersource java api on a coldfusion MX 6 server and call it as a component to pass variables to their gateway. Here...
    2. #25651 [Bgs]: mixing --with-java and --enable-debug pull out java
      ID: 25651 User updated by: fperez at tuzsa dot es Reported By: fperez at tuzsa dot es Status: Bogus Bug Type: ...
    3. #25651 [NEW]: mixing --with-java and --enable-debug pull out java
      From: fperez at tuzsa dot es Operating system: linux redhat 7.3 PHP version: 4.3.3 PHP Bug Type: PHP options/info functions...
    4. #19327 [Fbk->NoF]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
      ID: 19327 Updated by: sniper@php.net Reported By: chregu@php.net -Status: Feedback +Status: No...
    5. #19327 [Opn->Fbk]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
      ID: 19327 Updated by: iliaa@php.net Reported By: chregu@php.net -Status: Open +Status: Feedback Bug...
  3. #2

    Default Re: Java and frames

    Hi,
    the window.open works in this way:

    window.open('url to open','window name','attribute1,attribute2')

    The window name is most important in fact it is the reference for calling the
    window, like target reference frames in a web page.

    iSimo Guest

  4. #3

    Default Re: Java and frames

    Thanks for the reply

    I?d seen examples with the page name in but thought its relevance was
    different ? wrong again it seems

    So I?ve put he page name in

    It works ? could almost give you a kiss*


    Thanks, knew it was going to be something basic
    Graham

    *stress on the almost


    graham1 Guest

  5. #4

    Default Re: Java and frames

    Flushed with success having got that to work I then thought ?wouldn?t it be
    good if the script was to check if the main site page was extant or not - if
    the popup had been opened from my site or somewhere else.

    First thought was ?great, it works? second thought ?its not checking for my
    site specifically, its checking for any parent?
    How do I make this bit of code check if a specific parent is open
    Ie. page name ?Sunderland Mountaineering club?

    function newwindow2()
    {
    if(typeof(window.opener)!="undefined")
    {
    window.open('http://www.lovatt.co.uk/','Sunderland Mountaineering
    club','directories,scrollbars,menubar,resizable,to olbar,location,status,fullscre
    en');
    top.window.close()
    }
    else
    {
    top.window.close()
    }
    }


    graham1 Guest

  6. #5

    Default Re: Java and frames

    Clarification needed!

    Please note that the term "JAVA" ....and.... "JavaScript", those two are not
    the same meaning or have nothing to do with each other. Java is an applet,
    while JavaScript is a scripting either anywhere in HTML source or a file
    exenstion of .js where you can provide a link to it in your html source page.

    Deaf Web Designer Guest

  7. #6

    Default Re: Java and frames

    Hi

    As far from being an expert as I am I?m still fairly sure that I?m using
    JavaScript and not java, though I wasn't aware that java was separate ? just
    checked I?m not using the APPLET tag.

    This is the latest version of what I?m using

    Within the ?head? tags
    <SCRIPT language="JavaScript">
    <!-- hide
    function newwindow2()
    {
    if (typeof('Sunderland Mountaineering club') != "undefined")
    {
    window.open('http://www.lovatt.co.uk/','Sunderland Mountaineering
    club','directories,scrollbars,menubar,resizable,to olbar,location,status,fullscre
    en');
    top.window.close()
    }
    else
    {
    top.window.close()
    }
    }
    //-->
    </SCRIPT>


    The above is very much ?work in progresses and undertaken within the ethos
    of ?just in time? or I don't really know what I?m doing but I?ll have a go


    My parent index page is named as ?Sunderland Mountaineering club? and (from
    within the child) I?m checking if that page exists, if not the page is opened &
    the child closed, ELSE child closes.

    I?m not at all sure that I can check the page name ? found an article on a
    tuition site that suggested that this was ok.

    If you want to see that code in action, go here
    [url]http://www.lovatt.co.uk/[/url] click menu click club gallery click Kay's Hut the
    ?SMC? link below the images is the one associated with the code.

    All help is most welcome


    graham1 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139