Welcome Guest Search | Active Topics | Members | Log In | Register

ME home page redirection Options
aleksandarcrvc
Posted: Wednesday, June 15, 2011 4:55:48 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
Hi,

First of all I want to thank support for answering my questions.

After successful creation of item I set output action
Code:
output.ErrorString = "New Activity Successfully Created!";


I found the way to create click actions that change my position on screen of mobile device. My question is How to make automatically redirection to home page after doing some action. In my case it would be nice to do that after output custom message just like I wrote above but without of click to Home icon.

Thanks,

Alex
joe
Posted: Wednesday, June 15, 2011 8:01:20 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
Hey Alex,

The following solution is going to depend on whether your mobile browser can initialize javascript that comes over from an AJAX call. Safari handles it fine, that is what I tested this with.

You can add your message to a BillBoard control and also add a snippet of Javascript that will send them back to the home screen:

EntreeListItemBillboard bb = g.AddListItem<EntreeListItemBillboard>();
bb.InnerHtml = "Item Created! You will be redirected shortly";
bb.InnerHtml += "<script type='text/javascript'>setTimeout(function(){window.location = '../';}, 4000);</script>";
aleksandarcrvc
Posted: Wednesday, June 15, 2011 8:06:37 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
Thanks Joe,

I will test it and put feedback on forum.

Alex
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.