• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[SOLVED] Bypassing portal security gives 404 error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Bypassing portal security gives 404 error

    When I use this code using the standard 3.1 server config

    PHP Code:
    <html>
    <
    head>
    <
    script type="text/javascript" src="/sencha-touch/sencha-touch.js"></script>
    <
    script type="text/javascript">

        
    Ext.define('User', {
            
    extend'Ext.data.Model',
            
    config: {
                
    fields: [
                    {
    name'firstName'type'string'},
                    {
    name'lastName',  type'string'},
                    {
    name'age',       type'int'},
                    {
    name'eyeColor',  type'string'}
                ]
            }
        });

    </
    script>
    </
    head>
    <
    body>
    </
    body>
    </
    html

    and access it bypassing portal security using:

    http://<Our IP Here>:7031/vvresources/fender/test.html

    I get the following error:

    PHP Code:
    GET http://<Our IP Here>:7031/vvresources/fender/data/Model.js?_dc=1334833399626 404 (Not Found) 

    Clearly it finds the sencha-touch.js but that looks for data/Modal.js here

    PHP Code:
    http://<Our IP Here>:7031/vvresources/fender/data/Model.js 
    instead of here

    PHP Code:
    http://<Our IP Here>:7031/sencha-touch/src/data/Model.js 
    Have I missed something out?


    Thanks!

  • #2
    Changing

    Code:
    <script type="text/javascript" src="/sencha-touch/sencha-touch.js"></script>
    to

    Code:
    <script type="text/javascript" src="/sencha-touch/sencha-touch-all.js"></script>
    fixed the issue.

    Comment

    Working...
    X