Solved

Pop-up message

Posted on 2013-06-02
6
313 Views
Last Modified: 2013-06-02
I new to the html thing (3 days).  I working on a sharepoint site.  Its a intranet  site.  I add a html web part to the page, then use HTML to develop my page.

I've used an alert code,it's not what I'm looking for.  What I'm trying to is have a welcome message with my boss picture pop-up when the main page is accessed for the first time with his welcome spill.

Any ideas?  I don't really know where to start of this one....
0
Comment
Question by:Curt_Hasan
  • 3
  • 2
6 Comments
 
LVL 11

Assisted Solution

by:wrmichael
wrmichael earned 500 total points
ID: 39214304
In modern HTML practices you can use a hidden "DIV" for this type of effect.

Check out this and see if it matches the behavior you want.

http://www.no-margin-for-errors.com/blog/2010/09/28/tutorial-opening-custom-content-in-prettyphoto/
0
 

Author Comment

by:Curt_Hasan
ID: 39214358
Like I said, I'm new to this.  You link has me a little confused.  All I'm trying to do is has a pop-up message or page for the user to see upon opening the a page.

I want the message to contain a picture in the upper left-corner of the message under the banner.

Please see the attached code that was attempted.
POPUP.txt
0
 
LVL 11

Accepted Solution

by:
wrmichael earned 500 total points
ID: 39214368
In general popups are taboo.  

But if that's the effect you want:

http://www.w3schools.com/jsref/met_win_createpopup.asp

W3schools is a great resource for learning.

To do this only on the first visit you would need to learn cookies.  But cookies can be cleared so they may see it again, especially if they use private browsing.

I missed that this is share point on my first read,  a share point API may exist but I don't know.   See if another expert knows share point specificly.
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Closing Comment

by:Curt_Hasan
ID: 39214571
This answer did get me closer to what I want. and website was extremely useful.
0
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39214637
Hi,
even if the question is already closed:
1. You should have added SharePoint topic ;-)
2. Proper way of opening dialogs in SharePoint is the usage of the built-in library
SP.UI.ModalDialog.showModalDialog
like here:
http://www.wawawum.com/blog/post/SharePoint-Modal-Dialog-from-HTML.aspx
(alternative would be to upload the content in an HTML file to a document library and use the URL option of the modaldialog)

KR
Rainer
0
 

Author Comment

by:Curt_Hasan
ID: 39214677
Hi.
If write my welcome message in HTML file and save it in document library and use the URL option that will display and close the message upon click?  This option seem simplest.

I've never utilized this feature, how do I get start?  Also, the website's example illustrate using a string.  My message is two short paragraphs.

Please advise...
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question