pop up message in webppage

A place for users and developers of the Xataface to discuss and receive support.

pop up message in webppage

Postby samhans » Thu Apr 05, 2012 12:10 am

steve and all my friends:

how could i show pop up message in my dashboard. i have done it in my own other web page but how to include it in xataface webpage.


please help.

thanks in advance
samhans
 
Posts: 96
Joined: Fri Feb 10, 2012 1:22 am

Re: pop up message in webppage

Postby shannah » Thu Apr 05, 2012 9:17 am

You mean like a Javascript alert?

Code: Select all
<script>
alert('This is a popup message');
</script>
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: pop up message in webppage

Postby samhans » Thu Apr 05, 2012 10:20 am

Steve like window.open in javascript . but how to call the unload event in my dashboard template.
samhans
 
Posts: 96
Joined: Fri Feb 10, 2012 1:22 am

Re: pop up message in webppage

Postby shannah » Tue Apr 10, 2012 1:18 pm

You can call any javascript you want inside a template. Just put it inside a <script> tag.

If you are putting the javascript directly in your template (as opposed to linking to a separate javascript file) you'll also need to wrap it with {literal} {/literal} tags so that Smarty doesn't choke on the curly braces in javascript.

e.g.
Code: Select all
<script>
{literal}
window.unload = function(){
    // Do some stuff

}
{/literal}
</script>


-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 13 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved