Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Redirecting a HTML Page

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! all,
I have a web page with two frames and on the right side frame , I am having a registeration details html displayed , after completing the registration I am using the meta refresh to go to a new html page, But the new html page is also showing up in the right side frame , But I want that new page to be displayed without a frame , I am aware if I use a href link to that html
page with a target ="_top" attribute , then I can achieve this,But I need it in automatic redirection.Can anybody help me ?.
Thanks in Advance
Srinivas
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are not adverse to using JavaScript, I believe you can just output after the form post/get:
<script language="JavaScript">
parent.location.href = "http://newurl";
</script>
or put a variant of that script in the onClick method of a Link or button.
for example, if you need the form submitted :
<a href="#" onClick="document.form.submit();parent.location.href='http://newurl'">
I'm not entirely sure if the syntax is correct, but this is the general idea.
[This message has been edited by Danny Mui (edited January 16, 2001).]
 
Srinivasa Dhamodharan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But I need it to be an unconditional redirection, In the right side html I get all the details and when the user clicks the submit button , it calls a jsp script to go and update in the database and after completing this operation , I need to display a message saying "Registered ... Please Wait " and then redirect to the new html file without any frames.
 
I knew that guy would be trouble! Thanks tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic