Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Parag Negi
Web content and javascript. Can they work together?
December 28, 2011 5:33 AM
Answer

Parag Negi

Rank: Junior Member

Posts: 71

Join Date: August 31, 2011

Recent Posts

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
Parag Negi
RE: Web content and javascript. Can they work together?
December 28, 2011 6:51 AM
Answer

Parag Negi

Rank: Junior Member

Posts: 71

Join Date: August 31, 2011

Recent Posts

anyone got any ideas...
Dhrutika Vyas
RE: Web content and javascript. Can they work together?
December 29, 2011 1:03 AM
Answer

Dhrutika Vyas

Rank: Expert

Posts: 435

Join Date: February 9, 2009

Recent Posts

Hi Parag,

You can have web content with javscripts.

Regards,
dhrutika
tabtim naja
RE: Web content and javascript. Can they work together?
October 22, 2012 1:46 AM
Answer

tabtim naja

Rank: New Member

Posts: 7

Join Date: October 21, 2012

Recent Posts

how can i put javascript code in web content??

is it do by clicking "source" button and put code in ,, right?
Hitoshi Ozawa
RE: Web content and javascript. Can they work together?
October 22, 2012 5:23 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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.
Hitoshi Ozawa
RE: Web content and javascript. Can they work together?
October 24, 2012 2:02 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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.
Nikhil Nishchal
RE: Web content and javascript. Can they work together?
October 26, 2012 11:39 AM
Answer

Nikhil Nishchal

Rank: Junior Member

Posts: 74

Join Date: June 21, 2012

Recent Posts

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.