Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: ASP in functions?


Message #1 by "Richard Salmond" <rsalmond@m...> on Mon, 30 Apr 2001 16:37:47
Instead of refreshing the page, why not submit it to the server, and refill 
any values back in when you reload the page.

Another option is to create an iFrame with just the dropdown, so all you 
are refreshing is just the dropdown. This even looks better because you'll 
hardly notice that the page is refreshed (eg no flickering).
iFrames are not supported by all browsers though.

Hope this helps,

Imar



At 05:33 PM 4/30/2001 +0000, you wrote:
>Thanks Imar
>
>I have a form shich takes the options in drop down lists from a database.
>I want to ba able to add an option to the database from a pop-up window
>then have the drop down list update.  at present everything works but the
>only way I can get the list to update is to refresh the original page.
>This works but clears all the fields that have already been filled
>in...cue pissed off punter
>
>Rich
>
> > Hi Rich,
> >
> > No, not directly. You'll need to submit the page before it can be
>processed
> > server side. What is it what you are trying to accomplish? There might
>be
> > other ways to overcome this "limitation"
> >
> > Imar
> >
> >
> > At 04:37 PM 4/30/2001 +0000, you wrote:
> > >Can I put server side script inside a client side function?  I want to
>be
> > >able to repeat a small bit of ASP code by calling it from within a
> > >document. Any ideas appreciated
> > >
> > >Rich
> >


  Return to Index