Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
graham1 #1
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
-
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... -
#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: ... -
#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... -
#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... -
#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... -
iSimo #2
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
-
graham1 #3
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
-
graham1 #4
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
-
Deaf Web Designer #5
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
-
graham1 #6
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



Reply With Quote

