Toggle visibility after a link is followed
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zrn_fickl
Posted On:   Saturday, October 29, 2011 08:14 PM

Hi there! I would REALLY appreciate any help! I've got a script that toggles the visibility of a div on "dashboard.html": [CODE] $(document).ready(function(){ $("#add_networks_wrapper, .remove_box").hide(); $(".toggle_add_networks").show(); $('.toggle_add_networks').click(function(){ $("#add_networks_wrapper, .remove_box").slideToggle(); }); }); [/CODE] On "dashboard.html" it works great. The div "add_networks_wrapper" is hidden until I click the link that toggles it. What I need is a link from a different html page (say "account.html" or whatever) to open "dashb   More>>

Hi there! I would REALLY appreciate any help!

I've got a script that toggles the visibility of a div on "dashboard.html":

[CODE]
$(document).ready(function(){

$("#add_networks_wrapper, .remove_box").hide();
$(".toggle_add_networks").show();

$('.toggle_add_networks').click(function(){
$("#add_networks_wrapper, .remove_box").slideToggle();
});

});
[/CODE]

On "dashboard.html" it works great. The div "add_networks_wrapper" is hidden until I click the link that toggles it.

What I need is a link from a different html page (say "account.html" or whatever) to open "dashboard.html" with the hidden div's visible.

Any help would be very appreciated!

   <<Less

Re: Toggle visibility after a link is followed

Posted By:   zrn_fickl  
Posted On:   Saturday, October 29, 2011 08:14 PM

An idea --



What if I had a link like "dashboard.html/user?trigger=true"



Can I use jQuery to look for the "trigger" element, and if the trigger is true in the address bar activate the script?
About | Sitemap | Contact