Search found 211 matches

by rogerl
Sat Jul 25, 2020 11:48 pm
Forum: General Questions
Topic: WWB on a Linux Desktop PC
Replies: 56
Views: 5445

Re: WWB on a Linux Desktop PC

Here is some basic stuff from W3 schools CSS: Insure 16:9 video or add appropriate background to page to cover white spaces <style> /* Style the video: 100% width and height to cover the entire window */ #myVideo { position: fixed; right: 0; bottom: 0; min-width: 100%; min-height: 100%; } /* Add som...
by rogerl
Sat Jul 25, 2020 1:54 pm
Forum: General Questions
Topic: WWB on a Linux Desktop PC
Replies: 56
Views: 5445

Re: WWB on a Linux Desktop PC

On reflection I have it working on html5 video not youtube. Another challenge!
by rogerl
Fri Jul 24, 2020 11:23 am
Forum: General Questions
Topic: WWB on a Linux Desktop PC
Replies: 56
Views: 5445

Re: WWB on a Linux Desktop PC

Hi Alex, There is a way around this but really need to see how you setup your page. My way around this is to insert this code so an auto click on the video object / play button is executed after the page loads: <script> $(document).ready(function() { $("#<id of video object or play button>").trigger...
by rogerl
Tue Jun 30, 2020 11:59 pm
Forum: General Questions
Topic: Close lightbox
Replies: 25
Views: 5673

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: 5673

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: 5673

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: 5673

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: 5673

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: 5673

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: 5673

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: 5673

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: 5673

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: 5673

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: 1286

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: 542

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...