Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take input from parameters #22

Open
mgarciaisaia opened this issue Jun 6, 2013 · 1 comment
Open

Take input from parameters #22

mgarciaisaia opened this issue Jun 6, 2013 · 1 comment

Comments

@mgarciaisaia
Copy link
Owner

Accept input from request parameters, both text and codes.

Could be something like /?text=Hello or /?codes=40,19,17,7,7,21, or using # instead of ? (I don't know what's best for JS).

@dggluz
Copy link
Collaborator

dggluz commented Jun 6, 2013

Es prácticamente para JS del lado del cliente. Pero es mejor usar el hashtag, porque así se puede modificar la URL y darle enter sin que el navegador recargue la página.
Se puede acceder a la URL de la página mediante:
document.location.href
Y también se puede acceder directamente al contenido del hashtag (con el símbolo "#" incluído) mediante:
document.location.hash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants