I am a fairly new to ExtJS. I have been figuring it out and really like it. Being a long time PHP, ASP and XML person it is a whole new way of thinking and opens up so many possibilities. But I have some best practice type of questions.
We have antoher application where I work that was written in ExtJS and I ahve used some examples from it to get me started.
With ExtJS you can create an object then either in the items add the items or do an objectname.add() to perform the same function. What is the best practice way of doing this? Re: Several questions from a newbie:: File Format: PDF/Adobe Acrobat - Viewsee them in real time. GOTOs apparently do have some real usefulness. Re: Several questions from a newbie. Re: Several questions from a newbie http://sci.tech-archive.net/pdf/Archive/sci.astro.amateur/2008-12/msg00165.pdfHOME | ChiLiving Bulletin Board • View topic - Questions from running newbie.:: Questions from running newbie. Post by JoeyD » Thu Jul 28, 2005 1:51 pm I figure it's best to "learn correctly the first time" than to just go out and train with . Practice the lean exercise in page 74 -75 of the ChiRunning book. http://www.chiwalking.com/bulletinboard/viewtopic.php?f=2&t=318&start=0HOME |
The local app we have here does it both ways which seems to make it hard to read. Is one way better than the other?
Next question... I am all for the idea of building modules. I have always done this with PHP so that for easy readability each section or feature was in a different module and then in PHP was include'd in the main source.
I see in examples that this is done with ExtJS by adding script source statements. Is there an advantage to doing with the script source over just putting in a php include to include the source?
Last one for now... I have been editing this in dreamweaver, is there a better editor to edit in? maybe one that keeps track of what brackets are open so they can be matched?
Thanks all!
1) In general, use items. It doesn't make much difference, but it's generally easier to have it all in the one spot.
2) Yes, this allows the browser to cache the script. It also lets you organise your files logically, similar to how you would with your PHP files.
3) Whatever floats your boat, there are heaps out there. Aptana is good.
regarding free editor for editing js; notepad++ (free on sourceforge) seems to work nicely for writing javascript. try it out, its small and you can uninstall it (yes, really!) if you don't like it...
I use it to poke inside any textfiles, since it loads fast and has syntaxhighlight and helpers
With ExtJS you can create an object then either in the items add the items or do an objectname.add() to perform the same function. What is the best practice way of doing this?
The local app we have here does it both ways which seems to make it hard to read. Is one way better than the other?
Depends on the nature of your app. One is used if you know what the items are before the widget is created. The other you use if you don't know all of the items yet. Maybe you're adding items via ajax or based on some user interaction, etc.
Next question... I am all for the idea of building modules. I have always done this with PHP so that for easy readability each section or feature was in a different module and then in PHP was include'd in the main source.
I see in examples that this is done with ExtJS by adding script source statements. Is there an advantage to doing with the script source over just putting in a php include to include the source?
Can you cite a specific example, I'm not sure what you're referring to.
Last one for now... I have been editing this in dreamweaver, is there a better editor to edit in? maybe one that keeps track of what brackets are open so they can be matched?
There are a few threads on this, including something in the blogs. Suggest you look to those threads which have more detailed info than you'll get again here.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|