Posts

Showing posts with the label url

JS: Forward to a site with random parts in the URL

JS: Forward to a site with random parts in the URL by opening a HTML-site, I want to redirect to the following page: www.xyz.de?user=default&f1= OPTION1 &f2= OPTION2 &f3= OPTION3 &f4= OPTION4 &f5= OPTION5 &... etc. The value for the "OPTIONS" should be randomly selected from a list (array) for every OPTION (1,2,3,4,5,..). How can I do this with Javascript? kind regards is the problem to redirect or to generate the string? – Nina Scholz Jun 30 at 18:25 1 Answer 1 Hopefully this will help you, you didn't provide much details or a demo code, so this is from my point of understanding only. <p id="Link">Link Here</p> <p id="randoms">Randomly Sortde Array</p> <script> var o...

Android - Enabling only URL link, but disabling the others when it touches something non-URL link in TextView

Image
Android - Enabling only URL link, but disabling the others when it touches something non-URL link in TextView I am implementing a board. And I want the View that the users can include links. Now, my TextView has android:autoLink="web" android:autoLink="web" attribute. However, It works a bit differently from what I expected. As you can see, even though I click the empty area(+lines in the picture), the TextView is detecting the link(blue highlight) and If I let my finger go, a web browser opens and it goes to the URL. That's not what I want. I just want it to work when I ONLY click the link. (Not other non-URL text nor empty area) and I DON'T KNOW what users write, In other words, I can't preset specific links nor guess what URLs would be. It must be applied to all the links even that I don't know. The number of links can be more than ONE. And I don't know how many links would be included in the user's content. Somebody tells me I need to mak...