Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-16-2012, 03:09 PM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

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


I'm taking a look at this sample to implement animation in a phonegap application:

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:

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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

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