Search found 193 matches

by rogerl
Tue Jun 30, 2020 11:59 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Hi Guys, A further to as I had a play the other night knowing this would be useful for my site. I have a common error page called from multiple forms so needed to adapt the script to accommodate that and use your "_self" amendment. So ended up with this: <script> (function(){ // Your URL var url = d...
by rogerl
Tue Jun 23, 2020 12:23 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Enjoyed the challenge, not the frustration!
Thanks for the other update for the error page, that will be useful for something I'm working on as well.
by rogerl
Tue Jun 23, 2020 10:22 am
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Hi Guys, I believe I have had success! Couple of things to start: In page properties for "Survey.php" the default lightbox is not fancybox In error and success pages it does not have access to jquery or fancybox scripts and there is the complication of child verses parent as outlined above. I found ...
by rogerl
Tue Jun 23, 2020 2:12 am
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Far easier to see what's happening with the project file, thanks for that. I think this is best handled in the "success" page that could execute a script after page load in the light box. Will have a play later today.
by rogerl
Sun Jun 21, 2020 10:37 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Yes, do it there then. If I could see your project file I would know better how to help.
by rogerl
Sun Jun 21, 2020 11:18 am
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

The lightbox you open for success has a settings button. Try this code in there: 'onComplete': function(){ setTimeout( function() {$.fancybox.close(); },4000); // 4000 = 4 secs } and remove the event / timer stuff then preview and see what happens. You could upload your test project (.wbs file) and ...
by rogerl
Sat Jun 20, 2020 10:55 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Following up on my earlier hint you could play with the quotes and try:

Code: Select all

'afterClose': function(){
    parent.location.href = "page.name"; // i.e. Index.html
},
These things have been tried, just need to find the right combination.
by rogerl
Sat Jun 20, 2020 9:04 am
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

you could use the afterClose function. Not sure if this works with early versions of fancybox

Code: Select all

afterClose: function(){
    parent.location.href = "page.name"; // i.e. Index.html
},
or something similar to load up the page of your choice.
by rogerl
Fri Jun 19, 2020 11:09 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

Also just looking at that code, the placement of the single quotes I would query. I helped someone last year on something similar and after much experimentation that is what made the difference to the option commands working.
by rogerl
Fri Jun 19, 2020 10:56 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 1482

Re: Close lightbox

If you are using the built in fancybox then just putting your settings in the "lightbox", "fancybox", settings button should suffice then add the last bit. As far as I can see BaconFries has already given you direction, you just need to apply in a way that works, which is often the problem. No I hav...
by rogerl
Sun May 24, 2020 11:52 pm
Forum: General Questions
Topic: Event trigger object on another page?
Replies: 3
Views: 944

Re: Event trigger object on another page?

Do you always want the calculator layer to pop open when shop2 loads? or do different events happen on shop2 when clicked from other locations.
by rogerl
Sat May 16, 2020 11:31 pm
Forum: General Questions
Topic: LightBox - Fancybox scroll bar
Replies: 5
Views: 405

Re: LightBox - Fancybox scroll bar

Hi Alex - There are multiple solutions, the problem being in applying one that works for you. I remember looking at this some time ago and decided the time needed for me to interpret and work out how to apply was not worth it. Just another challenge! Have a read of this: https://stackoverflow.com/qu...
by rogerl
Sat Apr 25, 2020 10:48 pm
Forum: General Questions
Topic: Change Admin Password with a module?
Replies: 2
Views: 1277

Re: Change Admin Password with a module?

On my site I provide a hidden link to the Admin module and have it come up like a normal page. I can login and change / delete or add user details from there including Admin.
by rogerl
Sun Apr 05, 2020 7:02 am
Forum: General Questions
Topic: ***SOLVED***Ghost images and information in project
Replies: 8
Views: 657

Re: ***SOLVED***Ghost images and information in project

It's a handy feature especially when you have multiple breakpoints and, for instance, you need to use a different menu in smaller view-ports, you hide the full size version but still be able to see its location on screen and also track what objects are outside the view-ports boundaries. Also because...
by rogerl
Sun Apr 05, 2020 12:08 am
Forum: General Questions
Topic: ***SOLVED***Ghost images and information in project
Replies: 8
Views: 657

Re: Ghost images and information in project

In the ribbon tab "View" have you got "Render Hidden Objects" ticked?