Populating and restoring values in listboxes

bikeridercz

No avatar

2009-09-06 20:17

Dear all,

I already tried to look through forum resource to solve my problem, but found nothing.

I'm trying to work with listboxes in the way that is complient with QUICK.CART solution, so I expecting full support in framewotk for listboxes.

For example I'm trying use listbox in "templates/users.tpl" where following listbox can be found:
<select id="oCompany" name="sCompanyName" onblur="saveUserData( this.name, this.value )">
<option value="empty">- please select a value -</option>
<!-- How to get values here ? -->
</select>

I'm interested how to solve following tasks:
1. How and where can I configure values for "oCompany" listbox
2. If I select some value, it is correctly stored in "sCompany" variable/cookie. However I'm wondering how to preselect value, that was already choosen before, for example:
<select id="oCompany" name="sCompanyName" onblur="saveUserData( this.name, this.value )">
<option value="empty">- please select a value -</option>
<option value="Blue">Blue</option>
<option value="Red" selected="X">Red</option> <!-- <-THIS IS PRESELECTED VALUE -->
<option value="White">Red</option>
</select>

I hope I explained the problem well.

Thanks for Your help and time You spent to solve my problem.

Best regards.

Radim.

» Quick.Cart v2.x

beholder

Avatar: beholder

2009-09-06 23:35

Hi, Radim, I'd love to help you but this forum is not for paid version of quick cart and your 2.x version is a bit old, so there is no reason for me to do a public support. It is tiresome writing code in the board, so unless it's the new 3.x version, I am not much inclined to do it.

Tell you what, write in Czech to my email address (it can be found by searching my posts on this forum) and I'll try to help you by email or directly on your FTP.

Or ask OpenSolution guys via their support email.

bikeridercz

No avatar

2009-09-07 08:50

OK, I expected support on this forum from framework developers primarily.

Anaway thank you for willingness, I appreciate support from your site even you are not from quick.cart.

Unfortunatelly I'm not able to find your email address among thousands of posts.

Please send me contact to you at rmkk@atlas.cz

Thaks.

Back to top
about us | contact