HTML5 Data Bindings Support Product Page

Solved

JavaScript Error

Reported 03 Dec 2016 02:48:47
1
has this problem
03 Dec 2016 02:48:47 Ben Pleysier posted:
JavaScript Error in dmxDataBindingsEx_ServerActions.htm, line 1008:syntax error when installing and or using the latest version.

How do I get the previous version that was working.

Windows 10
Dreamweaver 2017.0.1 9333 Build

Replies

Replied 03 Dec 2016 11:17:22
03 Dec 2016 11:17:22 Teodor Kuduschiev replied:
Hello Ben,
Please be a little more detailed - when exactly does this happen? the latest version of which extension are you referring to?
Replied 03 Dec 2016 12:16:25
03 Dec 2016 12:16:25 Ben Pleysier replied:
After installing the latest updates, I receive the error message. As well as that I no longer see the Server Connect Action Executors folder, Security Provider Executor being the last folder.

Checked using CC2015 with the same result.

I get the message as soon as the Data Bindings panel is open.
Replied 03 Dec 2016 12:32:14
03 Dec 2016 12:32:14 Teodor Kuduschiev replied:
Please reinstall DMXzone Server Connect and HTML5 Data Bindings.
Replied 03 Dec 2016 12:46:35
03 Dec 2016 12:46:35 Ben Pleysier replied:
Sorry to be a pest, but the result is the same.
Replied 03 Dec 2016 14:55:41
03 Dec 2016 14:55:41 Teodor Kuduschiev replied:
is this happening on a specific page only? Probably there is some code error there.
Replied 04 Dec 2016 00:40:13
04 Dec 2016 00:40:13 Ben Pleysier replied:
I have got egg on my face! You are right once again. No problem with the extension, just with my brain. Having run out of 'thank you' I will give you a (man) hug next time I am in Europe.
Replied 04 Dec 2016 03:07:36
04 Dec 2016 03:07:36 Ben Pleysier replied:
OK. Found the problem. In my eagerness to streamline the code, I removed the
</script>
<script type="text/javascript">
between the two functions as in

<script type="text/javascript">
/* dmxServerAction name "execModels" */
jQuery.dmxServerAction( {
"id": "execModels",
"url": "../dmxConnect/api/Vehicles/models.php",
"method": "GET",
"sendOnSubmit": false,
"sendOnReady": true,
"data": {}
} );
/* END dmxServerAction name "execModels" */
</script>
<script type="text/javascript">
/* dmxServerAction name "execVehicleInsert" */
jQuery.dmxServerAction( {
"id": "execVehicleInsert",
"url": "../dmxConnect/api/Vehicles/vehicleInsert.php",
"form": "#frmVehicleInsert",
"data": {},
"onSuccess": "MM_goToURL('parent','vehicles.php');"
} );
/* END dmxServerAction name "execVehicleInsert" */
</script>

Will know in future.
Replied 07 Dec 2016 02:25:38
07 Dec 2016 02:25:38 Ben Pleysier replied:
I keep getting the problem every time I insert a new Server Connect Action Executor. Initially I thought it was me, now I have discovered that the extension does not put an <script></script> for each added Executor but installs it within existing tags.

The error pops up each time and I have to manually correct it to suit.

Not sure if it is my version of Dreamweaver being build 9333, which is a version with a number of bug fixes. This version will soon become mainstream.
Replied 07 Dec 2016 07:46:24
07 Dec 2016 07:46:24 Teodor Kuduschiev replied:
Hi Ben,
The extension is not supposed to and does not place different executors in separate <script> tags.
It works like:

<script>
/* dmxServerAction name "NameHere" */
{executor code here}
/* END dmxServerAction name "NameHere" */
/* dmxServerAction name "Name2Here" */
{executor code here}
/* END dmxServerAction name "Name2Here" */
</script>

Looking at the code you pasted - did you align the code like that - not inline but on separate lines or did the extension insert it like that?
Replied 07 Dec 2016 09:21:06
07 Dec 2016 09:21:06 Ben Pleysier replied:
I had to insert the extra lines to ensure that I was not getting the error message and that the Server Connect Action Executor showed up.

Tried a fresh document and you are right and there is no error message when the executors are within the same tags.

Must be something else within my document that is causing the problem. Will let you know when I find out.

Reply to this topic