Jump to content

Go to and click button


Jacq
 Share

Recommended Posts

WelcomeI would like to create a link URL or script that will be assigned to a button on my website, but when pressed will open the outside website and pressed button on this site. This button on the outside website is not assigned to link button is assigned to function and this is a problem for me.I made a url link that is writing on the outside website text "username" in formhttp://www.weeb.tv/account/login&username=username I want to do something like this but instead of typing I want to press the buttonusing the url link or script. This is a sample page and button codePage:http://www.tvmuse.eu/tv-shows/Grimm_27159/season_2/episode_20/Button code:<button class="btn btn_light" id="btn_wlist" onclick="sendAction('6')"><span><em class="i_subscribe"> </em>Add TV Show to Watchlist</span></button>Is it possible to click the button using the id or something. Please help

Link to comment
Share on other sites

I think you need to see the ref for target attribute: http://www.w3schools.../html_links.asp I'm unlear why you want to put your link into a php function.
So clicking this button is not possible<button class="btn btn_light" id="btn_wlist" onclick="sendAction('6')"><span><em class="i_subscribe"> </em>Add TV Show to Watchlist</span></button>on this sitehttp://www.tvmuse.eu/tv-shows/Grimm_27159/season_2/episode_20/ using the link or anything else. Not possible?
Link to comment
Share on other sites

No i want click button Add TV Show to Watchlist on this page.http://www.tvmuse.eu...n_2/episode_20/ I want to do that by pressing button on my website. Is it possible to write code or link to press this button Add TV Show to Watchlist from my website.With this link I'm talking about something like thishttp://www.weeb.tv/account/login&username=usernameAs you can see by added &username=username to link http://weeb.tv/account/login is automatically entered username.I want to do that but instead of typing username i want just to press the button Add TV Show to Watchlist.Is it possible to do?

Edited by Jacq
Link to comment
Share on other sites

No, you would have to be fully logged in to add to list, and the link to be added to appropriate field and submitted. you are sending querystring to form for login username, but you won't get any further without entering password as well, and you would not show/use that as querystring value.

Link to comment
Share on other sites

No, you would have to be fully logged in to add to list, and the link to be added to appropriate field and submitted. you are sending querystring to form for login username, but you won't get any further without entering password as well, and you would not show/use that as querystring value.
I can log in and then when I press the button Add TV Show to Watchlist the show is added to my list but I want to know if it is possible to push the button using link that is assigned to a button on my website so possible or not?
Link to comment
Share on other sites

Yes! I get it, you can login and add whatever from the site itself, but from another No! you would have to send the password as well, and the site must be able to read these, validate and allow you in to add or edit links. Then you are allowing anyone on your site to access your account at the tv show list and do whatever.

  • Like 1
Link to comment
Share on other sites

For instance I tried this linkhttp://www.tvmuse.eu/tv-shows/Grimm_27159/season_2/episode_20&BUTTON#btn_wlist.btn.btn_lightbut it does not work you have any suggestions.

Link to comment
Share on other sites

You can't control what happens on external site, the only way you might get it to work is to possibly use CURL, BUT! the website in question has to support/allow this type of access. But still! you are giving access on your site to anyone to access your account and add whatever on tvmuse show, unless they have to login on your site, to do so.

Link to comment
Share on other sites

My question is how to get the html code of for example www.example.com and then read the value of one line using the id.<input type="hidden" name="elementId" value="7548" id="elementId"> So I want to get the html code of website to a variable and then I want to read the value of a single line in the whole code using the id in this case I want numer (7548) and then insert this numer to the variable and then i want connect link with variablewww.example.com/z where {z} is a variable in this case numer 7548 then I want create variable using this to parts www.example.com/ and z I want the whole code to be activated when I press button.Please help

Edited by Jacq
Link to comment
Share on other sites

site z has to send data to site x, but site x, must be setup to read data from site z using a server language, if site x is not set up to read from site z, it does not matter how you setup sending data to site x, cuz site z will do nadder with it (thanks for that i'll just file this data away in my "data i can do nadder with'...the BIN!"). example paypal: when you click paynow button the querystring with the link to paypal contains your paypal code and data about your product amongst other information (what page to return to when payment made OR not), but you STILL have to enter password to proceed and access account to pay through paypal, OR move to the alternative payement page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...