Solved

Pop-up message

Posted on 2013-06-02
6
312 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now