Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 1st, 2003, 01:00 AM
Authorized User
 
Join Date: Sep 2003
Location: islamabad, pk, Pakistan.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Problem In refreshing a page.

Hello again, I am building a Library Application in ASP. There is a page for Book relating information entry. There is a Combo Box having the Language Of the Book(FROM THE DATABASE ).when admin enters a new book, he didn't find the required language of the Book from that Combo Box, there is a link"add new Language" a new page occures where he can add Language,after adding the Lanugae he returnd to the entry Page. Now the Problem is that How Can I Reload Entry Page so that newly entred information will bw available in the Combo Box

Zaeem Sherazi
__________________
Zaeem Sherazi
  #2 (permalink)  
Old November 3rd, 2003, 03:35 PM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

a couple of ways you could do this, the hard part will be keeping all of the information that user has already entered on the page after the refresh.

You'll have to do this in ASP, and I would suggest creating a "Hidden" form that looks something like:

<form name="onLangAdd" method="POST" action="#" onSubmit="submitMe()">
   <HIDDEN INPUTS FOR EACH OF THE FORM VALUES>
</form>

the onSubmit will look something like:

<script language="javascript">
   function submitMe() {
      //FOR EACH FORM INPUT,
      //SAVE IT'S VALUE IN ONE OF THE HIDDEN INPUTS
      onLangAdd.submit();
   }
</script>

Then what you'll do is after the pop-up saves the new language, it will call, in javascript, opener.onLangAdd.Submit();

that way, you preserve all of the users information that they have entered so far, and you call the page again, causing it to reload that combo box. OH, and for each of the form fields you'll need to do this:

<input type="text" name="bookTitle" value="<%=Request("bookTitle")%>">

That's what will pull the data from our form submit back into the form field.

let me know if you need any more help!
T.
awellard@magellanhealth.com

  #3 (permalink)  
Old November 4th, 2003, 12:42 AM
Authorized User
 
Join Date: Sep 2003
Location: islamabad, pk, Pakistan.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default

Thanx buddy for ur response. I'll try ur suggested code and let u know about it.

Zaeem Sherazi


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with iframe content when refreshing page klax Javascript 0 April 21st, 2007 04:43 PM
Problem with refreshing the page fozia_izhar .NET Framework 1.x 1 March 24th, 2007 02:18 PM
page not refreshing Bill Crawley ASP.NET 2.0 Basics 8 February 28th, 2007 11:39 AM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.