jQuery call within WebStageView
Hello,
I have seen a few posts SIMILAR to this on this forum, but would like to see if anyone can help with my specific issue.
I am making an Iphone/Pad app, and have a Flash file that solely constst of a WebStageView script listed below. Also packaged within the app is a htm site directory called /HYIM/ with subfolders of HYIM/dinner/afternoon/a .
import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.filesystem.File;
import flash.utils.Timer;
import flash.events.TimerEvent;
stop();
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(0,0,stage.stageWidth,stage.stageHeight);
var fPath:String = new File(new File("app:/HYIM/index.htm").nativePath).url;
webView.loadURL( fPath );
This loads fine within the app, and /HYIM/ is easily navigated, but within one of the pages there is a jQuery AJAX call that is not resolving. Below is an example of the code within this htm file. The page loads, but this particular code which is loading an external text file is not working. I suspect it is due to the relative URL, but cannot figure out how to properly point it within the app.
// set dinner text using jQuery AJAX call
var url = "dinner//afternoon//a" + day + ".txt";
$("#dinner").load(url);
I have tried 'app:/' and 'file:///' and could not get it to load.
Any help would be greatly appreciated!!!
Thank you.
