I need some guidelines for the following:
Case scenario: I have an implemented list like the "blog_list" in the Couch Documentation. The list has thumbnails with a hyperlinked <a> tag. On clicking the thumbnail, a pop up is displayed to either sign-up or login. Once a registered user (validation checked through javascript) enters their email address and clicks login, I want to navigate the user to the URL which is part of the editable tag.
<cms:editable name='post_link' label="Post Link" type='text' />
<a href = "javascript:void(0)"
onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('fade').scrollIntoView(true)" data-fancybox-group="gallery"><img src="<cms:show my_image_thumb />" alt="" class="fade"></a>
This will bring the pop-up to sign-in. If I need to access a link directly I have successfully done through in the JavaScript as:
window.location='http://www.abc.com/SF/def/xyz.php';
However, how should I now reference the URL of CMS:Editable in the javascript function. The JavaScript function is in a javascript file placed in the "js" folder
Case scenario: I have an implemented list like the "blog_list" in the Couch Documentation. The list has thumbnails with a hyperlinked <a> tag. On clicking the thumbnail, a pop up is displayed to either sign-up or login. Once a registered user (validation checked through javascript) enters their email address and clicks login, I want to navigate the user to the URL which is part of the editable tag.
<cms:editable name='post_link' label="Post Link" type='text' />
<a href = "javascript:void(0)"
onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('fade').scrollIntoView(true)" data-fancybox-group="gallery"><img src="<cms:show my_image_thumb />" alt="" class="fade"></a>
This will bring the pop-up to sign-in. If I need to access a link directly I have successfully done through in the JavaScript as:
window.location='http://www.abc.com/SF/def/xyz.php';
However, how should I now reference the URL of CMS:Editable in the javascript function. The JavaScript function is in a javascript file placed in the "js" folder