Re: [Instrumentelem-developer] Plugins..
Brought to you by:
francesco-lelli
|
From: Alimur R. <ch...@gm...> - 2009-08-05 12:35:29
|
Hi Navid, I am having a tough time to figure out how to make the proxy working. I found some different solutions on the web but couldn't make any of them working. Here are some points based on what I have understood so far: I don't think we need to set-up a proxy server. http://www.daniweb.com/code/snippet494.html# <http://www.daniweb.com/code/snippet494.html#%20> This link has an example of a PHP proxy for using cross domain ajax script. I found some other solutions similar to this. It looks like a good solution but unfortunately I never worked with PHP and don't know how to make this example useful for us. *Then Sohrab can load them into the environment. Not to forget, for the setParameters instruction, since the dataType is also being generated on the fly,* I didn't exactly understand what you mean by setParameters Instruction. The way I imagined it is like this: The service will provide a list of available commands as "PlugIn" XMLs (similar to the generic template you showed me, which I know is called VID) to the UI at the time when the UI loads. Using these plugins, the UI will generate the "visual" plugins inside the UI. The commands will allow some parameters of some particular types. * Alimur has to develop the VDT on-the-fly generation (similar to the VID generation), and Sohrab has to develop similar initFromText in VDT.js as well to make it work for setParameter.* "VDT on-the-fly generation" - it is not clear. I talked to Sohrab yesterday and I think he also has some confusion. Currently I am able to generate arrays containing the VIDs for the available commands I get from the device, in my index.html. In the mean time, I still have some things to do in the server side and for that I am working with Krzysztof's codes. Hope you are enjoying over there :-) take care. -- Alimur 2009/8/3 Navid Ahmadi <ah...@us...> > Good Job!, > > Alimur, Did you get the Proxy working? it has to be working to be able to > connect AgentWeb project to IE project. Right? > > > The next Step: > Sohrab, Alimur is generating some VIDs(Visual Instructions) on the fly, > which are basically the instructions to load inside the programming > environment so that End-user can control the device(Device=Lego now). Now, > instead of having these VIDS in XML files, we have the XML text in memory. > Therefore, we need another init() method in VID that loads the XML text as > an XML doc and passes it to the parseVIDDefinition mehtod. There is no need > for overloading. Sohrab can create a method like initFromMemory(XMLText). > Then You can both sit together and create an instance of the element to see > if the instruction (plugin) is well generated. Look at the VIDTest file as > an example.Then Sohrab can load them into the environment. Not to forget, > for the setParameters instruction, since the dataType is also being > generated on the fly, Alimur has to develop the VDT on-the-fly generation > (similar to the VID generation), and Sohrab has to develop similar > initFromText in VDT.js as well to make it work for setParameter. > > I am excited to see the instructions loaded automatically into the > programming environment of end users. > Navid > > > On Aug 3, 2009, at 3:20 PM, Alimur Rashid wrote: > > Hello Navid, >> >> I am working on plugin generation for your UI. I was having some >> difficulty working with the code you gave me. Finally, it works, I had to >> modify the regular expression. >> >> Now, I have an array containing all the plugin XMLs, customised for each >> of the command I get from the SOAP response. >> >> I think it's time for me and Sohrab to sit together and try to test it >> with your UI. >> >> What do you think? >> >> Take care. >> >> -- Alimur >> > > |