How can I navigate another feature of a local html and remote html url and transmit data or the key, value pair?

Hello

I'm trying to integrate a local html file and a remote url base html file MAF 2.0.1 based app. I want to access another device (based amx) on click of a button on the html pages. How can I achieve the same?

Already tried with the below which fails with call javascript directly on the page html itself.

-HTML-

<! DOCTYPE html >

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = windows-1252 "/ >"

Home < title > < /title >

< script type = "text/javascript" >

document.addEventListener ("deviceready", callfeature, false);

function callfeature() {}

Alert ("callfeature called to map");

adf.mf.api.gotoFeature ("sni.gps.demo.locationFeature", function (req, res) {})

Alert ("full gotoFeature");

},

function (req, res) {}

Alert ("gotoFeature failed with" + adf.mf.util.stringify (res));

});

Alert ("callfeature called to map closed");

}

< /script >

< / head >

< body >

Simple mobile Web Page < h1 > < / h1 > < form method = "get" >

< input id = "ip1" name = "name" / >

<!-a href = "mycustomurlscheme://somedata" id = "myurl" > map < / a->

< button type = "button" id = 'mybtn' name = "gpsbtn" onclick = "callfeature ()" >

go to the feature

< / button >

< / make >

< / body >

< / html >

Hello

update to 2.1 MAF gives you , that can be added to HTML files the and remote access to the MAF since JavaScript API. Deepak mentioned "adf.mf.api.gotoFeature" and I can confirm it works HTML distance (and so it should be using local HTML). For the transmission of data, not sure whether the request URL object it. I would try here EL referencing a managed bean of application-scope defined in the scope of application (?). I tried beans controlled but so far has not tried to access the managed beans to a feature local or remote HTML using EL (although the EL is here)

Frank

Tags: Oracle Mobile

Similar Questions

Maybe you are looking for

  • Windows XP on the new Satellite A100 with VIsta

    I read section to http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=23253 and it does not solve my problem: I was planning to install XP on the second partition (labeled default BU ' Data') but when I boot my XP cd it works for a

  • Satellite A300-1LT won't boot up - white screen & no HARD disk activity

    I had a problem, the touch pad does not work.I found on the internet solution to stop computer, take out the battery, wait a bit and try again.That's when my problems start. When I put the battery back on, I turned on the laptop.White screen (nothing

  • Satellite L300-21F - where can I find the serial number?

    The ink on the toshiba money serial No./model No. Panel at the back of my laptop rubbed off after only a week of use, when I bought the pc last year. I now have a problem with my touchpad registers is not the movement of finger-cursor or shots at nor

  • Sansa e200r Rhapsody (BestBuy) - holiday - question bitensión?

    We had a unit e200r for several years now, and we charge it sometimes by plugging the USB cable into a wall adapter instead of using the computer to load. We'll be on holiday in Europe this summer, and I can find no answer to my question anywhere on

  • MS SQL SERVER Error: 262 on Windows 7 family

    A standard family Windows 7 as operating system.  Downloaded SQL Express and I try to create a new database.  Get the following error MS SQL SERVER error: 262. Do not know how to set different settings for users for permissions set dbenable? Any help