473,320 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

calling javascript functions

The following works, almost.

The address of the image appears in the titlebar(topmost area) as well in a
bar under the title bar.

I'd prefer that the address did not show at all.

Possible?

<script type="text/javascript">

function popupWindow(path, w, h) {

catWindow = window.open( path,"catWin", "width="+w+", height="+h+",resizable
= yes ,scrollbars = yes,status = no,titlebar =no,toolbar = no ")

}

</script>

Is the way I concatenated the parameters correct? Seems unusal to me but it
appears to work.

I call it thusly:

<a href="javascript:popupWindow('Images/MasterImage.jpg',300,300)"
>Picture</a>
I'd like to specify the width and height of the .jpg image rather than
300,300.

Do you know how to do that?

Thanks for any help at all




Aug 14 '08 #1
2 954
If you want to specify an image size, you want to create a image handler
page rather than just open the image. The same is true if you want to hide
the image URL.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
The following works, almost.

The address of the image appears in the titlebar(topmost area) as well in
a bar under the title bar.

I'd prefer that the address did not show at all.

Possible?

<script type="text/javascript">

function popupWindow(path, w, h) {

catWindow = window.open( path,"catWin", "width="+w+",
height="+h+",resizable = yes ,scrollbars = yes,status = no,titlebar
=no,toolbar = no ")

}

</script>

Is the way I concatenated the parameters correct? Seems unusal to me but
it appears to work.

I call it thusly:

<a href="javascript:popupWindow('Images/MasterImage.jpg',300,300)"
Picture</a>

I'd like to specify the width and height of the .jpg image rather than
300,300.

Do you know how to do that?

Thanks for any help at all



Aug 14 '08 #2
I don't want to force the image size.

What I was asking was how to determine the number of pixels (width, height)
in the .jpg file.

I'll take your advice and create a page but still need to know how big to
create it.

thanks

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OE**************@TK2MSFTNGP03.phx.gbl...
If you want to specify an image size, you want to create a image handler
page rather than just open the image. The same is true if you want to hide
the image URL.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>The following works, almost.

The address of the image appears in the titlebar(topmost area) as well in
a bar under the title bar.

I'd prefer that the address did not show at all.

Possible?

<script type="text/javascript">

function popupWindow(path, w, h) {

catWindow = window.open( path,"catWin", "width="+w+",
height="+h+",resizable = yes ,scrollbars = yes,status = no,titlebar
=no,toolbar = no ")

}

</script>

Is the way I concatenated the parameters correct? Seems unusal to me but
it appears to work.

I call it thusly:

<a href="javascript:popupWindow('Images/MasterImage.jpg',300,300)"
>Picture</a>

I'd like to specify the width and height of the .jpg image rather than
300,300.

Do you know how to do that?

Thanks for any help at all




Aug 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Julia Briggs | last post by:
Hello World - I admit I'm new to javascript but I've tried for days to find a solution to my problem. Basically I have 3 unique javascript files that do different screen display events that I...
10
by: reynoldscraigr | last post by:
Hi All, I am trying to call 2 functions from the 1 onMouseOver event on an anchor tag, but I can't seem to get it to work. the following should demonstrate <a...
7
by: JCO | last post by:
I have several JavaScripts in a web page. Each script is in an individual file with extension .js. I want to know if it is possible to put all functions in one single page. If so, how do I call...
5
by: elsenraat_76 | last post by:
Hello! I was wondering if someone could help me out with a problem I'm having? I'm trying to input a javascript value into an anchor tag (from a function), but don't have an event to call the...
18
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
5
by: Krishna | last post by:
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. Regards.., Krishna
10
by: Tony Rice | last post by:
If I've loaded a set of functions in a webdocument like this: <script language="JavaScript" type="text/javascript" src="/js/foo.js"</script> Shouldn't I be able to call a function from...
2
by: shankwheat | last post by:
<select name="ddlProfiles" onchange="location.href=frmProfiles.ddlProfiles.options.value;addOption_list()"> Is it possible to call 2 different functions using the onChange event from a...
6
by: Ajit Goel | last post by:
Hi; We have a Javascript function which I have been tasked to move to a CSharp class. This javascript function uses Regular expression extensively. This function has a string input parameter and...
4
by: r_ahimsa_m | last post by:
Hello, I am learning WWW technologies in Linux. I created index.html file which I can browse with Firefox/Konqueror using URL localhost/~robert/rozgloszenia/index.html. The page looks fine but...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.