cool - thank you
well, I’m still kind of lost with this;
on the main page I basically have this code:
indices: function() {
var accordion = new Accordion('dt.toggler', 'dd.section', {
opacity: false,
fixedHeight: 170,
onActive: function(toggler, element){
toggler.setStyle('color', '#ff3300');
var url = "http://localhost/sites/trade.ch/index.php?id=137&ticker=^DJA";
new Ajax(url, {
method: 'get',
update: toggler.getNext()
}).request();
},
onBackground: function(toggler, element){
toggler.setStyle('color', '#222');
}
}, $('accordion'));
}
then there is page 137 that has just a snippet call like this: [[stocks]] - the main question now is how I can pass the ticker symbol to the snippet through page 137 - another issue is whether I can use [~137~] in the javascript code above instead of having to put the full url.
Maybe it’s easier to just put the php code into an external file instead of having it as a snippet.
Hope you can help - Thank you in advance for your input!