On 4 Sep 98, Jack Killpatrick wrote:

> 
> Let me know if that works for you or not. You'll probably have to close
> the print statement that creates the HTML before the new code. You'll have
> to "reopen" the print statement to print any HTML that follows the new
> code.
> 

Hiya Jack... OK, I've got it sorta kinda working, but with a few glitches; 
I'm guessing that they arise from what you mention above, telling the 
script when and where to print the output, but I don't know enough about 
Perl to figure out how to do it.

At present I have the code you provided (modified so as to also 
conditionally launch the MediaPlayer depending on whether a midi song has 
been selected or not) working on the preview page: if a tune is selected, 
the player launches and the "Current tune is..." bit displays.  (Mind you, it 
displays down below my main HTML, "outside my layout", because I don't 
know how to make it appear where I want it.  But at least it does appear.) 
If no tune is selected, it doesn't appear.  

However: it *also* displays on the subsequent page that appears once I  
actually send a postcard ("Your card has been sent to...", etc); yet when 
I go and view the sent postcard itself, it *doesn't* appear.  So 
presumably I need to be giving the script more specific instructions as to 
when and how it should display/play the midi stuff.

If I were to send you the relevant chunks of code, would you have time to 
take a gander and see what I need to be doing here?

BTW, I'm guessing that this should also fix the problem that Suz and Kathy 
reported on testing the page, that their browsers tried to load "text/html 
plug-in" files -- I would surmise that, if the user has not selected a tune, 
but the <embed src=> is hard-coded into the page, then Netscape thinks 
it's loading an empty "text" file (i.e., <embed src=null> in this case), rather 
than a midi file.  So it says, "Huh, I see an embed, but I don't know what 
do with this "non-file", so I'll launch the plug-in dialog.")  Funny that would 
happen to some people but not others, though.

Anyway, many thanks for your assistance so far.  BTW, that DHTML 
thingy of mine is still coming along, albeit slowly what with end-of-summer 
mayhem -- kids are finally  back at school on Tuesday, phew :)


-----------
Brent Eades, Almonte, Ontario
   E-mail: [EMAIL PROTECTED]
           [EMAIL PROTECTED]
   Town of Almonte site: http://www.almonte.com/
   Business site: http://www.federalweb.com

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to