
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2015 07:59 PM
I'm trying to test a simple UI Script, but feel kind of lost - it's not working.. The idea is very simple - I want to make "Homepage" menu item under Self-Service red. I know the element id, but script is not working... I even added addLoadEvent function, no success... any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2015 11:37 PM
Hi Andrew,
The following global UI script does the trick in Geneva
try {
getTopWindow().document.getElementById("4aeebcd20a0a0b9a00572ae3ad68b072").style.backgroundColor = 'red';
}
catch(e){
}
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2015 11:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 06:43 AM
Hi Berny,
Your script is not working in Helsinki. I want to modify Banner 'glide.product.description' banner description dynamically, basis on some condition.
Any solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2016 12:38 PM
Hi Siddharth,
I tried the script today in an instance with Helsinki and it's working great.
What problem are you facing?
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2016 05:38 AM
Hi Berny,
Here is my script:
addLoadEvent(u_setCustomTitle);
function u_setCustomTitle(){
$j(".banner-text").innerHTML=dynamic_title;
}
I want to modify banner text dynamically. Code is running fine I can see dynamic_title in alert box but it doesn't allow me to manipulate the DOM element i.e .banner-text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2016 12:19 AM
Hi Siddharth, it depends on the context ("window") on which your script is running. That's why on mine i have the following:
getTopWindow().document
so that the script runs on the context where the navigation window is available.
Thanks,
Berny