Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modalpopups

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
I saw this question posted on another board over a year ago and didn't get any answer. I'm running into the same problem though and was hoping someone here could answer it. Thanks!...

I have a masterpage with a login link and would like the modalpopup window to show up with a login control when the link is clicked.

If I follow the sample I would have to put the “login modalpopup window code” into the masterpage html code.

Is there a way where I can have a login.aspx page and when I click on the login link on the masterpage the modalpopup window would show up with the login.aspx content displayed inside it?

So that each modalpopup window would have its own html or aspx page. If I use the approach show in the sample the code becomes messy and hard to maintain.
 
What do you mean by modal popup? Could you post a link to an example of this on another site?

There are several ways to present "popups" - one is to use window.open() and size the popup window... and another is to use a DIV and float it above the rest of the page contents.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
In which case it is the second of the options I presented:
Me said:
... and another is to use a DIV and float it above the rest of the page contents.
Yes you can do this. You might have to fetch the markup for the "modal popup" via XHTTP or something... but there are many examples of making something "modal" as such... Lightbox (which presents images) springs to mind immediately. Scriptaculous has something like this available as an effect I think.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
I built my own, stuck it in a .js file, and use it for a lot of the ajaxy stuff I do [smile]

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
kaht,

does it work with a separate aspx form in it? I have inline popups working (that call separate aspx pages), but if the aspx page has a form in it (textboxes and submit button) the form won't work or will open in it's own window.

thanks.
 
does it work with a separate aspx form in it?

It will work with whatever markup you want to put in it. It creates a new div and appends it to the document body, so you don't have to worry about nested forms or any garbage like that.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top