Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian
Previous Previous
 
Next Next
New Post 1/9/2008 10:17 AM
User is offline Jon Henning
1571 posts
www.codeendeavors.com
5th Ranked










Re: BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian 

It is a little more than the menus.  This contains a detailed list of the modifications.

It should work fine with 4.8.

 


 
New Post 2/20/2008 7:54 PM
User is offline baldwin
95 posts
www.dnnsun.com
10th Ranked


Re: BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian 

 Jon Henning wrote

It is a little more than the menus.  This contains a detailed list of the modifications.

It should work fine with 4.8.

 

do  we nee to change the DotNetNuke.DNNMenuNavigationProvider.dll to make it work well? Thanks a lot!  do you provider some sample about the dnnmenu  for the "Holy Grail" of Menu Item Customization.


www.dnnsun.com:The professional provider of DotNetNuke support, skin design and custom module development.
The professional provider of DotNetNuke support, skin design and custom module development.
Showcase your website Powered by dnn!
Showcase your website Powered by dnn!
 
New Post 2/25/2008 7:02 PM
User is offline Fausto Manzoni
33 posts
10th Ranked


Re: BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian 

Hi,

I want to share the method I found to minifier javascripts before embed they in dll.
This can be performed simply by adding the following task in DNNModule.target and call it in BeforeBuild target:

<Target Name="EmbedJavascripts">
<CallTarget Targets="EmbedCompressedJavaScript" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
<CallTarget Targets="EmbedDebugJavaScript" Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
</Target>
<Target Name="EmbedCompressedJavaScript">
<CreateItem Include="$(JavascriptSourceDir)\*.js">
<Output TaskParameter="Include" ItemName="JSSourceFiles" />
</CreateItem>
<Exec Command="java -jar yuicompressor-2.3.5.jar %(JSSourceFiles.Identity) -o $(JavascriptMinifiedDir)\%(JSSourceFiles.Filename).js )"
WorkingDirectory="$(YuiCompressorDir)" />
<CreateItem Include="$(JavascriptMinifiedDir)\*.js">
<Output TaskParameter="Include" ItemName="JSMinFiles" />
</CreateItem>
<CreateItem Include="@(JSMinFiles)">
<Output TaskParameter="Include" ItemName="EmbeddedResource" />
</CreateItem>
</Target>
<Target Name="EmbedDebugJavaScript">
<CreateItem Include="$(JavascriptSourceDir)\*.js">
<Output TaskParameter="Include" ItemName="JSSourceFiles" />
</CreateItem>
<CreateItem Include="@(JSSourceFiles)">
<Output TaskParameter="Include" ItemName="EmbeddedResource" />
</CreateItem>
</Target>

So when I build the project for release,all source javascript files are substituted by their minified version.
The yui compressor can be found here.

I hope this could be usefull.

Regards 
Manzoni Fausto

 
New Post 2/25/2008 7:17 PM
User is offline Jon Henning
1571 posts
www.codeendeavors.com
5th Ranked










Re: BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian 

If your talking about the ClientAPI or WebControls, I already have code in their msbuild script to minimize the js (using the JSCompress task from the community tasks).  Not sure how it compares to the YUI tool.

If your referring to the AJAX Module Template, then yeah, this is on my to-do list, just haven't gotten around to it yet. 

Thanks for sharing!


 
New Post 2/25/2008 7:43 PM
User is offline Fausto Manzoni
33 posts
10th Ranked


Re: BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian 
Modified By Fausto Manzoni  on 2/26/2008 12:23:06 AM)

I use this tool in my ajax modules based on your template.

The difference between JSCompress and Yui tool is quite simple:

JSCompress
"Compresses JavaScript source files by removing comments and unnecessary whitespace, which typically reduces the size by half and results in faster downloads and code that is harder to read."

Yui Compressor
"It starts by analyzing the source JavaScript file to understand how it is structured. It then prints out the token stream, replacing all local symbols by a 1 (or 2, or 3) letter symbol wherever such a substitution is appropriate ..."

For example:
_MyMethod: function(MyFirstLocal, MySecondLocal,MyThirdLocal){
MyFirstLocal = MyFirstLocal + 1;
MySecondLocal= MySecondLocal + 2;
MyThirdLocal= MyThirdLocal + 3;
}

Will become:
_MyMethod: function(a, b,c){
a= a+ 1;
b= b+ 2;
c= c+ 3;
}

naturally without withespaces and comments

Regards 
Manzoni Fausto

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  BETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com
DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP