uCoz AJAX Window Generator
CoffeeCone
Posts: 687
Message # 1 |
6:59 PM
2011-01-01
uCoz AJAX Window Generator v1.02 A flash application developed to help you easily create uCoz AJAX windows. FEATURES Easily define the AJAX window properties. Completely accepts your HTML codes. You don't have to worry about breaking the AJAX window, the app handles it. The code is formatted as a JavaScript function which means you can call it easily using yourFunctionName() . The generated code automatically gets copied to your clipboard for easy pasting to your uCoz website. SCREENSHOTS CODE USAGE The generated code is colored in blue . The below example shows how you can use the generated code on a link. Quote (Open automatically. )
FREQUENTLY ASKED QUESTIONS Did you make this? Yes, I did. How much does the app cost to use? None, it's free. ;) How do I make the uCoz AJAX window to automatically open when my page opens? Use the onLoad event on your page's tag. How is this application made? This application is made in flash. Can I put YouTube videos into the AJAX window? Yes, you can. Just copy the embed code on the YouTube video's page. Does this application support HTML codes? Yes, it supports tables, divs, etc. Does this application support BB codes? Unfortunately, no. You need to use HTML codes. What if I still have questions that weren't answered here? If so, feel free to ask in this thread. I will try to reply as soon as possible. :) SOURCE CODE
Code
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="480" height="350" pageTitle="uCoz AJAX Window Generator" preloaderChromeColor="#787070"> <fx:Script> <![CDATA[ import mx.controls.Alert; private function convertBoolean(pBool:Boolean):Number { if (pBool == true) { return 1; } else { return 0; } } private function generateCode():void { // Validate Fields if (winID.text == '') { Alert.show("Please provide a unique ID for this AJAX window.","Missing Field"); } else if ((winWidth.text == '') || (winHeight.text =='')) { Alert.show("Please provide a size for the AJAX window.","Missing Field"); } else { // Generate Code var tCode:String = ""; tCode = "<script type=\"text/javascript\">\n" + "function " + winID.text + "(){\n" + "new _uWnd('" + winID.text + "',unescape('" + escape(winTitle.text) + "')," + winWidth.text + "," + winHeight.text + ",{" + "modal:" + convertBoolean(winModal.selected) + ",close:" + convertBoolean(winClose.selected) + ",max:" + convertBoolean(winMaximize.selected) + ",resize:" + convertBoolean(winResize.selected) + ",nomove:" + convertBoolean(winNoMove.selected) + ",shadow:" + convertBoolean(winShadow.selected) + ",header:" + convertBoolean(winHeader.selected) + ",autosize:" + convertBoolean(winAutoSize.selected); // Conditional Stuff (Minimum and Maximum Sizes) if (winMinWidth.text != '') {tCode = tCode + ",minw:" + winMinWidth.text;} if (winMinHeight.text != '') {tCode = tCode + ",minh:" + winMinHeight.text;} if (winMaxWidth.text != '') {tCode = tCode + ",maxw:" + winMaxWidth.text;} if (winMaxHeight.text != '') {tCode = tCode + ",maxh:" + winMaxHeight.text;} var tContent:String = winContent.text; if (winAlignment.selectedValue.toString() != '') { tContent = '<div align="'+winAlignment.selectedValue.toString()+'">' + winContent.text + '</div>'; } tCode = tCode + "},unescape('" + escape(tContent) + "'));\n" + "}\n" + "</script>"; System.setClipboard(tCode); // Generate User Alert Alert.show("The code has been generated and copied to your clipboard!" + "You can now paste it.\n\n" + "To use it, you must call the JavaScript function below:\n\n" + winID.text + "()","Copied to Clipboard"); } } ]]> </fx:Script> <fx:Declarations> <s:RadioButtonGroup id="winAlignment"/> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:controlBarContent> <s:Label text="uCoz AJAX Window Generator v1.01" fontWeight="bold" color="#141313"/> </s:controlBarContent> <s:BorderContainer x="0" y="0" width="480" height="321" borderColor="#D4C5C5" backgroundAlpha="0.0"> <!--Misc--> <s:Button y="10" width="100" height="21" label="About this App" click="aboutApp()" x="284"/> <s:Button y="10" width="80" height="21" label="More Info." click="moreInfo()" x="388"/> <!--End of Misc--> <s:Label x="19" y="16" text="Unique ID:"/> <s:TextInput id="winID" x="86" y="10" width="178" height="21" restrict="A-Za-z0-9_" maxChars="100"/> <!--First Column--> <s:Label x="24" y="52" text="Width:"/> <s:TextInput id="winWidth" x="62" y="46" width="40" height="21" restrict="0-9" maxChars="4" text="300"/> <s:Label x="109" y="52" text="Height:"/> <s:TextInput id="winHeight" x="152" y="46" width="40" height="21" restrict="0-9" maxChars="4" text="200"/> <s:Label x="24" y="77" text="Min. Width:"/> <s:TextInput id="winMinWidth" x="87" y="71" width="40" height="21" restrict="0-9" maxChars="4"/> <s:Label x="137" y="78" text="Min. Height:"/> <s:TextInput id="winMinHeight" x="204" y="72" width="40" height="21" restrict="0-9" maxChars="4"/> <s:Label x="24" y="102" text="Max. Width:"/> <s:TextInput id="winMaxWidth" x="89" y="96" width="40" height="21" restrict="0-9" maxChars="4"/> <s:Label x="137" y="103" text="Max. Height:"/> <s:TextInput id="winMaxHeight" x="206" y="97" width="40" height="21" restrict="0-9" maxChars="4"/> <s:Label x="24" y="126" text="Default Alignment:"/> <s:RadioButton x="33" y="140" label="Left" value="left" groupName="winAlignment" selected="true"/> <s:RadioButton x="83" y="140" label="Center" value="center" groupName="winAlignment"/> <s:RadioButton x="149" y="140" label="Right" value="right" groupName="winAlignment"/> <s:RadioButton x="209" y="140" label="Justify" value="justify" groupName="winAlignment"/> <!--End of First Column--> <!--Second Column--> <s:CheckBox id="winModal" x="285" y="40" label="Modal Window? (modal)"/> <s:CheckBox id="winClose" x="285" y="59" label="Closable? (close)" selected="true"/> <s:CheckBox id="winMaximize" x="285" y="78" label="Maximizable? (max)"/> <s:CheckBox id="winResize" x="285" y="97" label="Resizable? (resize)"/> <s:CheckBox id="winNoMove" x="285" y="116" label="Not Movable? (nomove)"/> <s:CheckBox id="winShadow" x="285" y="135" label="Shadow Present? (shadow)"/> <s:CheckBox id="winHeader" x="285" y="154" label="Header Present? (header)" selected="true"/> <s:CheckBox id="winAutoSize" x="285" y="173" label="Auto-size? (autosize)"/> <!--End of Second Column--> <!--User Content--> <s:Label y="172" text="Window Title:" x="24"/> <s:TextInput id="winTitle" x="105" y="166" width="155" height="21" maxChars="100"/> <s:Label x="50" y="202" text="Content:"/> <s:Label x="11" y="217" text="(Accepts HTML)"/> <s:TextArea id="winContent" y="196" width="363" height="115" maxChars="5000" x="105"/> <!--End of User Content--> <s:Button x="10" y="281" label="GENERATE" width="87" height="30" click="generateCode()" fontSize="10"/> </s:BorderContainer> </s:Application>
APPLICATION LINK Here's the official application link: http://www.shedosurashu.com/uawg
Post edited by shadowslash - Monday, 2011-04-11, 7:44 PM
CoffeeCone
Posts: 687
Message # 16 |
6:10 PM
2011-01-02
Can any mod or admin rename this thread to uCoz AJAX Window Generator ? without the v1.01... Thanks!
Post edited by shadowslash - Sunday, 2011-01-02, 6:10 PM
coatham
Posts: 248
Message # 17 |
7:24 PM
2011-01-02
What is a AJAX Window?
Need More In Depth Help About a topic post it here: Click
Here
Animorph
Posts: 2856
Message # 18 |
7:35 PM
2011-01-02
coatham , everything about ajax windows and useful ajax window threads are here: http://forum.ucoz.com/forum/38-12037-1 http://forum.ucoz.com/forum/38-10002-1 http://forum.ucoz.com/forum/36-8296-1 http://forum.ucoz.com/forum/38-12032-1
To busy building a passive income online ;)
Post edited by CreativeCollusions - Monday, 2011-01-03, 3:29 PM
coatham
Posts: 248
Message # 19 |
7:47 PM
2011-01-02
Animorph , Thank you
Need More In Depth Help About a topic post it here: Click
Here
Message # 20 |
0:02 AM
2011-01-03
shadowslash wow great job.. looks amazing Thanks for sharing
Post edited by 00_Eagle_00 - Monday, 2011-01-03, 0:03 AM
CoffeeCone
Posts: 687
Message # 21 |
3:11 PM
2011-01-03
Quote (00_Eagle_00 )
shadowslash wow great job.. looks amazing
Thanks!
Message # 22 |
3:54 PM
2011-01-05
shadowslash , great job man! its really helpful..... keep it up
Message # 23 |
3:11 AM
2011-01-23
Create a proof soon or some bad people will change some settings of your app and will tell that it is he/she's
CoffeeCone
Posts: 687
Message # 24 |
3:21 AM
2011-01-23
Quote (SirDarknight )
Create a proof soon or some bad people will change some settings of your app and will tell that it is he/she's
What do you mean by that?
Message # 25 |
11:57 AM
2011-01-23
shadowslash , I think SirDarknight means to place your copyright information on the application
Kind regards,
Elliott .
"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.
I'm on
Behance and
Twitter .
CoffeeCone
Posts: 687
Message # 26 |
12:08 PM
2011-01-23
Quote (CreativeCollusions )
shadowslash, place your copyright information on the application
Oh, you mean this? Oh, and it's not very surprising that somebody will create a similar application considering I already put the source code up for users to see freely... BTW, I'm already working on a new application different from this.. The new application will be much much easier to use for newbies and / or professionals alike. And this piece of text is intentionally whited out so that only a few can read it. ;)
Post edited by shadowslash - Sunday, 2011-01-23, 12:33 PM
Message # 27 |
12:21 PM
2011-01-23
I think it is good that you are sharing the source code but for your benefit you should keep it yourself, maybe build up a portfolio
Kind regards,
Elliott .
"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.
I'm on
Behance and
Twitter .
CoffeeCone
Posts: 687
Message # 28 |
12:32 PM
2011-01-23
Quote (CreativeCollusions )
I think it is good that you are sharing the source code but for your benefit you should keep it yourself, maybe build up a portfolio
Thanks for the tip! I decided to keep the source code open since what the heck can other people do with the source code? They can make another version of uCoz AJAX Window Generator for all they want but what good will that do? This app isn't something that others can profit from... As for copyright stuff, if they claim that they were the original makers of that app, I can simply link people to this thread and point them to the creation date of the first thread to inform them that I indeed released this earlier. I do keep the source code of my other business-related apps though....
Message # 29 |
12:35 PM
2011-01-23
shadowslash , good. I haven't tried any of your other apps but looking at your website, I'm impressed
Kind regards,
Elliott .
"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.
I'm on
Behance and
Twitter .
CoffeeCone
Posts: 687
Message # 30 |
12:58 PM
2011-01-23
Quote (CreativeCollusions )
shadowslash, good I haven't tried any of your other apps but looking at your website, I'm impressed
Those are mainly personal project apps... The business ones aren't available to the public as per requested by the clients...