Originally posted by gabrielcrowe
Announcement
Collapse
No announcement yet.
a freebie: recently viewed items.
Collapse
X
-
Originally posted by OriginalTouchafter which body statement
did it after <bodyonload> to no avail
or do you mean to replace one of the pieces of script you gave before?
But tried the above and was wondering why it didn't work.
Sometimes, it may be nice to remember that some of us are novices at this and that is why this forum is so useful.
Rather than criticising?........Sam
http://www.originaltouch.co.uk
http://www.spcb.co.uk
If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.
Failure is the tuition you pay for success.
Comment
-
Sometimes, it may be nice to remember that some of us are novices at this and that is why this forum is so useful.
Rather than criticising?........
Comment
-
One of the assets of Actinic (and a reason for purchase) is the access to this forum, for ideas and support from more experienced users - a wealth of information that most software lacks after purchase. Unfortunately, nobody is unfallible and everyone makes mistakes. Many visitors, me included, are already experienced website and html designers, just needing an occasional nudge in the right direction for adapting this particular software to our own needs, sometimes even adding new tools (which I also have helped to adapt). This software can be adapted to many different styles of website with some great tweaks to be found in this forum. You can be assured that any support given by Actinic users is always much appreciated and saves great time and effort. My point was just that it does seem a shame if personal criticisms are posted that stray from the query in question (This seems to have happened on quite a few other threads). I am sure that we are all nice people really - let's all be supportive to each other - and I hate arguments!
In this case, the solution did not work - the script was added after
<body onLoad="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
which may be in the wrong place?Sam
http://www.originaltouch.co.uk
http://www.spcb.co.uk
If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.
Failure is the tuition you pay for success.
Comment
-
My point was just that it does seem a shame if personal criticisms are posted that stray from the query in question (This seems to have happened on quite a few other threads).
Gabe gave his code as a freebe to the forum and did not offer support for it. If you are having a problem then perhaps you could offer to pay him to fix it for you - a novel idea I know
Comment
-
Matt,
Adapt the bit from post #1 "this part goes in the product layout, at the bottom" top be in your Extended Info layout instead. You should only need to alter the ProductImage variable to use the Extended Info one.
Post how you do it so others can benefit from it.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
I guess I'm going to get slapped for this... But here goes. I have put the javascript in and it is all nearly working. I just don't get any images showing up. I'm sure the answer is simple. Could one of you Actinic Guru's point me in the right direction.
Here is a link to product page...
http://actinic.hud.ac.uk/u0769560/ac...s_Backing.html
Thanks, and please go easy on me, I'm an Actinic Nube!
Comment
-
Greg,
This tweak was really intended for single product per page type sites.
Not for multiple product per pages like you're using but it will still work there - just a bit meaningless as it will be fully poulated by all the products on the last page viewed.
To debug, add some diagnostic code to your JS so you can see what's happening. E.g.
alert('Got here');Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Update: Greg, your cookie contains
<div class="viewed"><a href="http://actinic.hud.ac.uk/u0769560/acatalog/Leaders_Backing.html"><img src='' width=75 height=75 /><br/></a></div>
And that src='' means that you haven't picked up the product image filename.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
No - it's a built-in Actinic Variable. It's not being picked up in the JS that sets the cookie. You have to discover why.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
First, thanks for the direction Norman,
I have it working so that the cookie is only set when you open the extended info window, which is a good fix for those of us without SPPs. I did this by following Normans instructions above.
RE the nullnullnull problem, gabriel's way doesn't quite work yet...
I have a half fix, although even with my limited knowledge of javascript, i know it shouldn't really be done this way...
Code:<script> if(getCookie("p0")==null){setCookie("p0"," ")} if(getCookie("p1")==null){setCookie("p1"," ")} if(getCookie("p2")==null){setCookie("p2"," ")} if(getCookie("p3")==null){setCookie("p3"," ")} if(getCookie("p4")==null){setCookie("p4"," ")} </script>
Secondly,
Currently, the javascript writes the cookie so that the link for the image is to document.url, or self basically. Obviously if im setting it from the extended info page then it points to that. id like it so that when the image is clicked, the link is to the product anchor link on the section page, not the extended info page. This way they get taken to the item, not just shown info about it. Im sure there is a variable to do this, but i can't see it for the life of me.
Finally, it a bit messy how the images dont keep their aspect ratio. can this be fixed easily?
Many Thanks, matt
Comment
-
Link: Use opener.location.href in your JavaScript.
Images: Set only width or height - not both.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
Comment