Assembla home | Assembla project page
 

Ticket #84 (closed Bug: fixed)

Opened 1 year ago

Last modified 1 year ago

Using JS in php code example

Reported by: DyaGa Assigned to: aprice30
Priority: normal Milestone: Version 0.5
Component: General Code Version: 0.4
Severity: normal Keywords:
Cc:

Description

Ok... Let's look at THIS page. It is my last project on BeP. So, there is a Map and Cities. City Shops will be displayed when you click on the City title. In this example I took City X and Y coordinates from Database and puts it into the page code as JavaScript code. In Admin Area I can add/remove/change Citites and it's coordinates... so, I don't see any other way to outputs this coordinates...

Besides, if it interesting for you, you can see how I use you BeP in this project from inside. Please, go to THIS page and enter this Super Admin username and password:

email: dyaga@ukr.net
password: enterenter

it uses BeP 0.3.1

some language translations:

Содержимое - Content
     Содержимое страниц - Page Content

Каталог продукции - Catalog
     Продукция - Products (table of product items)
     Категории - Categories (of products)

Точки продаж - Stores (shops)
     Магазины - shops (table of shops)
     Города - cities (table of cities)

Обратная связь - Feedback

Change History

12/25/08 08:28:00 changed by aprice30

  • owner set to aprice30.
  • status changed from new to assigned.

OK I see what you mean. I thought with the JS to PHP variable conversion would work, shouldn't be too hard to add this feature to the system.

02/27/09 19:46:11 changed by aprice30

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [216]) The Page class now has the feature to store JS code and then output it into a view (very much like the PHP to JS variable converter), Closes #84