Steve Dyke

Ranch Hand
+ Follow
since Nov 16, 2004
Merit badge: grant badges
Cows and Likes
Cows
Total received
2
In last 30 days
0
Total given
0
Likes
Total received
11
Received in last 30 days
1
Total given
51
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Dyke

I went with the third option you suggested Carey. It works great and as expected.
All were great answers and thanks for everyone's input.
This is a great site and very helpful for those of us that are not so keen as we wish we were.
3 weeks ago
My String will be Srting itemno = 899999-001 but sometimes it may be 899999-001-999

I just need the first dash number of either(-001)
The following will get me -001 and -001-999
If I use lastIndexOf and there is just -001 it will return empty.

3 weeks ago
In my web app the user can use a hand held scanner to populate certain input elements.
The scanner can be programmed to do an auto CR or Tab function.

I have been able to use keyCode == '13' successfully but am having issues with keyCode == '9'.

I got this to work:

I have tried this but still does not work:

The events are firing. It is this code that is not causing the itemstatus-stock-body to show or hide when event is fired.

I have a selector three containers deep that I want to fire an on click event.

Code snippet to show intention.

Bear Bibeault wrote:Learn how to use flex for layout and your life will be greatly improved.



How do I get each container to shrink to content height when using flex?
Right now both containers are the same height even though one of them only has one line of text.

Bear Bibeault wrote:Learn how to use flex for layout and your life will be greatly improved.



Will I have to download anything to use this syntax?

When I edit my CSS I do not get Flex as an option in the displayed drop down.
Will it integrate into the rest of my web app or will I need to use this exclusively?

Piet Souris wrote:Can you show a relevant piece of your html as well, to see what is going on?

Thanks!



I am using MS Edge. If I inspect what's displayed I get the Developer Tools interface.
I have not figured out how to look at the Document(HTML).
In IE I could do this.
I have a parent container in which I have two containers(left and right).
The right container is loaded with dynamic content.
If the right containers content is small enough not to require a scroll bar every thing lines up perfect.
However, if a scroll bar displays the right container will drop down under the left container, floated right except for the width of the scroll bar.
If I resize the page the right container will align correctly again.

Here is my CSS:

Ron McLeod wrote:Or something like itemno.split("[/;,]") if there were a number of delimiters



One more time, not paying attention, I have gotten bitten by copying another internet example.

Thanks so much. Have a blessed day.
4 months ago

Carey Brown wrote:What were you expecting? You don't have a substring "/;," anywhere in your string.



Wait a minute.
I see you are referring to my regexp is not coded correctly.
4 months ago

Carey Brown wrote:What were you expecting? You don't have a substring "/;," anywhere in your string.



I was expecting the input string to be split on the / delimiter.
by looping I expected the result to yield:
878670-409
878670-407
878670-421
878670-403
878670-433
878670-423

4 months ago
I need to split a string based on multiple deliniters.

String example:
878670-409/878670-407/878670-421/878670-403/878670-433/878670-423

Results is input sting unchanged

4 months ago