url-link

Random websites button

醉酒当歌 提交于 2019-12-20 07:56:34
问题 this one is pretty simple I guess but I just can't find the answer that would suit perfectly for my issue. I want to make a button that opens a random URL from a list I'll give him, let's say - google, youtube and facebook just for the example. This is my line of code that connects now only to google...: - (IBAction)site:(id)sender { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://google.com"]]; } Can someone please advise me what to add to the code so it will

How to make a submit out of a <a href…>…</a> link?

浪尽此生 提交于 2019-11-28 20:01:47
I got an image with which links to another page using <a href="..."> <img ...> </a> . How can I make it make a post like if it was a button <input type="submit"...> ? <input type="image" name="your_image_name" src="your_image_url.png" /> This will send the your_image_name.x and your_image_name.y values as it submits the form, which are the x and y coordinates of the position the user clicked the image. More generic approatch using JQuery library closest () and submit () buttons. Here you do not have to specify whitch form you want to submit, submits the form it is in. <a href="#" onclick="$

How to make a submit out of a <a href…>…</a> link?

こ雲淡風輕ζ 提交于 2019-11-27 12:55:48
问题 I got an image with which links to another page using <a href="..."> <img ...> </a> . How can I make it make a post like if it was a button <input type="submit"...> ? 回答1: <input type="image" name="your_image_name" src="your_image_url.png" /> This will send the your_image_name.x and your_image_name.y values as it submits the form, which are the x and y coordinates of the position the user clicked the image. 回答2: More generic approatch using JQuery library closest() and submit() buttons. Here