AgoraIO / API-Examples-Web

MIT License
221 stars 199 forks source link

Trying to provide a userId fails #83

Closed neilyoung closed 6 months ago

neilyoung commented 6 months ago

Here a video showing the behaviour:

https://www.youtube.com/watch?v=nuE5k60gJv8

IMHO the regexp applied to the input is the problem here (even though I don't enter numbers at all)

          <div>
              <input class="form-control" id="uid" class="form-control" type="text"
                onkeyup="this.value=this.value.replace(/[^0-9]/g,'')"
                onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')" placeholder="Enter the user ID">
            </div>

Removed that and can enter a UID

neilyoung commented 6 months ago

Wait. Are you expecting to see NUMBERS only?

plutoless commented 6 months ago

image

neilyoung commented 6 months ago

Yes, my bad sorry.

neilyoung commented 6 months ago

PS: Thanks for the VERY quick response. Must be late already over there?

plutoless commented 6 months ago

it's ok :) just wondering around right in time.

neilyoung commented 6 months ago

Thanks again for your assist and time