473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to set the selected field of combo box within the view

ParPar
6
I have two options in a combo box.

Expand|Select|Wrap|Line Numbers
  1. <select id="selLang">
  2.         <option value="/en" >english</option>
  3.         <option value="/fr" >french</option>
  4.     </select>
  5.  
When i choose the second option the page is refreshed and the selected option isn't displayed in the top of the combo box (i mean, as the selected item.)it's funny coz the page is in french and in the select box it's "english".
I want to set the selected option to be the selected option which is in the top of the combo box- within the view.
so my question is just how can i do it?
or maybe i have to create a cookie? and if so -how do i do t-h-a-t?
actualy i have this:
Expand|Select|Wrap|Line Numbers
  1. var urlString = window.location.host; 
  2. var Lang = $("#selLang")[0].value; 
  3. window.location = "http://" + urlString + Lang;
  4.  
and this: window.location.pathname - is exactly the value of the option.(and it remains the same after the page refreshing.) that's how i was thinking to get over the problem and avoid using in cookie.
Perhaps it's a silly question, but i'm quite new in this region.

Thanks in advance!
Sep 18 '11 #1
0 1137

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Support4John | last post by:
a2k (9.0.6926) SP-3 Jet 4.0 SP-7 I have a form with combo box field that allows the user to select from the combo box or type in the field value that may or maynot be in the combo box field. ...
1
by: Donna Sabol | last post by:
I have a form (frm_MAIN_RPT) that contains a combo box (Combo6) & subform (dbo_REQ_subform). The combo box is used to select the "cost center" data that will be displayed in the subform. From...
4
by: vermon | last post by:
This question is pretty dumb, but I am wondering what do you people prefer to use for a conceptual "yes/no" field: a combo box or radio buttons? My goal is the simplest possible to read GUI with...
0
by: Ruy Castelli | last post by:
Hello, currently, I've got a datagrid and one of its columns is a hyperlink. I would like to get this link to open a popup window with the details of the selected record. With the old ISAPI...
1
by: Robert A. Boudra | last post by:
As a newcomer to .Net I'm continually frustrated with the subtle and not so subtle changes that have been made since VB 6.0 that don't seem to server any real purpose other than to frustrate people...
4
by: copewithit | last post by:
Hi all, I'm trying to modify a record (in this case the name associated with the record) to a new name selected by the user in a combo box. Right now I have Single Form with a subform in datasheet...
7
by: Ceebaby via AccessMonster.com | last post by:
Hi All Here's hoping someone can help me with this. I have a report based on a query where the criteria for 4 of the fields is set from an unbound form. I want the user to be able to select any...
4
by: nistala | last post by:
Hi, I have a combo box which has status(daily, monthly, weekly) enabled and a combo hidden.on change,ie., If i try to select weekly in the combo, it should enable the hidden combo with all the...
2
by: ganesandeiav | last post by:
Dear sir how to retrieve a data that has been selected using combo box using jsp
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.