LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-16-2012, 03:09 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
Phonegap / Dojo - Problems with animation


Hi!

I'm taking a look at this sample to implement animation in a phonegap application: https://www.ibm.com/developerworks/m...negap1?lang=en

It works by the way. However, on the page I'm loading there's <script></script> stuff that won't work when setting div's innerHTML stuff. How can it be forced to work? By the way, some of the stuff in the <script> is to be executed "statically" in the html (in order to use dojo and given that I was going to set div's innerHTML, I stripped the html,head,body stuff from the page that is to be included in the div).

The other approach I tried was to use am <iframe> inside the div and change the src of the iframe. This approach works but then I hit a wall when I try to call (from the page included in the iframe) the method from the main html file (the one that holds the containers) to switch the view to another page. I try something like this:

Code:
parent.callSwitchingMethod("newURL");
But then phonegap says that callSwitchingMethod is not defined (apparently) in the parent document.

So.... what's the right approach and the right hack to get this done?

Thanks in advance.
 
  


Reply

Tags
animation, dojo, innerhtml, phonegap, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PhoneGap/Android - requestXML is null eantoranz Programming 3 05-02-2012 10:23 AM
PhoneGap/Android - WebUrlLoaderClient timeout eantoranz Programming 0 05-02-2012 10:18 AM
LXer: Mastering Dojo LXer Syndicated Linux News 0 12-15-2008 01:40 PM
LXer: Dojo 0.4 Is available LXer Syndicated Linux News 0 11-07-2006 04:33 AM
LXer: Develop HTML Widgets with Dojo LXer Syndicated Linux News 0 11-04-2006 04:21 PM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration