Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18213
| From | Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: What is the best way to call another html file |
| Date | 2013-01-22 17:42 +0000 |
| Organization | Home |
| Message-ID | <Mv1VQbKb+s$QFwAB@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <kdipqs$8a6$1@dont-email.me> |
In comp.lang.javascript message <kdipqs$8a6$1@dont-email.me>, Mon, 21 Jan 2013 08:13:31, Tony <tony.johansson@inport.com> posted: >I have a website with several html files and I don't use any server >processing code where the html files are located. >I use json do get data from another server. For example to get all the >ships and fill a select control. > >Now to my question what is the best approach to get another html file. >I now use window.location like this >window.location = "SelectShip.html"; >this works but I just wonder if this is the normal way to do this. Be aware that you can load new pages into an iframe; and, if they are from the same domain, you can then read the contents from JavaScript. -- (c) John Stockton, nr London UK Reply address via Home Page. news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>. <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
What is the best way to call another html file "Tony" <tony.johansson@inport.com> - 2013-01-21 08:13 +0100
Re: What is the best way to call another html file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 09:52 +0100
Re: What is the best way to call another html file "Tony" <tony.johansson@inport.com> - 2013-01-21 10:02 +0100
Re: What is the best way to call another html file brooklynb7 <brooklynb7@gmail.com> - 2013-01-21 01:23 -0800
Re: What is the best way to call another html file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 10:55 +0100
Re: What is the best way to call another html file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 10:49 +0100
Re: What is the best way to call another html file Osmo Saarikumpu <osmo@weppipakki.com> - 2013-01-22 10:09 +0200
Re: What is the best way to call another html file Danny <dann90038@gmail.com> - 2013-01-22 12:45 -0800
Re: What is the best way to call another html file Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-22 17:42 +0000
csiph-web