I'm looking at a different means of creating a popup to calling js. I'd
like to use the standard <a href... target="_new"> syntax, so that I can
dynamically control the content of the popup using php. However, I'd like
to control the way it looks as you can with a javascript popup - no
buttons, etc. I'm trying to do this by calling a js function at body
onload=..., and have had some success - 've resized it, and moved it away
from the top left corner of the screen. However, I am not a js programmer,
and am having limited success using js 101 sites and google.
So far, I've got
<script language='javascript'>
var arrTemp=self.location.href.split(\"?\");
var picUrl = (arrTemp.length>0)?arrTemp[1]:\"\";
var NS = (navigator.appName==\"Netscape\")?true:false;
function FitPic() {
self.blur();
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight ;
iWidth = " . $_GET["Width"] . " - iWidth + 250;
iHeight = " . $_GET["Height"] . " - iHeight + 20;
self.resizeBy(iWidth, iHeight);
self.moveTo (200, 200);
self.focus();
};
</script>
Can anyone point me to resources to tell me how to remove the standard
browser buttons, or tell me that this approach makes it impossible???
TIA,
Steve 6 1550
On Sat, 04 Feb 2006 18:29:24 +1300, Steve wrote: I'm looking at a different means of creating a popup to calling js. I'd like to use the standard <a href... target="_new"> syntax, so that I can dynamically control the content of the popup using php. However, I'd like to control the way it looks as you can with a javascript popup - no buttons, etc. I'm trying to do this by calling a js function at body onload=..., and have had some success - 've resized it, and moved it away from the top left corner of the screen. However, I am not a js programmer, and am having limited success using js 101 sites and google.
So far, I've got
<script language='javascript'> var arrTemp=self.location.href.split(\"?\"); var picUrl = (arrTemp.length>0)?arrTemp[1]:\"\"; var NS = (navigator.appName==\"Netscape\")?true:false;
function FitPic() { self.blur(); iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight ; iWidth = " . $_GET["Width"] . " - iWidth + 250; iHeight = " . $_GET["Height"] . " - iHeight + 20; self.resizeBy(iWidth, iHeight); self.moveTo (200, 200); self.focus(); }; </script>
Can anyone point me to resources to tell me how to remove the standard browser buttons, or tell me that this approach makes it impossible???
TIA,
Steve
.... or, failing this, is it possible to pass the raw html code, rather
than an URL to a more standard js popup() function?
Steve wrote: Can anyone point me to resources to tell me how to remove the standard browser buttons, or tell me that this approach makes it impossible???
You have bigger problems than a popup, if you cant tell the difference
between php & javascript.
On Sat, 04 Feb 2006 06:47:22 +0100, Sune Storgaard wrote: Steve wrote: Can anyone point me to resources to tell me how to remove the standard browser buttons, or tell me that this approach makes it impossible???
You have bigger problems than a popup, if you cant tell the difference between php & javascript.
Thanks for your help. It's been really helpful. Given that it's early
morning in Denmark, I expect you've had a heavy Friday night?
Please tell me how *you* use a server side scripting language to generate
a popup with dynamic content without going via an intermediate file of
some kind, and use the JS window.open to control the display?
Steve.
Steve wrote: Please tell me how *you* use a server side scripting language to generate a popup with dynamic content without going via an intermediate file of some kind, and use the JS window.open to control the display?
Pop up a window. Write the code that generates the display in the .php
file that you popped up.
Cheers,
Nicholas Sherlock
"Steve" <Th*****@Aint.Valid> wrote in message
news:pa****************************@Aint.Valid... On Sat, 04 Feb 2006 18:29:24 +1300, Steve wrote:
I'm looking at a different means of creating a popup to calling js. I'd like to use the standard <a href... target="_new"> syntax, so that I can dynamically control the content of the popup using php. However, I'd like to control the way it looks as you can with a javascript popup - no buttons, etc. I'm trying to do this by calling a js function at body onload=..., and have had some success - 've resized it, and moved it away from the top left corner of the screen. However, I am not a js programmer, and am having limited success using js 101 sites and google.
So far, I've got
<script language='javascript'> var arrTemp=self.location.href.split(\"?\"); var picUrl = (arrTemp.length>0)?arrTemp[1]:\"\"; var NS = (navigator.appName==\"Netscape\")?true:false;
function FitPic() { self.blur(); iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight ; iWidth = " . $_GET["Width"] . " - iWidth + 250; iHeight = " . $_GET["Height"] . " - iHeight + 20; self.resizeBy(iWidth, iHeight); self.moveTo (200, 200); self.focus(); }; </script>
Can anyone point me to resources to tell me how to remove the standard browser buttons, or tell me that this approach makes it impossible???
TIA,
Steve
... or, failing this, is it possible to pass the raw html code, rather than an URL to a more standard js popup() function?
you are doing fine with your js so far.
a standard way to opena window is
window.open(url,title,"width=100,height=100,toolba r=no,location=no,directories=no,status=no,menubar= no,scrollbars=no,resizeable=no,copyhistory=no");
maybe these attribute names will help you google for something.
"Steve" <Th*****@Aint.Valid> wrote in message
news:pa****************************@Aint.Valid... I'm looking at a different means of creating a popup to calling js. I'd like to use the standard <a href... target="_new"> syntax, so that I can dynamically control the content of the popup using php. However, I'd like to control the way it looks as you can with a javascript popup - no buttons, etc. I'm trying to do this by calling a js function at body onload=..., and have had some success - 've resized it, and moved it away from the top left corner of the screen. However, I am not a js programmer, and am having limited success using js 101 sites and google.
So far, I've got
<script language="javascript">
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
self.blur();
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight ;
iWidth = <?php echo intval($_GET["Width"]); ?> - iWidth + 250;
iHeight = <?php echo intval($_GET["Height"]); ?> - iHeight + 20;
self.resizeBy(iWidth, iHeight);
self.moveTo (200, 200);
self.focus();
};
</script>
if it's any interest, W3C's HTML validator requires the script element to
have the type="text/javascript" attribute.
correction to your code made above to make it PHP compatible.
I am told it's better (and faster) to drop out of the interpreter for HTML
stuff than to echo huge amounts of HTML. Can anyone point me to resources to tell me how to remove the standard browser buttons, or tell me that this approach makes it impossible???
TIA,
Steve This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: llaxman |
last post by:
Hello everyone,
I was wondering if anyone can help me? I am having some problems wit
the <noscript> tag.
I actually use it to block banner advertisements from being displaye
in my website. I...
|
by: Dimitri Debruyne |
last post by:
Hi group
I am in the process of developing a website in XHTML Strict and CSS. Is
there a way to open a link in a new window without the use of frames or
Javascript or something ? I didn't find a...
|
by: MLH |
last post by:
Having identified a A97 bug in which acDialog causes undesirable side
effects processing the opened form, I would like to replace the
following code running in MyForm ...
DoCmd.OpenForm...
|
by: Pete |
last post by:
I'm trying to use SendKeys to send a 'close' key sequence
to an application popup. Unfortunately, I'm running into
the classic timing issues with SendKeys at it sometimes
hits the wrong app (even...
|
by: anthony.turcotte |
last post by:
Hi,
I've looked for a solution to this problem on google, read posts in
this newsgroup and I still haven't found anything that could help me.
Here's the scenario.
1. User accesses...
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
Greetings,
I have to load 30,000 unique names into a combox. Filling a dataTable takes
only a few milliseconds. But populating the combobox and displaying the list
takes several seconds - way...
|
by: balakrishnan.dinesh |
last post by:
hi frnds
I have a query on browse button, In my page , i want to upload
files , But i dont want normal <input type=fileto be used for this,
so can anyone tell me anyother alternative solution...
|
by: Dan Rumney |
last post by:
Hi all,
I've been writing Javascript for quite a while now and have, of late,
been writing quite a lot of AJAX and AJAX-related code.
In the main, my dynamically generated pages are created...
|
by: cmrhema |
last post by:
Hi,
I wrote the following code in the page load event
string path = clientServerXRef1.GetDownloadpath(company.ToUpper());
System.IO.FileStream fs = null;
fs =...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |