
FreewayTalk
7 replies to this thread. Most Recent
Richard Lowther
30 Nov 2020, 6:00 pm
[Pro] Javascript and Webyep
Webyep and Javascript.
I have a site built in Freeway 7.1.4 with Webyep 2 actions included, version 3.5. It has not been updated for a while but now the client wants a new page. Checking over the site all is still working - except on one page where trying to open a Webyep item results in a window popping up saying that Javascript should be enabled in my browser if I want Webyep to work. But it is enabled both in Safari and Chrome and always has been. WY also work on all the other pages,
Any idea anyone - or Max ? The page in question is http://absinthe.fr/restaurant.php
Thanks Richard
waltd
30 Nov 2020, 7:46 pmI’m looking at the site now, and I can’t figure it out. The same scripts are loaded on both a working page and a non-working page. Ironically, one page I looked at had both Prototype.js and jQuery.js on the same page, and usually that is a recipe for everything going sideways, but that’s the working page… I’ll keep digging and let you know what I see. Have you managed to reach Max?
Walter
On Nov 30, 2020, at 1:00 PM, Richard Lowther <[email protected]> wrote:
Webyep and Javascript.
I have a site built in Freeway 7.1.4 with Webyep 2 actions included, version 3.5. It has not been updated for a while but now the client wants a new page. Checking over the site all is still working - except on one page where trying to open a Webyep item results in a window popping up saying that Javascript should be enabled in my browser if I want Webyep to work. But it is enabled both in Safari and Chrome and always has been. WY also work on all the other pages,
Any idea anyone - or Max ? The page in question is http://absinthe.fr/restaurant.php
Thanks Richard
Freeway user since 1997
waltd
30 Nov 2020, 7:50 pmYou know what, I’m gonna guess it’s a lack of Prototype that’s making your page fail. Try this:
In Freeway, look in the Page / HTML Markup dialog on a working page, look in the After HEAD section of that dialog. If you see these lines there:
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript">
</script>
<script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects" type="text/javascript">
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js"></script>
Then that’s a clue.
On your non-working page, go to the Page / HTML Markup dialog, and ensure you are on the After HEAD section, and paste in the above code block. Publish, Upload, and try again.
This is all just a wild-assed guess on my part.
Walter
On Nov 30, 2020, at 2:46 PM, Walter Lee Davis <[email protected]> wrote:
I’m looking at the site now, and I can’t figure it out. The same scripts are loaded on both a working page and a non-working page. Ironically, one page I looked at had both Prototype.js and jQuery.js on the same page, and usually that is a recipe for everything going sideways, but that’s the working page… I’ll keep digging and let you know what I see. Have you managed to reach Max?
Walter
On Nov 30, 2020, at 1:00 PM, Richard Lowther <[email protected]> wrote:
Webyep and Javascript.
I have a site built in Freeway 7.1.4 with Webyep 2 actions included, version 3.5. It has not been updated for a while but now the client wants a new page. Checking over the site all is still working - except on one page where trying to open a Webyep item results in a window popping up saying that Javascript should be enabled in my browser if I want Webyep to work. But it is enabled both in Safari and Chrome and always has been. WY also work on all the other pages,
Any idea anyone - or Max ? The page in question is http://absinthe.fr/restaurant.php
Thanks Richard
Freeway user since 1997
Richard Lowther
30 Nov 2020, 10:26 pmThanks for taking the time to look Walter. I will give your wild assed guess a deserved whirl in the morning as it’s now late here in France. Nothing from Max as yet but I will mail him direct if your idea comes to nought.
Richard
waltd
1 Dec 2020, 1:04 amLooking at this again, I see that you only want the first two lines of that HTML markup, not the third one:
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript">
</script>
<script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects" type="text/javascript">
</script>
The third script tag is actually there because the second line ran and did its job.
Walter
On Nov 30, 2020, at 5:26 PM, Richard Lowther <[email protected]> wrote:
Thanks for taking the time to look Walter. I will give your wild assed guess a deserved whirl in the morning as it’s now late here in France. Nothing from Max as yet but I will mail him direct if your idea comes to nought.
Richard
Freeway user since 1997
Richard Lowther
3 Dec 2020, 11:26 amHi Walter
I have copied in your code as you suggest but it has no effect sorry to say. In fact I do not have any HTML Markup for prototype and scriptaculous on any page. Yet Webyep works everywhere except on the one obstinate page.
However some positive news albeit unexplainable. Following too much time dealing with other issues - mostly missing resources files which Freeway/me had put in a now-forgotten place of safekeeping - I saved a copy. And then archived it. There followed checks both in MAMP and on a remote server. The original version won’t open Webyep on the obstinate page but the copy/archive will. I aim to continue trawling through both to see if I can see what the difference is but right now I am happy to see it working. However, first I had better build the new page as that has become the squeakier wheel that needs the oil.
But if this holds your interest and you have the time
Here it works http://www.richard-lowther.com/absinthe2/restaurant.php
Here it doesn’t http://www.richard-lowther.com/absinthe3/restaurant.php
Best wishes Richard
waltd
3 Dec 2020, 2:00 pmOkay. I figured it out. The difference seems to be in Exhibeo. The theme on the page that works (photoswipe) doesn’t rely on jQuery, while the one on your non-working page (showtime) does. This seems to be breaking the page in a silent way. To see if you can get things to work again, try changing the theme in Exhibeo back to photoswipe, publish again as absinthe4, and post it.
You can get rid of the markup that adds Prototype and Scriptaculous to the page, that was a false turn.
Walter
On Dec 3, 2020, at 6:26 AM, Richard Lowther <[email protected]> wrote:
Hi Walter
I have copied in your code as you suggest but it has no effect sorry to say. In fact I do not have any HTML Markup for prototype and scriptaculous on any page. Yet Webyep works everywhere except on the one obstinate page.
However some positive news albeit unexplainable. Following too much time dealing with other issues - mostly missing resources files which Freeway/me had put in a now-forgotten place of safekeeping - I saved a copy. And then archived it. There followed checks both in MAMP and on a remote server. The original version won’t open Webyep on the obstinate page but the copy/archive will. I aim to continue trawling through both to see if I can see what the difference is but right now I am happy to see it working. However, first I had better build the new page as that has become the squeakier wheel that needs the oil.
But if this holds your interest and you have the time
Here it works http://www.richard-lowther.com/absinthe2/restaurant.php
Here it doesn’t http://www.richard-lowther.com/absinthe3/restaurant.php
Best wishes Richard
Freeway user since 1997
Richard Lowther
4 Dec 2020, 10:42 amThank-you Walter - yes the alternative Exhibeo works. It is there not due to any meticulous test and trace on my part but my sloppily picking an alternative version whilst crossly chasing down those missing files FW kept pointing out to me. I think I have relied on serendipity too much in my life but, nevertheless, it keeps on giving.
Best wishes and thanks once more for taking the time.
Richard
