- This topic has 7 replies, 3 voices, and was last updated 9 years, 11 months ago by Darshan Patel.
-
AuthorPosts
-
Darshan PatelParticipanthow can i reuse a part of screen on multiple pages??
like for ex a button.. such that if i change the text property of this button.. then it reflects everywhere…. how can i do this?
Paul_paulParticipantI asked this question long ago, you mean like a template that you can use for each page then if you make a change to the template it is reflected on every page. I have used this feature in Dreamweaver for websites and I expect would apply to apps if you design them there. I don’t believe this feature is available in MobiOne.
Brandon BatieMemberHi,
Stickleback is correct, there is not a way to do this in MobiOne like Dreamweaver.
Darshan PatelParticipantany possibilities of doing it in ME?
Brandon BatieMemberHi,
Sorry about the delay.Yes, you can reuse code and items in MyEclipse, it has a snippets area where you an copy anything and add that as a snippet and drag and drop that into you file.
You can even set variables in the snippet allowing you to easily change the final output if needed. I use them for a lot of elements and scripts.
I did a quick screen cast of coping some text, saving as a snippet and then reusing it. My mic wasn’t working so there is no audio to it.Hope this helps
http://www.screencast.com/t/YtgyJ46x
Darshan PatelParticipantwell it seems unuseful to me.. the same thing can be achieved via various ways…
what i wanted to reuse is elements that are on one screen into the other screens..
thanks anyways for trying.. i’l use some other workover for it..
Brandon BatieMemberHi,
Oh, sorry, I misunderstood the question. Not sure if these will help, but depending on how your project is set up you an use the JQuery to do some.
There is the clone method: http://api.jquery.com/clone/
Another is the load method, please note that this reuses a html file, not a single element. But I have found it useful in some cases.
$(‘#reuseSection’).load(‘reusablefile.htm’);
Darshan PatelParticipantthanks… but this also seems unuseful for my case… its okay… thanks again
-
AuthorPosts