jsgrid-php icon indicating copy to clipboard operation
jsgrid-php copied to clipboard

Error running php

Open marcobra opened this issue 8 years ago • 1 comments

Cannot get sample running

Error in file public/js/sample.js at line 7

countries.unshift({ id: "0", name: "" });

TypeError: countries.unshift is not a function

also please write internal links using relative path i mean change i.e:

<link href="/public/css/style.css" rel="stylesheet" /> to <link href="./public/css/style.css" rel="stylesheet" />

Tanks Marco

marcobra avatar May 21 '17 14:05 marcobra

TypeError: countries.unshift is not a function

This is the working sample the way it is. Are you sure you didn't change the source? countries should be an array which supports unshift method. Probably you have changed the result of the /countries path.

also please write internal links using relative path i mean change i.e:

why should we do that?

tabalinas avatar May 29 '17 14:05 tabalinas