|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
I have a selection tag in some of my JavaScript, and heres how it goes:
Quote:
Now each option tag has a "value" attribute inside it, and the values given for it are like this, or are in this format: Quote:
Now my question is this: What do those dern bars do inside the "value" attribute's value? I know that in C++ those bars when coupled together with one another set an argument to make an "or" parameter, but I know for a fact that this isn't the case in this given code. Inside the login it sets the given example as the username, password, and directed site when a certain username is selected, but when the script is inacted, is it those bars that tell the browser that when a given username is selected that the password and site are translated along with the username??? Thanks for any help. |
|
#2
|
||||
|
||||
|
They don't mean anything. I assume they are just to separate
the data so the script can split the string up to get the bits it's after. Hard to tell without actually seeing the script though, so could you post the code for the actual script please? Even better: can you paste a link to the live page? |
|
#3
|
||||
|
||||
|
That has to be the least secure method of username/password i have ever seen =)
I advise you not post a live example as promoting a user's password and their login destination is a bad thing. As Agent47 has stated, I'm pretty sure that the pipe's are used as delimeters to divide the value into the three necessary parts. I am curious though, how does this select box get populated? If you have a new user, is it just manually added to the list (editing the HTML in a text editor) |
|
#4
|
|||
|
|||
|
I'd use some id in select value, and store username/password in backend.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Have a Q about selection tags... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|