Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > I want to open popup window at image click View modes: 
User avatar
Member
Member
eng.rupalikulkarni-gmail - 5/3/2012 9:17:55 AM
   
I want to open popup window at image click
Hi ,

I am new to kentico,
I want to open popup window using javascript, When user clicks on image. For that i did following steps;

1. added Editable image webpart
2. added image
3. added -- <a href="javascript:imagePopUp(‘/Images/coupon.aspx?width=250&height=200&ext=.jpg’)"> tag at before HTML and after HTML properties of webpart
4. Now i dont know where to add my javascript code?

Can you please help me?

Thanks in advance !!

User avatar
Member
Member
eng.rupalikulkarni-gmail - 5/3/2012 9:32:44 AM
   
RE:I want to open popup window at image click
i have added it to the template layout of the page , But still my javascript is not loading

User avatar
Kentico Support
Kentico Support
kentico_janh - 5/3/2012 12:51:37 PM
   
RE:I want to open popup window at image click
Hello,

You need to ensure, that your source javascript is placed in the code before you call the imagePopUp function. So you can easily place it right into the Content before property of that web part or you can use Javascript web part, which is there for these purposes. Or if you have your javascript as a file, you can link it into page head section by using a Head HTML code web part.

Best regards,
Jan Hermann

User avatar
Member
Member
eng.rupalikulkarni-gmail - 5/9/2012 12:57:35 PM
   
RE:I want to open popup window at image click
Hi,

Thank you very much!!!

I used Java script webpart on the page and it worked.

User avatar
Member
Member
eng.rupalikulkarni-gmail - 5/9/2012 4:11:00 PM
   
RE:I want to open popup window at image click
I want to include some of my jquery files to the page.
Can you please tell me where should i include my files ? I mean in which folder?
So that i will be able to refer them at the top of page?

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_janh - 5/10/2012 8:53:51 AM
   
RE:I want to open popup window at image click
Hello,

I suggest you to create your own subfolder under the /CMSScripts directory and place your javascripts there.

Best regards,
Jan Hermann