PC Review


Reply
Thread Tools Rate Thread

calling javascript functions

 
 
AAaron123
Guest
Posts: n/a
 
      14th Aug 2008
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="javascriptopupWindow('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










 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      14th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:%23oI7uDl$(E-Mail Removed)...
> 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="javascriptopupWindow('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
>
>
>
>
>
>
>
>
>
>


 
Reply With Quote
 
AAaron123
Guest
Posts: n/a
 
      14th Aug 2008
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)" <(E-Mail Removed)> wrote in
message news:OETTZLl$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%23oI7uDl$(E-Mail Removed)...
>> 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="javascriptopupWindow('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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Javascript srini.venkatesan@gmail.com Microsoft ASP .NET 5 6th Oct 2006 05:27 AM
Calling javascript from C#--help please Bishoy George Microsoft ASP .NET 10 5th Oct 2005 10:36 PM
Calling JavaScript Trevor L. Microsoft Frontpage 7 22nd Jan 2005 06:04 PM
Calling WS from Javascript Ganesh Ramamurthy Microsoft ASP .NET 5 13th Dec 2004 05:41 AM
simulating/calling javascript functions programmatically =?Utf-8?B?WVI=?= Microsoft ASP .NET 4 27th Jan 2004 05:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:18 PM.