Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-01-2012, 05:51 PM   PM User | #1
HelloKitty
New to the CF scene

 
Join Date: Jun 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
HelloKitty is an unknown quantity at this point
Javascript Toggle Buttons

I want to activate/switch all of the blue "Follow" toggle buttons on this page with out clicking each individual one of them. Is there a way I can do this?

http://s1097.photobucket.com/profile...ring/following

Thank You

HelloKitty is offline   Reply With Quote
Old 06-02-2012, 02:15 AM   PM User | #2
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
Try saving:

Code:
javascript:Follow=document.getElementsByClassName('objectInfo');for (x=0;x<Follow.length;x++){Follow[x].getElementsByTagName('a')[0].click();}
as a bookmark/favorite.
Lerura is offline   Reply With Quote
Old 06-04-2012, 02:09 PM   PM User | #3
HelloKitty
New to the CF scene

 
Join Date: Jun 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
HelloKitty is an unknown quantity at this point
How do i get this to work....doesn't seem to be working?
HelloKitty is offline   Reply With Quote
Old 06-04-2012, 04:49 PM   PM User | #4
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
If following these instructions doesn't work, then just accept, that it can't be done.

Save this in a html file:
Code:
<a href="javascript:Follow=document.getElementsByClassName('objectInfo');for (x=0;x<Follow.length;x++){Follow[x].getElementsByTagName('a')[0].click();}">Toggle Follows</a>
and open the file in your browser.

Right click the link to save it as favorite/bookmark.

While on the photobucket page, click on the favorite/bookmark.

Then all the Follow buttons should be clicked.

Last edited by Lerura; 06-04-2012 at 05:21 PM..
Lerura is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:24 AM.


Advertisement
Log in to turn off these ads.