• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic