Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Feeding a bitmap to Internet Explorer

by dmtelf (Beadle)
on Jul 03, 2000 at 14:24 UTC ( [id://20859]=perlquestion: print w/replies, xml ) Need Help??

dmtelf has asked for the wisdom of the Perl Monks concerning the following question:

How can you force an IE browser window to open with a specific bitmap in it? (I'm using Windows 95/8)

This is what I'm basically trying to do:

(1) Send bitmap to IE for displaying. (2) Get numeric user input from web page (range 0-11). (3) Send another bitmap to IE depending on numeric input.

NB Each sending of a bmp to IE must not open in a new browser window. Only 1 window should be used.

I've looked around CPAN for an equivalent to Win32::DDE but can't find it.

Do any monks out there know how to do the above?

Thanks!

dmtelf

Replies are listed 'Best First'.
Re: Feeding a bitmap to Internet Explorer
by davorg (Chancellor) on Jul 03, 2000 at 15:10 UTC
Re: Feeding a bitmap to Internet Explorer
by Aighearach (Initiate) on Jul 03, 2000 at 14:29 UTC

    Are you sure forcing a browser window open is a friendly thing to do?

    I know it is precisely the feature that causes me to keep javascript turned off...

    Paris Sinclair    |    4a75737420416e6f74686572
    pariss@efn.org    |    205065726c204861636b6572
    I wear my Geek Code on my finger.
    
      For this particular application, it's fine to force a browser window to stay open.

      When the application finishes, it will close the window.

      All I need to do is find out how to do what I asked in the original question! :-)

      dmtelf

        So you are saying that this isn't something already running in the browser? Perhaps I am misunderstanding your question.

        If you are just trying to display an image from a non-networked perl program, I would recommend using a widget set, like Tk. In addition to not using a large, bloated beast like IE for a skinny task, it also is more portable.

        Paris Sinclair    |    4a75737420416e6f74686572
        pariss@efn.org    |    205065726c204861636b6572
        I wear my Geek Code on my finger.
        
Re: Feeding a bitmap to Internet Explorer
by c-era (Curate) on Jul 03, 2000 at 16:46 UTC
    This sound more like you want to use javascript.
    <script language=javascript> url="www.mypage.com"; windowName="myName"; settings="toolbar=yes,location=yes,directories=yes,status=yes,menubar= +yes,scrollbars=yes,resizeable=yes,with=100,height=100"; myWindow = window.open(url,windowName,settings); </script>
    As long as you use the same window name it will reuse the window you already have open. If that window is not open it will create the window.
Re: Feeding a bitmap to Internet Explorer
by httptech (Chaplain) on Jul 03, 2000 at 15:55 UTC
    I'm not clear on if you are trying to work remotely, or locally. Where are the bitmaps that you want to send to the browser; would they be on a webserver? Or on the user's hard drive?

    Also, getting the numeric input; would that happen in a separate browser window or would it be part of a web page containing the bitmap?

Re: Feeding a bitmap to Internet Explorer
by dmtelf (Beadle) on Jul 03, 2000 at 18:19 UTC
    thanks to everyone for their comments & suggestions. Its certainly helped me consider things I hadn't thought of before.

    httptech - the bitmaps would eventually be stored on a webserver. the numeric options & subsequent input would ideally be done as part of the web page containing the bitmap.

    for now, the bitmaps are stored in a directory on the development machine. when development etc has finished they (& the perl scripts etc) would be moved onto a web server box.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://20859]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found