Problem with map

Just starting out? Need help? Post your questions and find answers here.
Dirk Geppert
Posts: 333
Joined: Fri Sep 22, 2017 7:02 am

Problem with map

Post by Dirk Geppert »

I have developed a lot in a WebApp project and now I noticed during testing that suddenly there is a problem when deleting a map element.

Code: Select all

   If FindMapElement(Form(), Str(nr))
      DeleteMapElement(Form(), Str(nr))
    EndIf
After the delete, GUI errors suddenly occur and nothing works anymore.

The only hint I could find in the browser debugger:

Code: Select all

Source-Map-Fehler: Error: request failed with status 404
Ressourcen-Adresse: http://127.0.0.1/spiderbasic/libraries/javascript/dojo/dojo.js
Source-Map-Adresse: dojo.js.map
What could that mean?

Is there any other way to see if something is broken on the map or something else?
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Problem with map

Post by Peter »

This error has nothing to do with your current problem. For explanation: The browser tries to load a MAP file for each JS file. This is needed to display correct line numbers for compressed JS or TS files. If the browser doesn't find the MAP file, it gives an error.

As written: The browser message regarding the missing MAP file has nothing to do with the SpiderBasic map commands.
Dirk Geppert
Posts: 333
Joined: Fri Sep 22, 2017 7:02 am

Re: Problem with map

Post by Dirk Geppert »

Thanks for the information. What can cause the problem? In an earlier version of the project the message does not appear.
I will test the project with other browsers. Maybe there will be some more information.
Or switch from Map to Linked List for testing.
Post Reply