1. #1
    Ext User
    Join Date
    May 2007
    Posts
    41
    Vote Rating
    0
    Carel is on a distinguished road

      0  

    Default Visual Studio Web Developer 2005 Express

    Visual Studio Web Developer 2005 Express


    Trying to get ext up and running, stand alone no problem but when having a folder ext with all ext in it and another folder elsewhere with a simple html page that includes the scripts from the ext folder and a script with an Ext.onLoad, Ext is not defined. What am I doing wrong? Can anyone tell me what is required to combine VSWD 2005 Express with Ext? Ext looks very promising to me. Maybe there is another development environment better suited?

    T.I.A.

    Carel

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,518
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Can you post your Ext include links?

  3. #3
    Ext User
    Join Date
    May 2007
    Posts
    41
    Vote Rating
    0
    Carel is on a distinguished road

      0  

    Default


    Gladly, I have zipped up the folder with a copy of the ExtStart example. This example is located next to the folder in which I extracted Ext like so:

    /ext/....

    /exttest1/ExtStart.css
    /exttest1/ExtStart.html
    /exttest1/ExtStart.js

    Double-clicking the html file shows the alert() from the ExtStart.js, opening exttest1 using VSWD shows the page but no alert because Ext is undefined. Apparently Ext is not instantiated for some reason that I am unaware of.

    I hope this is helpful information,

    Regards,

    Carel
    Attached Files

  4. #4
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,518
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I guess that server cannot find the directory. You include like this:
    HTML Code:
    <script type="text/javascript" src="../ext/ext-1.0.1/ext-all-debug.js"></script>
    what is "one directory up then ext/ext-1.0.1"

    Is your directory structure as follows?
    Code:
    +--ext--ext-1.0.1
    +--exttest1
    Just a hint: I was also struggling with this problem especially during development. I had directory test (under document root), I'd made evertything working and then I moved the app to its final place and I had to edit paths of include links.

    My solution now ist to start include links with / so I always start from document root. A little bit more typing but I can move files within project tree without fixing anything.

  5. #5
    Ext User
    Join Date
    May 2007
    Posts
    41
    Vote Rating
    0
    Carel is on a distinguished road

      0  

    Default


    Now serving the ext folder thru IIS and that works in combination with a website project opened with VSWD 2005 Express, links to scripts now are like http://localhost/ext/

    Thanks again,

    Carel

  6. #6
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,518
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    You're welcome.

    The only problem with "http://localhost/ext" links is that if you move your app to another server you have to edit 'em.

    You can try to make links document root relative starting with slash. Let's say you have document root at /www/myapp and your ext is in /www/myapp/extjs/ext-1.0.1.

    Your links would then be: "/extjs/ext-1.0.1/ext-all.js", etc.

    If you move your app (with same directory structure) to another server under another document root you do not need to change a line and everything will work.

  7. #7
    Ext User
    Join Date
    May 2007
    Posts
    41
    Vote Rating
    0
    Carel is on a distinguished road

      0  

    Default


    I tried that to no avail, really. My guess is it is something specific to VSWD, some setting or limitation, not sure though, so if anyone is using VSWD and using root path I'd be interested to know.

    Thanks,

    Carel

  8. #8
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,518
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Hmmm,

    I'm the linux guy and I don't know at all what's VSWD . My "development environment" is vim and firefox/firebug.

    Maybe it's a bit more to learn but I'm sure that what-I-type-is-what-I-get.

  9. #9
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    If you're running under Visual Studio, you will likely have a created a web project called ext, which creates an IIS virtual dir of that name. In order to run the examples from VS in this case, you'll have to change the paths to the includes (js and css) to be based of the virtual, not a relative path. I'm sure there's probably a section in the VS doc on how to do this - it's the basis of all web dev in VS.d

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."