|
|
|
In my opinion the Visual jQuery browser is still very useful even when a little behind of the actual jQuery version. There isn't really that much missing - not for your everyday work at least. So it stil lserves a strong purpose.
Yeah, it was hard to miss that the AJAX libraries have been left out... with one being greeted by the Install Feature dialog first. However, I was under the impression that the visual jQuery view came with the jQuery plugin bundle .jar file. so if it's not too much of a hassle maybe you can sneak it back in? It helped me alot when first starting out with jQuery and it really was one of the primary features why I chose Aptana Studio for my learning - because the jQuery support felt quite complete and naturally. Now with the $/jQuery Code-Assist bug (no Code Assist for '$' but only for 'jQuery') and the visual jQuery browser gone this feels much less naturally. If you prefer you could also just tell me how to infuse the current jQuery plugin bundle in my local Aptana copy with the Visual jQuery view - like where to change some values so that it will appear in Aptana. That would work fine for me too. I will add it back in, but in the meantime, you'll need to do a couple things:
1. Change the .jar extension on the jquery 1.2 and 1.3 plugins to .zip and double-click to unzip them. <extension
point="org.eclipse.ui.views">
<view
category="com.aptana.ide.documentation"
class="com.aptana.ide.core.ui.views.browser.DefaultBrowserView"
icon="views/visual_jquery/images/favicon.png"
id="com.aptana.ide.documentation.jquery.visualjquery"
name="Visual jQuery">
<description>bundleresource://com.jquery.1.2/views/visual_jquery/1.2.6.htm</description>
</view>
</extension>
5. Save the plugin.xml file. Hopefully that'll get you what you want; I'll try to post a new jQuery plugin (it'll be 00002) tomorrow. Hi again,
Had to rest for a moment was a long night. I followed your instructions to the letter and it worked perfectly. The Visual jQuery view is back in. I was able to work around this by opening the internal browser and navigating to the 1.2.6.htm manually so it shouldn't be tied to the view itself. Maybe those views are looking at some wrong URLs... Oy, OK. I knew about the Visual ScriptDoc bug, but I didn't realize it affected Visual jQuery as well. Let me test and see what's up there.
btw, according to the jquery-api-browser AIR desktop application the only things added to the API in terms of new functions etc are:
closest(expr) It doesn't show what was changed however... I updated Visual jQuery to v1.3.1 and v1.3.2. I will try to include a zip archive with the new versions fir the Attach File feature...
I am not quite sure where else to post it. I got it already.
For the changes between jQ 1.2.6 and 1.3, I got those from the jQuery API browser as well – I used it as a reference to update the docs. The thing with the API browser is that it doesn't show you what was changed just a little and thus does not have any a 'added 1.3.2' tag associated with it.
I was never sure if I got it all in, thats why I decided to change the api-loader.js and api-docs.js scripts included with Visual jQuery a little so that they would use the XML docs that I generated from jQuery's SVN trunk with the createjQueryXMLDocs.py Python script. That way I was absolutely certain that every bit is in. I also got rid of the older unused jQuery libraries that where still included for no apparent reason. I also changed the exmaple URL to use at least jQuery 1.3.1 instead of 1.2.6 since when viewing the API for 1.3.x it only makes sense that the actual examples use the version one is viewing the docs for. I also slightly changed some CSS code so that the application would behave more nicely on smaller display sizes. Finally, I also wrote a little readme/how-to about how one can automatically update the XML docs for future versions quite easily. That way other user do not have to wait for us to update to the latest version. I believe it is the superior way to go since the functionality was there already and it doesn't take a whole lot of effort or knowledge to update for future versions. forgot to add:
As a workaround for the Visual jQuery display bug one could use a Monkey script to open the Internal Browser at the URL thats pointing to the Visual jQuery htm file... My bad – I misunderstood what you'd said in your previous comment. I thought you were saying that you updated the library from 1.3.1 to 1.3.2, but I now see that you were saying that you updated Visual jQuery to 1.3.2. Thanks for that.
I just downloaded the updated 1.3.2.00001 package.
For the visual_jquery view it looks like you added 1.3.2.htm and replaced the api-docs.js with the new version without including the data/jquery-docs.xml file. Because 1.2.6 relies on the full documentation passed as JSON object in api-docs.js' loadDocs() function and I had to remove the JSON data from loadDocs() so that the ajax request in api-loader.js to the jquery-docs.xml file would instead be triggered. If you look at api-loader.js on line 22 there is the line so for 1.3.2 to work it needs the jquery-docs.xml file in a /data dir. I am not quite sure why 1.2.6.htm is included for a 1.3.2 release of the jquery support plugin. Oy, let me check. I might have messed up my SVN commands.
Yeah, I did; I missed the data folder when I checked in. (Obviously it worked when I tested locally, because I had a local copy.) The 1.2.6.htm file was scheduled for deletion and should have been removed with the last commit. Checking on that now.
Btw, I hadn't meant for the plugin to be "live" yet; it has to go up for testing, but I didn't intend for it to be downloaded by users. I'd forgotten that technically it would be live because jQuery 1.3 as a feature is live. Ah Ok I understand.
If you want you can also just include the cleaned up folder structure from the zip above but that's up to you of course. Cheers Yes, that's what I did – but it has to get checked into SVN in order to get into the build process.... and that's where things went wrong.
here's a small monkey script which open the web view with Visual jQuery:
/*
function main() { webView = views.getView("VisualJQueryView"); webView.showView(true); webView.setTitle("Visual jQuery v1.3.2"); webView.url = "/Users/andre/Documents/Aptana Studio Workspace/Aptana Studio Extensions/views/visual_jquery/1_3_2/1.3.2.htm"; } of course the webView.url will have to be changed to the URL where the downloaded visual_jquery_1_3_2 and it's 1.3.2.htm file resides. I also think I know what's wrong with the internal web browser and the Visual... views: I have the impression that they tend to break when a URLencoded URI is provided. However, when I enter this instead it won't work: "file:///Users/andre/Documents/Aptana%20Studio%20Workspace/Aptana%20Studio%20Extensions/views/visual_jquery/1_3_2/1.3.2.htm" The same with other URLs that I enter into the internal web browser... very, small update...
changed the googleapis jquery link for the examples iframe to use the 1.3.2 version now that it is updated. Hi Andre - The script and update will probably need to wait until we rev the library again. Version 1.3.2.00002 of the library will be up shortly.
Hi Lori,
Sure. Take whatever you need from it, when you need it I updated the freely available jQuery Cheat Sheet PNG from 1.2 to 1.3 and created a view from it.
I'll attach it as I can imagine it may useful to some, especially new users of jQuery. As before, if anyone finds uses for it, then by all means, take whatever you need from it... Thanks Andre! It's great to have an advocate for the jQuery developers among Aptana Studio users.
A small update to the cheat sheet...
I fixed some errors:
Cheers, André |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FWIW, no Ajax library plugins will ship with Studio 1.3. Instead you'll be able to choose which ones to install on first launch (and whenever after that by choosing Help > Install Aptana Features...