Forum


HomeHomePremiumPremiumDevelopmentDevelopmentDisplay Edit.ascx in it's own pageDisplay Edit.ascx in it's own page
Previous
 
Next
New Post
12/29/2014 3:37 AM
 

Hi Scott,

Thank you for your reply.

I tried calling $('.dnnToggleMax').trigger('click'); externally from my module, but couldn't get that to work.

I will have another go at it, may be I missed something.

Best Regards,


Steve

 
New Post
12/29/2014 5:00 AM
 

Hi Scott,

So I've had another go at this.

This time I put the code on a button, so I'm sure there's not a timing issue:

        alert('got here');
        $('.dnnToggleMax').trigger('click');

 

But it doesn't work.

 

Using Inspect Element I can see that the dnnToggleMax class is nested as follows:

        $('.dnnFormPopup .dnnModalCtrl a.dnnToggleMax').trigger('click');

        $('.dnnFormPopup > .dnnModalCtrl > a.dnnToggleMax').trigger('click');


But alas, this doesn't work either.


Steve

 
New Post
4/24/2015 7:52 AM
 

Hi Scott,

Finally, I got this working , a mere 6 months later :-)

I couldn't get $('.dnnToggleMax').trigger('click'); to work in I.E.

In case anyone is interested, it just needed a bit of Javascript instead of JQuery:
$link = $('.dnnToggleMax:first');$link[0].click();

So the link becomes:
lnkEdit.NavigateUrl = EditUrl(string.Empty, string.Empty, "Edit", Params) + ";$link = $('.dnnToggleMax:first');$link[0].click();";

All the best,

Steve

 

 

 

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentDisplay Edit.ascx in it's own pageDisplay Edit.ascx in it's own page



Try FREE
30 days money back guaranteed