Thanks Bob. Tried that and it did not work. BTW, on IIS you also need to explicitly allow the nxml file type and one other file extension I had not seen before. I am installing PHP now...
From: digital_ichi <bbuffone@...> To: jslex_group@yahoogroups.com Sent: Fri, November 27, 2009 5:30:47 PM Subject: [jslex_group] Re: JSLex Profiler with an EXTJS Application
Brook,
What server-side framework are you using? The server code needed to load the profile.xml file is written in php or jsp. If you are running on another server-side environment, then you will need add the location of the profile.xml file to the
"jsLex.openProfileW indow" function call.
jsLex.openProfileWi ndow(null, "profile.xml" )
You will need to ensure that the profile.xml file is in a "profiles" directory at the root of your web application.
Let me know if that works for you, Bob (Buffone)
--- In jslex_group@ yahoogroups. com, "Brook" <brooksan3@. ..> wrote: > > Now I am getting the pop up window with the profiler but it asks me to load my profile and no matter what combination I try, I can not get the profile to load. I've tried all types of paths to get to
the profile and I can see that it exists, but it will not load. What do I do? > > Note, I am getting an eval error in my code, would this cause the problem? > > > > --- In jslex_group@ yahoogroups. com, "Brook" <brooksan3@> wrote: > > > > I see what my problem is! I extracted the JSLex app to my webroot, so the jsLex app also got compressed and had the incProfile() calls inserted which created a loop!!! > > > > > > > > --- In jslex_group@ yahoogroups. com, "Brook" <brooksan3@> wrote: > > > > > > Hello, > > > > > > I just installed and ran the JSLex
plugin for Eclipse. It created a working copy of my application and I included the jsLex.js file in the root document as instructed. > > > > > > When I run the application I get Stack OverFlow Errors in IE and "Too much Recursion" in FF w/ Firebug. The Error points to the incProfile() method... > > > > > > If I remove the jsLex.js include and add: > > > > > > var jsLex = { > > > incProfile: function(){ > > > > > > } > > > } > > > > > > My application runs normally, so the JS is intact and in working order. > > > > > > Any ideas what I should check? > > > > > >
Brook,
What server-side framework are you using? The server code needed to load the
profile.xml file is written in php or jsp. If you are running on another
server-side environment, then you will need add the location of the profile.xml
file to the
"jsLex.openProfileWindow" function call.
jsLex.openProfileWindow(null, "profile.xml")
You will need to ensure that the profile.xml file is in a "profiles" directory
at the root of your web application.
Let me know if that works for you,
Bob (Buffone)
--- In jslex_group@yahoogroups.com, "Brook" <brooksan3@...> wrote:
>
> Now I am getting the pop up window with the profiler but it asks me to load my
profile and no matter what combination I try, I can not get the profile to load.
I've tried all types of paths to get to the profile and I can see that it
exists, but it will not load. What do I do?
>
> Note, I am getting an eval error in my code, would this cause the problem?
>
>
>
> --- In jslex_group@yahoogroups.com, "Brook" <brooksan3@> wrote:
> >
> > I see what my problem is! I extracted the JSLex app to my webroot, so the
jsLex app also got compressed and had the incProfile() calls inserted which
created a loop!!!
> >
> >
> >
> > --- In jslex_group@yahoogroups.com, "Brook" <brooksan3@> wrote:
> > >
> > > Hello,
> > >
> > > I just installed and ran the JSLex plugin for Eclipse. It created a
working copy of my application and I included the jsLex.js file in the root
document as instructed.
> > >
> > > When I run the application I get Stack OverFlow Errors in IE and "Too much
Recursion" in FF w/ Firebug. The Error points to the incProfile() method...
> > >
> > > If I remove the jsLex.js include and add:
> > >
> > > var jsLex = {
> > > incProfile: function(){
> > >
> > > }
> > > }
> > >
> > > My application runs normally, so the JS is intact and in working order.
> > >
> > > Any ideas what I should check?
> > >
> >
>
Now I am getting the pop up window with the profiler but it asks me to load my
profile and no matter what combination I try, I can not get the profile to load.
I've tried all types of paths to get to the profile and I can see that it
exists, but it will not load. What do I do?
Note, I am getting an eval error in my code, would this cause the problem?
--- In jslex_group@yahoogroups.com, "Brook" <brooksan3@...> wrote:
>
> I see what my problem is! I extracted the JSLex app to my webroot, so the
jsLex app also got compressed and had the incProfile() calls inserted which
created a loop!!!
>
>
>
> --- In jslex_group@yahoogroups.com, "Brook" <brooksan3@> wrote:
> >
> > Hello,
> >
> > I just installed and ran the JSLex plugin for Eclipse. It created a working
copy of my application and I included the jsLex.js file in the root document as
instructed.
> >
> > When I run the application I get Stack OverFlow Errors in IE and "Too much
Recursion" in FF w/ Firebug. The Error points to the incProfile() method...
> >
> > If I remove the jsLex.js include and add:
> >
> > var jsLex = {
> > incProfile: function(){
> >
> > }
> > }
> >
> > My application runs normally, so the JS is intact and in working order.
> >
> > Any ideas what I should check?
> >
>
I see what my problem is! I extracted the JSLex app to my webroot, so the jsLex
app also got compressed and had the incProfile() calls inserted which created a
loop!!!
--- In jslex_group@yahoogroups.com, "Brook" <brooksan3@...> wrote:
>
> Hello,
>
> I just installed and ran the JSLex plugin for Eclipse. It created a working
copy of my application and I included the jsLex.js file in the root document as
instructed.
>
> When I run the application I get Stack OverFlow Errors in IE and "Too much
Recursion" in FF w/ Firebug. The Error points to the incProfile() method...
>
> If I remove the jsLex.js include and add:
>
> var jsLex = {
> incProfile: function(){
>
> }
> }
>
> My application runs normally, so the JS is intact and in working order.
>
> Any ideas what I should check?
>
Hello,
I just installed and ran the JSLex plugin for Eclipse. It created a working copy
of my application and I included the jsLex.js file in the root document as
instructed.
When I run the application I get Stack OverFlow Errors in IE and "Too much
Recursion" in FF w/ Firebug. The Error points to the incProfile() method...
If I remove the jsLex.js include and add:
var jsLex = {
incProfile: function(){
}
}
My application runs normally, so the JS is intact and in working order.
Any ideas what I should check?
Glad you got it to work, finally. I will look into the issues you are having. In order to get the call graph you need change the setting when generating the code from eclipse.
On Tue, Oct 27, 2009 at 12:56 PM, myrdhinbzh <myrdhinbzh@...> wrote:
Yes it works :) Really thanks ! I have time, counts and calls. Really a good tool.
I thinked jsLex generate a graphical call graph...
--- In jslex_group@yahoogroups.com, Bob Buffone <bbuffone@...> wrote: > > Well, that's a bit of progress. There isn't an exclude files feature
> in the eclipse functionality. You can just copy over the files you > don't want changed in the output directory or just load them from the > orginal directory.
Yes it works :) Really thanks ! I have time, counts and calls. Really a good
tool.
I thinked jsLex generate a graphical call graph...
--- In jslex_group@yahoogroups.com, Bob Buffone <bbuffone@...> wrote:
>
> Well, that's a bit of progress. There isn't an exclude files feature
> in the eclipse functionality. You can just copy over the files you
> don't want changed in the output directory or just load them from the
> orginal directory.
Well, that's a bit of progress. There isn't an exclude files feature in the eclipse functionality. You can just copy over the files you don't want changed in the output directory or just load them from the orginal directory.
Bob (Buffone)
On Tue, Oct 27, 2009 at 12:09 PM, myrdhinbzh <myrdhinbzh@...> wrote:
So, i try the Eclipse jsLex Plugin and i execute the 3 steps on my code. I have nos a profile.xml and my "compressed" folder with all my JS code injected... But jQuery librairies too :/
Is it possible to exclure some JS files ?
When jQuery librairies are modified by jsLex, i have these errors with Firebug :
So, i try the Eclipse jsLex Plugin and i execute the 3 steps on my code. I have nos a profile.xml and my "compressed" folder with all my JS code injected... But jQuery librairies too :/
Is it possible to exclure some JS files ?
When jQuery librairies are modified by jsLex, i have these errors with Firebug :
> This error may because the directory it is searching is the wrong
> one, not sure what you typed in.
I try '..' but no change.
> One question did you get a dialog when the application opened that
> said "Neither JSP or PHP returned successfully..."?
No message...
This error may because the directory it is searching is the wrong one, not sure what you typed in. One question did you get a dialog when the application opened that said "Neither JSP or PHP returned successfully..."?
Another thing that can be done is use the eclipse version of this to do the code injection.
Bob (Buffone)
On Tue, Oct 27, 2009 at 9:40 AM, myrdhinbzh <myrdhinbzh@...> wrote:
Thanks for your reply.
> You need to put jslex inside of your web application > c:\wamp\www\myApp\jsLex and change the script to > <script type="text/javascript" src="http://localhost/myApp/jsLex/javascript/jsLex.js"></script>
jsLex/ is inside myApp and the <script> inside my index.php is now OK.
> You will first want to create the profile.xml using profile.html
I can't create my 'profile.xml' with 'profile.html'. With 'profile.html' i can load a xml profile file. I think it's with 'jslex.html'. But it doesn't work for me :'(
I have errors in my php_error.log :
[27-Oct-2009 14:36:54] PHP Notice: Undefined index: encodeDirectory in C:\wamp\www\myApp\jsLex\php\start_analyze.php on line 4 [27-Oct-2009 14:36:54] PHP Stack trace: [27-Oct-2009 14:36:54] PHP 1. {main}() C:\wamp\www\myApp\jsLex\php\start_analyze.php:0
and in my apache_error.log :
[Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client [Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client
[Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client [Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client
...
Thanks for your reply.
> You need to put jslex inside of your web application
> c:\wamp\www\myApp\jsLex and change the script to
> <script type="text/javascript"
src="http://localhost/myApp/jsLex/javascript/jsLex.js"></script>
jsLex/ is inside myApp and the <script> inside my index.php is now OK.
> You will first want to create the profile.xml using profile.html
I can't create my 'profile.xml' with 'profile.html'. With 'profile.html' i can
load a xml profile file. I think it's with 'jslex.html'. But it doesn't work for
me :'(
I have errors in my php_error.log :
[27-Oct-2009 14:36:54] PHP Notice: Undefined index: encodeDirectory in
C:\wamp\www\myApp\jsLex\php\start_analyze.php on line 4
[27-Oct-2009 14:36:54] PHP Stack trace:
[27-Oct-2009 14:36:54] PHP 1. {main}()
C:\wamp\www\myApp\jsLex\php\start_analyze.php:0
and in my apache_error.log :
[Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist:
C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client
[Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist:
C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client
[Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist:
C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client
[Tue Oct 27 14:36:54 2009] [error] [client 127.0.0.1] File does not exist:
C:/wamp/www/myApp/jsLex/Nexaweb/client/lib/com/nexaweb/client
...
Thanks for your help,
You need to put jslex inside of your web application
c:\wamp\www\myApp\jsLex and change the script to
<script type="text/javascript"
src="http://localhost/myApp/jsLex/javascript/jsLex.js"></script>
You will first want to create the profile.xml using profile.html
More information on this is located at:
http://www.rockstarapps.com/joomla-1.5.8/documentation/33-profile-analysis-appli\
cation.htmlhttp://www.rockstarapps.com/joomla-1.5.8/documentation/32-compression-and-inject\
ion-application.html
Then your your application and open the profile.xml file created.
Let me know how this goes, You should be able to open and save the profile.xml
file and be able to do the code injection.
Bob (Buffone)
--- In jslex_group@yahoogroups.com, "myrdhinbzh" <myrdhinbzh@...> wrote:
>
> Hello,
>
> I would try jsLex to profile my JS apps but i can't.
>
> I work with WAMP (2.0) on a Windows XP (SP3). I installed jsLex and when i go
to http://localhost/jsLex/jsLex.html (corresponding to
c:\wamp\www\jsLex\jsLex.html), all is OK : i can see the interface.
>
> My app is located in c:\wamp\www\myApp
>
> I also add <script type="text/javascript"
src="http://localhost/jsLex/javascript/jsLex.js"></script> in my
c:\wamp\www\myApp\index.php
>
> I would like to profile it with jsLex. So i try to load "c:\wamp\www\myApp" :
nothing, no files... I try :
>
> + c:\wamp\www\myApp
> + c:\wamp\www\myApp\
> + c:\wamp\www\myApp\index.php
> + c:/wamp/www/myApp
> + c:/wamp/www/myApp/
> + c:/wamp/www/myApp/index.php
>
> But nothing...
>
> Could you help me please ?
> Thanks,
>
Hello,
I would try jsLex to profile my JS apps but i can't.
I work with WAMP (2.0) on a Windows XP (SP3). I installed jsLex and when i go to
http://localhost/jsLex/jsLex.html (corresponding to
c:\wamp\www\jsLex\jsLex.html), all is OK : i can see the interface.
My app is located in c:\wamp\www\myApp
I also add <script type="text/javascript"
src="http://localhost/jsLex/javascript/jsLex.js"></script> in my
c:\wamp\www\myApp\index.php
I would like to profile it with jsLex. So i try to load "c:\wamp\www\myApp" :
nothing, no files... I try :
+ c:\wamp\www\myApp
+ c:\wamp\www\myApp\
+ c:\wamp\www\myApp\index.php
+ c:/wamp/www/myApp
+ c:/wamp/www/myApp/
+ c:/wamp/www/myApp/index.php
But nothing...
Could you help me please ?
Thanks,
A new version of the product has been uploaded.
1.) Separate the JsLint functionality into it's own plugin and feature. I
received two emails in the last week asking where is the jsLint functionality.
It was originally in the optimization plugin
2.) Changed the names of the features to align with the product names on the
home page.
3.) Added the ability for a users to give a list of externally defined variables
that the jslint processor will use.
The fixes for the release are:
1.) Fixed the @charset issue with css files you found.
Features:
1.) Added auto validation to the JsLint functionality, now when a file changes
it will revalidate.
2.) Added "Ctrl+Shift+C" to activate the Concatenation wizards from the
Navigator view.
3.) Added "Ctrl+Shift+V" to activate the JsLint wizards from the Navigator view.
4.) There is an toolbar buttons to kick off the JsLin and Concatenation buttons.
The are active when focused in the navigator view.
Bob (Buffone)
The fixes for the release are:
1.) Fixed the @charset issue with css files you found.
Features:
1.) Added auto validation to the JsLint functionality, now when a file changes
it will revalidate.
2.) Added "Ctrl+Shift+C" to activate the Concatenation wizards from the
Navigator view.
3.) Added "Ctrl+Shift+V" to activate the JsLint wizards from the Navigator view.
4.) There is an toolbar buttons to kick off the JsLin and Concatenation buttons.
The are active when focused in the navigator view.
Bob (Buffone)
If a css style has a line line comment inside of it the style will not be parsed
correctly.
.myButton{
/*
* This is the comment.
*/
background: #AADDEE url() top left;
}
The result is the style is show in the sprit editor will no properties.
Added a new CSS Sprite Editor that is available by selecting a css file and
click the "Open with -> Sprite Editor" menu item. From there select the images
you want to turn into a sprite and click the "Create Sprite" button.
Added support for line length in the css and JavaScript compression.
Fixes to JsLint validation which was related to string escaping is
resolved. Thanks to Finbar for reporting it and helping work through
the issue. Hope this resolves it for you.
Also fixes to spriting and the optimizers have been added. Spriting
with fail on some images. This version includes the latest
sanselan-0.97-incubator.jar build.
Keep reporting issues and asking for improvements and I will keep
fixing and adding them.
Bob (Buffone)
There is an error in the JsLint validation with escape characters.
function bob(){
alert('Status is \"Invalid\'. Please enter valid Status.');
alert("Status is \"Invalid\". Please enter valid Status.");
alert("\t hell0");
alert("\r hel\\rl0");
alert("\b hel\\bl0");
alert("\\n hell0");
var bob;
alert(" hell0");
bob();
var bob;
var MESSAGE_NEW_LINE = "\n\n";
var MESSAGE_INVALID = "The data for the member/user is invalid.\n"
alert("Status is \"Invalid\. Please enter valid Status.");
}
The code above will fail to validate thoroughly in the Eclipse plugin,
but does in the online jsLint app. There is a fix for this and it
will be out by tomorrow.
Stay tuned.
I upgraded the code to include fixes for the two usability issues you
reported.
1. Auto adjust the columns in the concatenation wizard. It used to
fixed size and long files names would get chopped off.
2. Double clicking on the folder icon in the add new file wizard
would close the dialog and not open the folder.
Bob (Buffone)
Last night (1.27.2009) a new version of the beta was uploaded to
http://www.rockstarapps.com/update-beta. There are a couple fixes
that went into this release.
* There was an issue with concatenating to many files. Couldn't
rebuild them.
* Fixed some issues with the JsLint functionality. Also added more
ways to access the functionality from JavaScript files, projects with
in the Navigator view.
Thanks for the feedback and keep it coming.
I have uploaded a zip file to rockstarapps.com that has all the
functionality to do CSS and JavaScript optimization through an ant script.
http://www.rockstarapps.com/downloads/ant-optimization.zip
Developers can now access the optimization functionality that is
supplied by the jsLex Eclipse plugins via ant. The download includes
all the files necessary to optimize your resources and a sample
application and build file. This is the first version of the ant
build, if you find any issues add them to the jsLex Yahoo Group.
--- In jslex_group@yahoogroups.com, "Daniel Jones" <djones@...> wrote:
>
> Hello Bob,
>
> I seem to be having an issue with the automatic recreation option in
> v1.1.7.
>
> Once I have selected my CSS files for concatenation I check the
> 'overwrite file' and 'automatically recreate file when one of its
> dependencies changes' option. and the new css files are created.
>
> If I go into the original CSS file and make changes, new files are not
> automatically created. I believe this worked fine with v1.1.4.
>
> Any ideas?
>
> Also, is there a way to view a list of file sets that the builder has
> configured?
>
> --- In jslex_group@yahoogroups.com, "Bob Buffone" <bbuffone@> wrote:
> >
> > Daniel,
> >
> > Thanks for the positive feedback.
> >
> > If the url starts with a '/', 'http://' or 'https://' the url is not
> > touched, so it will not be given quotes. I did change changes to the
> > filenames to be
> >
> > filename.all.css
> > filename.all.css.min.css
> > filename.all.css.min.css.gz
> >
> > they line up better in file viewers that way.
> >
> > Let me know if there is anything else, also I am working on the next
> version
> > of the tool suite that will include more optimizations and Cloud
> (Amazon,
> > Aptana...) tools. If you or someone you know use Amazon Web
> Services, Aptana
> > Cloud or are looking to let me know and I will get you the
upgrade. The
> > tools will make make it a lot easier to get running.
> >
> > Bob (Buffone)
> >
> > On Tue, Dec 30, 2008 at 4:28 PM, Daniel Jones <djones@> wrote:
> >
> > > Hello Robert,
> > >
> > > Thank you! That fixed the problem with the '/' being removed. I did
> > > notice that it no longer adds quotes to any of the urls. Is that the
> > > expected behavior?
> > >
> > > I also noticed a change in the file names. before they were
> > > filename.all.min.css and now they are filename.all.css.min.css.
> > >
> > > Thanks again for such a great tool!
> > >
> > >
> > > --- In jslex_group@yahoogroups.com <jslex_group%40yahoogroups.com>,
> > > "Robert Buffone" <bbuffone@> wrote:
> > > >
> > > > --- In jslex_group@yahoogroups.com
<jslex_group%40yahoogroups.com>,
> > > "Daniel Jones" <djones@> wrote:
> > > > >
> > > > > I am using jsLex (1.1.4) with Aptana to minify and
> concatenation my
> > > > > CSS files.
> > > > >
> > > > > The process is working great however I am having a problem
> with image
> > > > > URLs being rewritten.
> > > > >
> > > > > In my CSS files I have many images referenced as:
> > > > >
> > > > > background:#217715 url(/images/filename.png) top right
no-repeat;
> > > > >
> > > > > However after jsLex runs the reference looks like:
> > > > >
> > > > > background:#217715 url('images/filename.png') top right
no-repeat;
> > > > >
> > > > > Is there any way to stop it from striping off the first '/'?
> > > > >
> > > >
> > > > Daniel,
> > > >
> > > > There is no switch in the UI to stop the URL replacing. The
removal
> > > > of the first slash is a bug in the replacement code. This issue
> > > > should not take long to resolve, I will fix this issue and put
up a
> > > > new version online by tonight. When its ready, I will reply to
this
> > > > post and you can use the eclipse update manager to fetch the new
> > > version.
> > > >
> > > > Thanks for the feedback,
> > > > Bob (Buffone)
> > > >
> > >
> > >
> > >
> >
>
Just saw this message in the spam folder, I will take a look at it.