Issue 267: Setting nyroModal URL different HREF
Status:  Invalid
Owner: ----
Closed:  Jun 2009
Reported by gfxin...@gmail.com, Jun 21, 2009
I'm using nyroModal for a signup form on my website. I've a signup page
with no header/footer. It has just the signup form. I want this to load in
nyroModal.

However, when the user chooses to "open in new tab" or  "open in new
window", i want a different page to load a different page which has the
signup form along with header, sidebar, footer etc..

How can i achieve this ?

Jun 22, 2009
Project Member #1 nyro...@gmail.com
2 different solutions:
- Add an id around your form and use the nyroModal targetting feature in your link
(login.php#loginForm) That's mean the loaded page will be exactly the same in the
differents case. Not the better solution regarding the optimization, but the easiest
i think
- Detect in your server-side script if the request is an Ajax one and add the
header/footer only if it's not an Ajax query. You can find an example of a PHP
function here:
http://nyrodev.info/index.php/2008/03/22/191-howto-update-a-website-to-reload-the-page-through-ajax

hope it helped.
Jun 22, 2009
#2 gfxin...@gmail.com
Yeah, that helped. Thanks very much :)
Understood both the solutions :)
Jun 22, 2009
Project Member #3 nyro...@gmail.com
ok, thanks for the reply
Status: Invalid