Bug: Onclick in queries creates "unexpected token" error

If you think that something doesn't work in Aware IM post your message here
Post Reply
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Bug: Onclick in queries creates "unexpected token" error

Post by hpl123 »

Hi support,
This is a bug report and the bug is that onclick doesn´t work properly in queries. The problem is that when the onclick even is fired I get error "VM5844 0:2 Uncaught SyntaxError: Unexpected token }" and the onclick process I have assigned is not executed.

PS: I am using the latest build.

Here is a sample BSV and steps to reproduce:
1. Unzip and import BSV
2. Place app in testing mode and log in
3. Open RegularUser object for logged in user and add the following to the "Checkbox" attribute: <input type="checkbox" onclick="AwareApp.startProcess('Checked', 'main')">
4. Reload VP and now you will see the checkbox in the main frame "Checked" query
5. Check the checkbox and at the same time look at the browser dev tools to see error message: "VM5844 0:2 Uncaught SyntaxError: Unexpected token }"

PS2: The same bug rears it´s behind when using an IMG tag in the query so it´s not the input type checkbox causing this (and also if using the EXACT same code snippet for the checkbox with onclick etc. in a content panel it works as it should so it´s something in the query code specifically).

Thanks
Attachments
Onclickbug.zip
(34.61 KiB) Downloaded 466 times
Henrik (V8 Developer Ed. - Windows)
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Bug: Onclick in queries creates "unexpected token" error

Post by hpl123 »

Any thoughts / update on this bug support? Thanks
Henrik (V8 Developer Ed. - Windows)
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Bug: Onclick in queries creates "unexpected token" error

Post by hpl123 »

BUMP
Henrik (V8 Developer Ed. - Windows)
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Bug: Onclick in queries creates "unexpected token" error

Post by aware_support »

3. Open RegularUser object for logged in user and add the following to the "Checkbox" attribute: <input type="checkbox" onclick="AwareApp.startProcess('Checked', 'main')">

Where do you add it? And what do you want to achieve? By the looks of it this approach will not work - whatever you are trying to do.
Aware IM Support Team
Post Reply