Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:23 PM.


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