This is a migrated thread and some comments may be shown as answers.

Can we redirect using javascript

11 Answers 164 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kanika
Top achievements
Rank 1
Kanika asked on 09 Apr 2013, 11:28 AM
Hi Guys,
I am going to use Icenium for my hybrid application, I am a newbie here so just wanted to know if we can redirect through javascript to other pages? My index.html will have lots of options for users and coding all the functions in a single index.html will be complex.. so is there any idea how can i do this?

Thanks in Advance

11 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Apr 2013, 11:59 AM
Hello Kanika,

You can use hyperlink:

<a href="index2.html">Index2</a>

or window.open, for more info here.

Generally your question is not directly related to Icenium (which is basically the environment you would work in) and you can get more thorough feedback about such general questions in community forums like StackOverFlow.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Steve
Telerik team
answered on 09 Apr 2013, 01:47 PM
Hi,

In case you referred to maintaining views in separate files during development, you might want to check the Kendo UI remote views.

Regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Kanika
Top achievements
Rank 1
answered on 10 Apr 2013, 04:01 AM
Hi Steve, thanks for your reply but i read somewhere in your forum that if we use window.location.href or hyperlink then Apple might disapprove our application, is it true?

Thanks
0
Steve
Telerik team
answered on 10 Apr 2013, 07:45 AM
Hi Kanika,

You can always use window.open if you think/read that other methods might have any drawback.

Kind regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
emmapabale
Top achievements
Rank 1
answered on 26 Jun 2013, 02:09 AM
window.open opens a new window. it doesn't show it on the phone simulator.
0
Kristian D. Dimitrov
Telerik team
answered on 28 Jun 2013, 08:33 AM
Hi Emma,

 Yes, window.open opens another window. Could you please provide us some more information about your issue:

  1. Which Icenium client are you using Graphite or Mist ?
  2. What is the Cordova version of the project?
  3. Which device and OS Version of the Simulator you use?

Regards,
Kristian D. Dimitrov
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
Joey Navarro
Top achievements
Rank 1
answered on 14 Nov 2013, 10:44 PM
Redirect does not work.
I created a blank project and added the line
<a href='www.google.com' target='_blank'>Google</a>

In Android, when I click on the link, I get the message:
Application Error
There was a network error. (file:///android_asset/www/www.google.com)

In iOS, the link doesn't do anything.
0
Steve
Telerik team
answered on 15 Nov 2013, 03:01 PM
Hi Joey,

Cordova uses file:// protocol and you should not omit http:// when you specify URLs.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Joey Navarro
Top achievements
Rank 1
answered on 15 Nov 2013, 05:21 PM
I added the http:// to the link but it still doesn't redirect to a new browser window.
0
Steve
Telerik team
answered on 18 Nov 2013, 03:06 PM
Hi Joey,

I've attached a sample project based on the blank template as you explained. This project works properly on both Android and iOS on our end. Please compare the differences on your end and let us know if further help is needed.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Audrey
Top achievements
Rank 1
answered on 18 Nov 2013, 03:24 PM
To redirect in a page which is in the project use :
window.location = "page2.html";
Tags
General Discussion
Asked by
Kanika
Top achievements
Rank 1
Answers by
Steve
Telerik team
Kanika
Top achievements
Rank 1
emmapabale
Top achievements
Rank 1
Kristian D. Dimitrov
Telerik team
Joey Navarro
Top achievements
Rank 1
Audrey
Top achievements
Rank 1
Share this question
or