Hi,

First and foremost - thanks for the feedback!  It's MUCH appreciated!
To test, you can go to www.flexin.be

Once arrived on that site, log in using t...@speedpacket.com / test123
(top right)

Then go to 
http://flexin.be/site/en/ProductSubscriptionDomain/addToCart/index.html
(it will return an error if you are not logged in yet)

Next, search for a domain name; if it is available, it will result in
a row in the table which gives you some order options; change the
order option to two years for instance - that is where we run into
this issue...

There may still be some debugging code on the page, but it should give
you an idea as to what we want to achieve (the prices shown should
reflect that for the period selected...)


Thanks again for the feedback!  Very much appreciated!

David.

On Sep 18, 5:59 pm, david <david.brill...@gmail.com> wrote:
> Hi speedpacket,
>
> > this is the javascript that worked up until a few weeks ago when I
> > upgraded to the new release of prototype:
>
> I've tested with with prototype v1.6.0.2 and 1.6.1 and both does not
> return anything.
> But I'm not sure, because I have to modify the code you give.
> Please, send us a link, or a whole code, we'll have to test and guess
> how to set variables like  orderOptions, domainSearchResult, ...
>
> > Also - I know adding attributes to the elements like that is not the
> > way to go - I just don't know how I can do this otherwise :(
>
> There is the new Element.store which is done for that. give it a try.
> see:http://api.prototypejs.org/dom/element.html#store-class_method
> It could save a lot depending to what you want do.
>
> --
> david
>
> On 18 sep, 14:17, "speedpac...@gmail.com" <speedpac...@gmail.com>
> wrote:
>
> > Hello,
>
> > I'm trying my secod post here - I never got my first to end up on the
> > list, so l'ts try it through the google groups website directly now...
>
> > I'm having an issue that I hope someone here can help me with...
>
> > I have the following code:
>
> > HTML:
> > ----------
> > <select id="orderOption[hjkhhjh.ch]" domain="hjkhhjh.ch"
> > name="orderOption[hjkhhjh.ch]">
> > <option value="N100005" domain="hjkhhjh.ch" prepaid_total="18.50 EUR"
> > postpaid_total="23.15 EUR">Registreer voor 1 Jaar</option>
> > <option value="N100006" domain="hjkhhjh.ch" prepaid_total="36.30 EUR"
> > postpaid_total="45.40 EUR">Registreer voor 2 Jaar</option>
> > <option value="N100009" domain="hjkhhjh.ch" prepaid_total="53.40 EUR"
> > postpaid_total="66.60 EUR">Registreer voor 3 Jaar</option>
> > <option value="N100007" domain="hjkhhjh.ch" prepaid_total="87.00 EUR"
> > postpaid_total="109.00 EUR">Registreer voor 5 Jaar</option>
> > <option value="N100008" domain="hjkhhjh.ch" prepaid_total="170.50 EUR"
> > postpaid_total="213.50 EUR">Registreer voor 10 Jaar</option>
> > </select>
>
> > What I'm trying to do is when a user selects an option from the list,
> > the prepaid_total and postpaid_total price should show on a different
> > div...
>
> > this is the javascript that worked up until a few weeks ago when I
> > upgraded to the new release of prototype:
> > JAVASCRIPT:
> > --------------------
>
> >             orderOptions.observe('change', function(event) {
> >                 alert('clicked for ' + orderOptions.getAttribute
> > ('domain'));
> >                 rec = $('domainSearchResult').select('[domain="' +
> > orderOptions.getAttribute('domain') + '"]');
> >                 tdPrepaid = rec[0].select('[f="prepaid"]');
> >                 tdPostpaid = rec[0].select('[f="postpaid"]');
>
> >                 alert(orderOptions.getValue());
> >                 selectedItem = orderOptions.select('[value="' +
> > orderOptions.getValue() + '"]');
> >                 alert(selectedItem);
> >                 tdPrepaid[0].update(selectedItem[0].getAttribute
> > ('prepaid_total'));
> >                 tdPostpaid[0].update(selectedItem[0].getAttribute
> > ('postpaid_total'));
> >             });
>
> > The two first alerts give me what I expect, the third one just returns
> > NOTHING...  I used to be able to select the options with the value
> > like that, but it seems to be no longer working...
>
> > Any idea?
>
> > Also - I know adding attributes to the elements like that is not the
> > way to go - I just don't know how I can do this otherwise :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to