Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Open file without <a href

Reply
Thread Tools

Open file without <a href

 
 
salonowiec
Guest
Posts: n/a
 
      08-29-2007
Can I modify .html page so that it opens a file immediately "onload",
without link like <a href... etc? (similar to page where the only code is
img src...).

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      08-29-2007
Scripsit salonowiec:

> Can I modify .html page so that it opens a file immediately "onload",
> without link like <a href... etc? (similar to page where the only
> code is img src...).


In a sense you could, using <object>, <iframe>, <embed>, or <frame>. All of
these are unreliable and would at least require a link as a fallback to be
minimally reliable.

But why would you do that? I'm fairly sure that the original problem is much
easier to solve than the problems you would create by using any of such
"solutions".

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
salonowiec
Guest
Posts: n/a
 
      08-29-2007
And you are right! My problem is to rename the file to .php and to put some
small php code at the beginning so as the page would be available for a
group of users only. Thanks for attention and asking for further tip...


Uzytkownik "Jukka K. Korpela" <(E-Mail Removed)> napisal w wiadomosci
news:NAbBi.214946$(E-Mail Removed) i.fi...
> Scripsit salonowiec:
>
>> Can I modify .html page so that it opens a file immediately "onload",
>> without link like <a href... etc? (similar to page where the only
>> code is img src...).

>
> In a sense you could, using <object>, <iframe>, <embed>, or <frame>. All
> of these are unreliable and would at least require a link as a fallback to
> be minimally reliable.
>
> But why would you do that? I'm fairly sure that the original problem is
> much easier to solve than the problems you would create by using any of
> such "solutions".
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/


 
Reply With Quote
 
Art
Guest
Posts: n/a
 
      08-29-2007
salonowiec,
PHP is a pre-processor service that is executed on the web server that
supports your site, not in the browsers. So all of your visitors would
be covered if PHP is enabled on your web server, regardless of the
browser or host.

I use "php includes" for my common masthead/navigation bar, footers,
etc. After the server has processed the php file, these statements are
removed and replaced by the contents of the included files and delivered
to the browser for rendering. You can see this by doing a "view source"
in your browser after the page has loaded.

I normally include comment wrappers in the included files or around the
"include" statements for ease of debugging.

Art

On 8/29/07 6:13 AM, salonowiec wrote:

> And you are right! My problem is to rename the file to .php and to put some
> small php code at the beginning so as the page would be available for a
> group of users only. Thanks for attention and asking for further tip...
>
>
> Uzytkownik "Jukka K. Korpela" <(E-Mail Removed)> napisal w wiadomosci
> news:NAbBi.214946$(E-Mail Removed) i.fi...
>> Scripsit salonowiec:
>>
>>> Can I modify .html page so that it opens a file immediately "onload",
>>> without link like <a href... etc? (similar to page where the only
>>> code is img src...).

>>
>> In a sense you could, using <object>, <iframe>, <embed>, or <frame>. All
>> of these are unreliable and would at least require a link as a fallback to
>> be minimally reliable.
>>
>> But why would you do that? I'm fairly sure that the original problem is
>> much easier to solve than the problems you would create by using any of
>> such "solutions".
>>
>> --
>> Jukka K. Korpela ("Yucca")
>> http://www.cs.tut.fi/~jkorpela/

>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Open PDF-File in browser without href or embed Hendrik Lampert HTML 10 11-17-2010 12:55 PM
href="javascript:func()" vs href="#" onclick="javascript:func()" CRON HTML 24 06-20-2006 08:05 PM
onClick method question (this.href and document.location.href) yogesh.bhardwaj@gmail.com Javascript 2 02-03-2005 02:38 PM
difference between location.href and window.location.href? saiho.yuen Javascript 3 09-14-2004 06:51 PM
Problem: Setting MSIE iframe innerHTML change relative href/src to absolute href/src Soren Vejrum Javascript 4 07-05-2003 01:47 PM



Advertisments