safuk2233
10-29-2007, 10:34 PM
I am trying to make a function from this:
javascript: myLightWindow.activateWindow({href: \''. DIR_WS_IMAGES. $product_info['products_image'] .'\',
title: \'Waiting for the show to start in Las Vegas\',
author: \'Jazzmatt\', caption: \'Mmmmmm Margaritas! And yes, this is me...\', left: 300});"
value="Launch it from this Button!"
my code so far is:
<script type="text/javascript">
products_id = function () {
var links = $$('.products_id');
links.each(function(link) {
Event.observe(link, 'change', function() {myLightWindow.activate(null, link);}, false);
link.onchange = function() {return false;};
});
}
</script>
and I am calling it from
<select id="products_id" name="products_id" onchange="\'\', myLightWindow.activate(this.options[this.selectedIndex].value)"></select>
The above select is populated from a database. i got it working with dinamyc content but can not get it to work with lightwindow and lightwindow is what I am using.
I do not know if the function is called from the javascript above or from the lightwindow js, all I know is that the page wants to load but the
this.options[this.selectedIndex].value value is not passed along and the page does not load. Just displays Loading.. or Cancel
Please help me, I need this! :confused: :confused: :confused:
javascript: myLightWindow.activateWindow({href: \''. DIR_WS_IMAGES. $product_info['products_image'] .'\',
title: \'Waiting for the show to start in Las Vegas\',
author: \'Jazzmatt\', caption: \'Mmmmmm Margaritas! And yes, this is me...\', left: 300});"
value="Launch it from this Button!"
my code so far is:
<script type="text/javascript">
products_id = function () {
var links = $$('.products_id');
links.each(function(link) {
Event.observe(link, 'change', function() {myLightWindow.activate(null, link);}, false);
link.onchange = function() {return false;};
});
}
</script>
and I am calling it from
<select id="products_id" name="products_id" onchange="\'\', myLightWindow.activate(this.options[this.selectedIndex].value)"></select>
The above select is populated from a database. i got it working with dinamyc content but can not get it to work with lightwindow and lightwindow is what I am using.
I do not know if the function is called from the javascript above or from the lightwindow js, all I know is that the page wants to load but the
this.options[this.selectedIndex].value value is not passed along and the page does not load. Just displays Loading.. or Cancel
Please help me, I need this! :confused: :confused: :confused: