Remove the content from a DIV

Forum to discuss the new web client version of Servoy.

Remove the content from a DIV

Postby marco.rossi » Thu Jul 16, 2020 1:46 pm

Hi,
I'm trying to remove a div content.

I created my own plugin in which I created a method called "emptyDiv".
This method has just one line of code within:

Code: Select all
document.getElementById(myDivName).innerHTML = "";


It works when I'm into the developer but it doesn't when I deploy it on Tomcat.

thanks in advance
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm

Re: Remove the content from a DIV

Postby swingman » Thu Jul 16, 2020 7:34 pm

Do you see any errors in the JavaScript console of your web browser?
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Remove the content from a DIV

Postby marco.rossi » Fri Jul 17, 2020 4:08 pm

Hi Christian,
no I found no error into the browser console but I found the problem:

When the WAR file has been deployed, the .spec file containing my last changes were not up to date due an error into Azure so the method didn't exist.
I found the error into the servoy-admin page.

Thank you for your time

Marco
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 5 guests