Solved

Pop-up message

Posted on 2013-06-02
6
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

739 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