Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Thanks !!!!!!!!
Yes, the asphalt images are the same, I’m waiting for the new image from the design agency.
Why didn’t the code work in a separate javascript file?
I’m testing the site on an Android tablet and the section background doesn’t change like it does on a computer browser. Also the image sliding doesn’t work the same as a computer browser, they appear fixed. Is this expected?Michael
Hello Ismael,
I tried the selector you provided, it didn’t work.
Selectors tested include:
jQuery(‘#concrete-pigments-tab’).click(function() {
jQuery(‘div[data-fake-id=”#concrete-pigments-tab”]’).click(function() {
jQuery(‘.tab_counter_0’).click(function() {In the Concrete section, I’ve changed the clickable divs for Enfold buttons. These change the color section background as required.
The site is scheduled to go live on Thursday so I would appreciate a resolution soon. Thanks.Michael
Hello Ismael,
I made a change to the site to show my requirement.
In the Concrete section I have added two clickable divs, one for Pigments (blue background) and one for additives (red background), If you click the divs, the background image in the color section above the divs changes.
I want the same effect when the Pigments or Additives tab title is clicked.
It would appear that the click functions are not bound correctly for tab titles or something is preventing the trigger. Please view script file /js/mcl.js to see the binds I have tried and investigate the issue.
Regards,
MichaelHello Rikard,
Login details as requested.
Michael
Hello Andy,
I’ve put the click function attach code in script file ‘/js/mcl.js’. This has been registered and queued correctly.
To test the jQuery operation I inserted a code block above the Concrete section tab control. It contains the code below:
<style type=”text/css”> .code-block-div { color: yellow; background-color: blue; } </style>
<div id=”code-block-div” class=”code-block-div”>click this div for an alert box</div>In my script file I have a click function bound to ID #code-block-div, this just pops up an alert box. THIS WORKS.
I also have similar click functions bound to IDs #concrete-pigments-tab and #concrete-additives-tab but these do not trigger. These ID’s are the data-fake-id type. Is this causing the issue?As a further test, I wrapped the tab title for Additives in a div with ID #code-block-div as follows <div id=”code-block-div”>Additives</div>, this also did not work.
I know the jQuery attach mechanism works but not for the tab control.Please could you look into this as I don’t know your code well enough to diagnose this myself.
Regards,
Michael -
AuthorPosts