Enable jQuery Intellisense in VS 2010 Mojo Module And Doing Ajax jobs

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/5/2011 3:30:25 AM
Gravatar
Total Posts 9

Enable jQuery Intellisense in VS 2010 Mojo Module And Doing Ajax jobs

Hi ,

- Did anyone Enable jQuery Intellisense in VS 2010 with mojo module controls(.ascx) and pages(.aspx)?

- At the end, i am trying to do ajax calls my modules by WebMethods that returns JSON data, which is converted from data table . And writes necessery places.

[WebMethod] ...

I saw rating methods

   /// <summary>
    /// Handles posts from the content rating control, returns the current avg rating for the content
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class ContentRatingService : IHttpHandler
    {

any expertise or advise a path to go would be great?

 

 

 

thanks .

KANPINAR

2/9/2011 1:37:49 AM
Gravatar
Total Posts 9

Re: Enable jQuery Intellisense in VS 2010 Mojo Module And Doing Ajax jobs

Done ...

- It was about LLBLGEN... Cannot load a LLBLGEN entity as json object directly...

- As an option to add jquery plugin i am using ScriptLoader.cs ..

But i dunno what to do when source updated ???. Also i updated Cutepager

for my own style added to pager if style is not a table.. and ajax stuff... :(


 

protected override void Render(HtmlTextWriter writer)
        {...

                if (includeJQuery)
                {
                   

 writer.Write("\n<script src=\"" + jqueryBasePath + "jquery.min.js" + "\" type=\"text/javascript\" ></script>");
 writer.Write("\n<script src=\"" + jqueryBasePath + "jquery.treeview.js" + "\" type=\"text/javascript\" ></script>");
                   
                }             
        }

thnks..

 

2/9/2011 7:21:14 AM
Gravatar
Total Posts 18439

Re: Enable jQuery Intellisense in VS 2010 Mojo Module And Doing Ajax jobs

you should not modify the mojoportal source code, find another way and keep all customizations in your own projects, period, end of story. Once you fork it you are on your own and then I have no advice for you. Make your own way to add script from your own code, make your own custom pager, do not modify the one in mojoPortal.

2/11/2011 5:53:32 AM
Gravatar
Total Posts 9

Re: Enable jQuery Intellisense in VS 2010 Mojo Module And Doing Ajax jobs

You are right, step by step learning ..

as you told i will try to add my custom controls, at least i ll try ;)

Thnks for answer..

2/19/2011 3:09:22 AM
Gravatar
Total Posts 9

Re: Enable jQuery Intellisense in VS 2010 Mojo Module And Doing Ajax jobs

Goal :

1. I have finished adding a control to mojoportal (Web/Controls) for jquery plugins... Ad told in tutorials...


namespace mojoPortal.Web.Controls
{
    public partial class jQueryPluginControl : System.Web.UI.UserControl
    {        
        protected void Page_Load(object sender, EventArgs e)
        {              
            Page.ClientScript.RegisterClientScriptBlock(typeof(Page),  "jQueryTreeViewControl", "\n<script src=\""
  + Page.ResolveUrl("~/ClientScript/jquery.treeview.js") + "\" type=\"text/javascript\" ></script>");

            Page.ClientScript.RegisterClientScriptBlock(typeof(Page),  "jQueryAsyncTreeViewControl", "\n<script src=\""
  + Page.ResolveUrl("~/ClientScript/jquery.treeview.async.js") + "\" type=\"text/javascript\" ></script>");          
        }
    }
}

it seems working right now..

2. I changed my data layers to Entity framework and LINQ to SQL.
This seems better then llblgen for in ajax and json. llblgen is not easy to work with JSON serialization and deserialization.

3. I have finished get data by Calling [WebMethod] from mojoPage...
Passing parameter and getting resultset or entity in JSON format.

[WebMethod]
        public static string getFields(int groupIdy)
        {
...
}

I am using Json.NET library for serialization.

4. i am trying to add custom pager control for special needs ...

sorry for my bad english and
thanks for help and advise.
have a nice day.

 

You must sign in to post in the forums. This thread is closed to new posts.