Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-10-2004, 03:17 PM   #1 (permalink)
Nicotine
Registered User
 
Join Date: May 2004
Posts: 8
Nicotine is on a distinguished road
Send a message via ICQ to Nicotine
Question Help with launching an exy within HTML.

Hi’ya,

Need a little help with a small prob that I’m having, I’ve made a bunch of self-extracting zips and then linked them to a graphic within an HTML page… But, when I go to click on the graphic, it won’t unpack its self to my hardisk.

Personal Thought… I think it has something to do with the way the file is accessed (the link) from the graphic. To unpack an exy file, one needs to double-click the executable too activate the self-extraction, in using a graphic link you are using a single-click instead of a double-click, if my assumption is correct… How do I fool the system, into thinking that I’m doing double-clicking action from the graphic, when I’m really doing a single-click?

Please Note… I’m new to HTML and C++ Programming. I’m organizing little projects for myself to learn these too Programming languages, so if you can, please keep it simple… In short, if you assume that I’m a complete and total idiot, you won’t go to far wrong!

:rock: PS… I’m using M$ FrontPage 2000 for the time being, as a learning tool, to understand what’s going on within HTML.
Nicotine is offline   Reply With Quote
Old 05-10-2004, 11:04 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
Re: Help with launching an exy within HTML.

Quote:
Originally posted by Nicotine
I’ve made a bunch of self-extracting zips and then linked them to a graphic within an HTML page… But, when I go to click on the graphic, it won’t unpack its self to my hardisk.
When you click a link within a webpage, you start to download the object which the link is pointing at. depending on how the internet-server is setup to deal with the file type, it might send it streaming or as an executable.

Since this link is an executable file, it's most likely to be send as one. The viewers browser will have the option to handle this stream any way it can, that be to ask if they want to save the file or open/run it once it's finished downloading. You have no way from the server side (or html part) to inflict this final action from the user, it is entirely upto them, how they configured their browser or how they decide to recieve the transfer.
Quote:
How do I fool the system, into thinking that I’m doing double-clicking action from the graphic, when I’m really doing a single-click?
There is no way of doing this in html. The viewers system will deal with the link source any way they configured their system.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 05-10-2004, 11:36 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
this is sort of related, .. but i had the reverse problem and i thought maybe some might find it interesting.

i wanted a user to be able to click on an image and be promted to download. the problem was that most browser force the image to be viewed in the browser, rather than downloaded.

with php, i was able to manipulate the headers of a script, and pass thru an image so it downloads.

http://milanointeractive.com

there is weird things that happen to naming it, but with a little bit of browser detection built in, it will work fine.

i know this doesn't help .. but just reminded me of this project .. good luck =)
__________________
Mike
sde is online now   Reply With Quote
Old 05-11-2004, 07:21 PM   #4 (permalink)
Nicotine
Registered User
 
Join Date: May 2004
Posts: 8
Nicotine is on a distinguished road
Send a message via ICQ to Nicotine
Hi’ya,

Little misunderstanding on my part… I have giving the impression that I’m doing a downloading webpage for a server, this is not so, I’m not that advanced yet, I’m still only learning HTML.

Heres What I’m Doing… As I said in the above, giving myself task too do to learn HTML and C++, right now I’m doing personalized CD backups as a way to learn these programming languages. As I said before, I’ve zipped-up my software into self-extracting exys, and made a HTML Autorun browser for the CD, with the necessary information and graphics.

As I said in the above… I would like to know how to launch an executable file within HTML from a CD, to unpack the exy file to my hardisk (if this is possible).

In Ending… Before I signoff, please don’t think that I know anything about programming, because I’ve made a personalized Autorun exy for my CD. I used a little utility that only makes Autoruns for CDs, (I’m still learning my way around Borland C++ Builder 3) still learning C++ basics, forget doing any programming, as yet. Yes I know, Builder 3 is an old App, but is mine… and its still DOS based, as well as GUI and most C++ tutorials on the net seem too be DOS based.

PS… If anyone reading this, also knows a good step-by-step generic tutorial for C++ Builder (with graphics, if possible) that will teach you how to make an Autorun and assign an icon of your choice, to that Autorun file. This will help me get too know my way around C++ Builder, as well as give me a basic understanding in C++ programming, I would be most grateful.
Nicotine is offline   Reply With Quote
Old 05-11-2004, 08:25 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
hey, i think i understand now.

i used this tutorial a few months ago for this purpose: http://www.devx.com/webdev/Article/7023/1763/page/1
__________________
Mike
sde is online now   Reply With Quote
Old 05-12-2004, 03:00 PM   #6 (permalink)
Nicotine
Registered User
 
Join Date: May 2004
Posts: 8
Nicotine is on a distinguished road
Send a message via ICQ to Nicotine
Bingo!...
Many thanks Sde for the link, just what I was looking for.
Nicotine is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
html in tutorials is fixed sde Lounge 0 03-25-2003 10:24 AM
basic html table question prendo HTML, XML, Javascript, AJAX 2 03-03-2003 04:08 PM
Stable Graphical FTP Client, HTML editor, & Image Manipulation for RedHat 7.3? Admin Linux / BSD / OS X 2 08-30-2002 04:55 PM
HTML form preview then INSERT using PHP & MySQL SteveSoler PHP 5 07-07-2002 09:54 AM


All times are GMT -8. The time now is 10:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting