VB.NET Multiple sites using same href="everything here is different" how to code?
-
I have an app that is going to sign into my social bookmarking sites...I already have accounts on all of these sites but I want to programmaticly click on these links but each link has a different name for the link. BUT.. Each link does has the same inner text info in the HTML but different urls for the links <a href="submit.php?" rel="nofollow">Submit</a> How can I program my app to locate and click on the link that has the <a href="" rel="nofollow">Submit</a> Is there a way to ignore the information in between the ""? Thanks
-
Answer:
Yeah, use a # between the "". example: <a href="#" rel="nofollow">Submit</a> Adding the # within the <a> you can trace any link with that in there with a simple jQuery code: Include the jQuery script <script type="text/javascript" src="http://ajax.googleapis.com/ajax/li… Now write the jQuery to take the hash(#) from an <a> tag to ignore whats within the "" in herf. <script> $(function() { //catch all clicks on <a> tags $("a").click(function() { //check if the clicked link has a hash if(this.hash) { //get rid of the # symbol var hash this.hash.substr(1); //if no # return false return false; } }); }); </script> Maybe this is the answer you are looking for.
simpleon... at Yahoo! Answers Visit the source
Related Q & A:
- HOW To Unblock Sites Using Proxy?Best solution by proxysites.com
- How do I issue multiple commands using telnet or netcat?Best solution by Super User
- How to Code Encryption Algorithm in Java?Best solution by code2learn.com
- How to save from DatagridView to Database VB.NET?Best solution by Stack Overflow
- How is north america and south america's agriculture different? how is it similiar?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.