We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Tag Cloud Link

Thread ID:

Created:

Updated:

Platform:

Replies:

120783 Oct 14,2015 01:08 PM Oct 20,2015 01:17 AM ASP.NET MVC (Classic) 5
loading
Tags: TagCloud
SK Yong
Asked On October 14, 2015 01:08 PM

Hi Guys,

  I would like to know how can i make the link in the tag cloud to open in the same browser window instead of opening the link in a new window or new tab by default.

thanks

Regards

Shonk

Ragunath M [Syncfusion]
Replied On October 15, 2015 08:35 AM

Hi Shonk,

Thank you for contacting Syncfusion support.

Query: How to open the link in the tag cloud in same window?


We are unable to reproduce the reported issue at our end in ASP.NET MVC Classic platform. From the query we suspect that you are using ASP.NET MVC, which reproduces the reported scenario.


In case you are using ASP.NET MVC, we suggest you to use the following workaround which replaces all the anchor tags(<a>) attribute value with in the tag cloud.

                        <code>

[CSHTML]

@Html.EJ().TagCloud("techWebList").Datasource((IEnumerable<WebsiteCollection>)ViewBag.datasource).TagCloudFields(tag => tag.Text("text").Url("url").Frequency("frequency")).Title("Tech Sites").ClientSideEvents(evt => evt.Create("oncreate"))

[Script]

function oncreate() {

        $("#techWebList").find("a.e-txt").attr("target""_self");

    }

</code>  
If you are using ASP.NET MVC Classic and can reproduce the issue at your end, please check whether any additional changes have occurred at your end. Else, share the sample with the replication procedure with us. We are happy to help you.

Regards,
Ragunath M


SK Yong
Replied On October 15, 2015 11:27 AM

Hi Ragunath ,
 
 I have made a mistake. It is the tag cloud in aspnet mvc that has problem.

 Your code has enabled me to reload the tag cloud link in the same page. But after a few reloads, I encounter another error which happens in firefox 39.0. The rest of the dropdown control in the same page return the ReferenceError: ej is not defined error.

May I know how can I solve this issue ?

Thanks

Regards

Shonk

Saranya Sivakumar [Syncfusion]
Replied On October 19, 2015 12:06 AM

Hi Shonk,

We are unable to reproduce the reported issue (“After few reload in Tagcloud, throws ReferenceError: ej is not defined error in Mozilla browser 39.0 version.”).While clicking the Tagcloud link, it reloads in same page but it doesn’t throws any error. We have prepared a sample and it can be downloaded under the following location,


Sample: 
Sample


Please check with the above sample and if the problem still persists, then revert us by modifying the sample based on your application along with replication procedure. 

Also, we have attached the KB link for this issue “ej is not defined”. 

https://www.syncfusion.com/kb/5091/why-do-i-get-javascript-error-of-ej-undefined-while-running-an-application-with-syncfusion-controls

Regards,

Saranya S


SK Yong
Replied On October 19, 2015 02:52 PM


Saranya Sivakumar [Syncfusion]
Replied On October 20, 2015 01:17 AM

Hi Shonk,

We are happy to hear that your issue has been resolved. Kindly get back to us if you have any other queries.

Regards,
Saranya.S


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;