Foren

Web content and javascript. Can they work together?

thumbnail
Parag Negi, geändert vor 12 Jahren.

Web content and javascript. Can they work together?

Junior Member Beiträge: 69 Beitrittsdatum: 31.08.11 Neueste Beiträge
Hi gang,

I have some html stuff which uses java script to call few validations and methods(which inturn sometimes call services, etc...).

Can someone tell, if web content work with java script. if not, what is best way to go about it.

Please advise,
Parag
thumbnail
Parag Negi, geändert vor 12 Jahren.

RE: Web content and javascript. Can they work together?

Junior Member Beiträge: 69 Beitrittsdatum: 31.08.11 Neueste Beiträge
anyone got any ideas...
thumbnail
Dhrutika Parekh, geändert vor 12 Jahren.

RE: Web content and javascript. Can they work together?

Expert Beiträge: 435 Beitrittsdatum: 09.02.09 Neueste Beiträge
Hi Parag,

You can have web content with javscripts.

Regards,
dhrutika
tabtim naja, geändert vor 11 Jahren.

RE: Web content and javascript. Can they work together?

New Member Beiträge: 7 Beitrittsdatum: 22.10.12 Neueste Beiträge
how can i put javascript code in web content??

is it do by clicking "source" button and put code in ,, right?
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Web content and javascript. Can they work together?

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Or defining javascript in the page where instance of web content is placed or doing an inline javascript in html tag. I haven't tried this but it also may be possible to preload javascript with the web content portlet by setting it in the xml file.
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Web content and javascript. Can they work together?

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
can you tell me how to set liferay tomcat alway run until i log off from my server.
Ps. when i want liferay run ,,i will click startup.bat in bin folder.


tabtim, after you can tell me why your question is related to the topic of this thread. I don't know how setting up a server to run tomcat is related to putting javascript in web content. If you have a new question, please create a new thread. I've been asking this to everybody over and over again.
thumbnail
Nikhil Nishchal, geändert vor 11 Jahren.

RE: Web content and javascript. Can they work together?

Regular Member Beiträge: 176 Beitrittsdatum: 22.06.12 Neueste Beiträge
you can use JS code in Web content.
Steps:
1. create Structure
2. create template for the structure ( you can write the JS code in template with VM)
3. add a web content using this structure template

So by this way you can use JS in web content.