Welcome to the RareWire Community Board. Use the field below to add your own contribution or find answers in existing topics.
No se han encontrado topics similares.
+1
Respuestas
A few basic subwire questions for you
I'm working with subwires for the first time. They seem pretty cool and handy, but I just had some clarifying questions about how all the pieces fit together.
- If I want to use styles in my subwire, should I put them in the subwire or the superwire? Will one or both work? (And if both, are there any limitations or advantages?)
- When I'm pathing from a subwire, do I path relative to the subwire or the superwire?
- Why must I specify a target to play superwire actions? (Can you have multiple or nested superwires?) And is there an option other than backwards pathing to do so? (Like an alias that lives in the superwire or something?)
Most of these questions are me just being curious, since they're easily avoided or figured out, but I thought I'd throw them out there for the greater good and to confirm my assumptions.
- If I want to use styles in my subwire, should I put them in the subwire or the superwire? Will one or both work? (And if both, are there any limitations or advantages?)
- When I'm pathing from a subwire, do I path relative to the subwire or the superwire?
- Why must I specify a target to play superwire actions? (Can you have multiple or nested superwires?) And is there an option other than backwards pathing to do so? (Like an alias that lives in the superwire or something?)
Most of these questions are me just being curious, since they're easily avoided or figured out, but I thought I'd throw them out there for the greater good and to confirm my assumptions.
+1
Can I test Flurry integration within Fusebox for one of my apps?
I've got a flurry account, and I've created an tag in my app to capture an event. Just curious as I wait for the data to post if this can be tested within Fusebox, or if I have to actually publish the app.
+1
Respuestas
PUT to Parse.com?
Another parse.com question! I have been rolling along pretty well with retrieving data with parse.com (thanks John!)
My new questions is about updating an existing item in parse.com. The REST API specifies a PUT operation. From what I can tell, the Rarewire datasource tag allows POST and GET.
I tried PUT as an httpmethod, but didn't get a successful result.
I also tried curl from my terminal. I did a curl request with PUT to parse.com and it updated the item successfully. I did a POST with curl (all other info stayed the same) and it failed with a 404 error.
Can you point me in the right direction to do a PUT to Parse.com?
Thanks!
Steve
My new questions is about updating an existing item in parse.com. The REST API specifies a PUT operation. From what I can tell, the Rarewire datasource tag allows POST and GET.
I tried PUT as an httpmethod, but didn't get a successful result.
I also tried curl from my terminal. I did a curl request with PUT to parse.com and it updated the item successfully. I did a POST with curl (all other info stayed the same) and it failed with a 404 error.
Can you point me in the right direction to do a PUT to Parse.com?
Thanks!
Steve
+1
Tips on memory management
Do you have any best practices to handle memory especially given the iPad 1 is fairly limited.
Is there a way you can check available memory remaining? At the moment, it's only when my app crashes after loading a bunch of assets that I find out that it has run out of memory.
With a 'static' type app it is easy to find the limit and dial it back - with a dynamic app created with datasources it is not so easy to monitor as you can't be sure what is in the datafeed.
Any tips?
Is there a way you can check available memory remaining? At the moment, it's only when my app crashes after loading a bunch of assets that I find out that it has run out of memory.
With a 'static' type app it is easy to find the limit and dial it back - with a dynamic app created with datasources it is not so easy to monitor as you can't be sure what is in the datafeed.
Any tips?
+1
Respuestas
Setting clickdelay on a panel?
I made the assumption that clickdelay set to "1" would make it such that the panel the clickdelay is set on would not register a onclickup event until you had pressed on the panel for at least one second.
I am not seeing those results. It calls the onclickup event immediately.
Is my understanding of clickdelay flawed? Please help me understand the proper usage.
If I understand the usage correctly; I am also trying to set the clickdelay dynamically with a tag. Is that a valid approach?
Thanks!
P.S. What I am attempting to do: I have a menu that represents four different screens (four separate menu panels, one for switching to each corresponding screen. When you are on a specific menu/screen, my goal is to have an extended press (1 sec+) of the menu do a full refresh of the screen you are on.
I am not seeing those results. It calls the onclickup event immediately.
Is my understanding of clickdelay flawed? Please help me understand the proper usage.
If I understand the usage correctly; I am also trying to set the clickdelay dynamically with a tag. Is that a valid approach?
Thanks!
P.S. What I am attempting to do: I have a menu that represents four different screens (four separate menu panels, one for switching to each corresponding screen. When you are on a specific menu/screen, my goal is to have an extended press (1 sec+) of the menu do a full refresh of the screen you are on.
+1
Respuestas
Any idea what is making webviews return 404s unless it's the first launch of the app in Fusebox?
I've run into an extremely frustrating issue where the following happens:
- An action (tapping on a button) creates a webview and passes it the URL through a create tag parameter.
- The webview works perfectly, showing the relevant URL.
- Tapping on the button triggers the action again (deletes first webview, creates a new one with URL parameter) but this time webview returns 404
- Tapping on a sibling button (runs the same action, with a different URL in the create tag) returns a 404
- Closing the app in Fusebox (with the orange triangle) and relaunching it doesn't fix anything, still returns the 404
- Force quitting Fusebox, relaunching it from the home screen, reopening the app, and tapping the button to trigger the action is the only way to get the page to return as normal.
Here are things I've tried to troubleshoot:
- Check to see if the URL is returning the actual page. It always is.
- Set an alert in the action that returns the URL that I'm passing to the class via the create tag. It's always correct.
- Set an alert in the action that returns the actual URL attribute from the webview. This shows "nil" when the webview is blank. Even though I just assigned the URL to the variable I'm passing the webview.
- Also, I know this is hitting my server, because it has a unique "Page not found" page. Which makes the "nil" return even weirder.
Here's the relevant piece of code:
Any ideas?
- An action (tapping on a button) creates a webview and passes it the URL through a create tag parameter.
- The webview works perfectly, showing the relevant URL.
- Tapping on the button triggers the action again (deletes first webview, creates a new one with URL parameter) but this time webview returns 404
- Tapping on a sibling button (runs the same action, with a different URL in the create tag) returns a 404
- Closing the app in Fusebox (with the orange triangle) and relaunching it doesn't fix anything, still returns the 404
- Force quitting Fusebox, relaunching it from the home screen, reopening the app, and tapping the button to trigger the action is the only way to get the page to return as normal.
Here are things I've tried to troubleshoot:
- Check to see if the URL is returning the actual page. It always is.
- Set an alert in the action that returns the URL that I'm passing to the class via the create tag. It's always correct.
- Set an alert in the action that returns the actual URL attribute from the webview. This shows "nil" when the webview is blank. Even though I just assigned the URL to the variable I'm passing the webview.
- Also, I know this is hitting my server, because it has a unique "Page not found" page. Which makes the "nil" return even weirder.
Here's the relevant piece of code:
<platform device="iphone|ipod|androidphone">
<create class="tweetbox" target="BG" tweeturl="[var:weburl]" eventname="[var:eventname]"/>
</platform>
<platform device="ipad|androidtablet">
<sync>
<delete target="SCHEDULEPAGE"/>
<delete target="ATTENDEES"/>
<delete target="TWEETBOX2"/>
<delete target="SESSIONPAGE"/>
<create class="tweetbox2" target="LEVEL3" weburl="[var:weburl]"/>
<scroll page="2" target="TABLETPAGER" />
<alert message="[object:TWEETBOX2/tweetwebview.url]" />
</sync>
</platform>
<alert message="[var:weburl]" />
<alpha value="1" time="0" target="ATTENDEELOADING" />
Any ideas?
+1
Respuestas
Is is possible to paginate a pager at a width smaller than the width of the pager?
Kind of a tongue-twister title. Here's what I want to do:
I want to show multiple columns in a horizontal pager (think column browser in OS X Finder or Hootsuite) and I want each column to snap to the left side of the pager (think Excel, where you can't have have a cell halfway showing on the left side). I've set my pager to 100% width, horizontal orientation, and paginate on. I've got five panels inside my pager, each 320 pixels (much thinner than the iPad viewport). When I check out the result in Fusebox, it creates my pager with my first panel on the left side, but it adds an area of blackspace until my second panel appears (offscreen at xpos of 100%). It's snapping between the panels, but it's impossible to see both panels at once.
I guess I could sum it up with this: with paginate off, my pager is 1600 pixels wide (320*5), with paginate on, my pager is 3840 pixels wide in portrait (768*5).
Any tips? :)
(My theoretical shot at a workaround: roll my own paginating actions. "When X is triggered, scroll to Y" etc)
I want to show multiple columns in a horizontal pager (think column browser in OS X Finder or Hootsuite) and I want each column to snap to the left side of the pager (think Excel, where you can't have have a cell halfway showing on the left side). I've set my pager to 100% width, horizontal orientation, and paginate on. I've got five panels inside my pager, each 320 pixels (much thinner than the iPad viewport). When I check out the result in Fusebox, it creates my pager with my first panel on the left side, but it adds an area of blackspace until my second panel appears (offscreen at xpos of 100%). It's snapping between the panels, but it's impossible to see both panels at once.
I guess I could sum it up with this: with paginate off, my pager is 1600 pixels wide (320*5), with paginate on, my pager is 3840 pixels wide in portrait (768*5).
Any tips? :)
(My theoretical shot at a workaround: roll my own paginating actions. "When X is triggered, scroll to Y" etc)
+1
Respuestas
What are my platform tag options for Android?
I'm working on what will be my first Android app and testing it in Fusebox. What can I put in the device attribute of the platform tag?
+1
Respuestas
How to trap all onscrollto events
I have a pager which I want to call an event every page change.
I have the onscrollto attached to an immediate child and if I swipe to turn the page once a second, the event gets called, but if I page through faster, the event does not seem to get called (until I stop).
Is there a way to make sure the event is called every time?
I have the onscrollto attached to an immediate child and if I swipe to turn the page once a second, the event gets called, but if I page through faster, the event does not seem to get called (until I stop).
Is there a way to make sure the event is called every time?
+1
Ready to integrate with parse.com!
Ok...I am at a point where I am trying to figure out the best way to integrate my rarewire app with parse.com apis and I definitely need help with a starting point!
As I see it, I have two options:
1) REST API - but, I don't think I can setup the correct HTTP header info to make this work
2) JavaScript - I have heard that the Rarewire guys might have done this already; if so, I am hoping to "borrow" some example code to jumpstart my efforts :)
I would be happy to work from a "dump" of javascript that you have used in a rarewire project. No description is necessary. I am willing to work my way through it and ask specific questions if I get stumped.
Hope you can help!
Steve
P.S. I would love to see your Parse integration for Rarewire listed in the Parse.com "official 3rd party api" list that they have on their website!
As I see it, I have two options:
1) REST API - but, I don't think I can setup the correct HTTP header info to make this work
2) JavaScript - I have heard that the Rarewire guys might have done this already; if so, I am hoping to "borrow" some example code to jumpstart my efforts :)
I would be happy to work from a "dump" of javascript that you have used in a rarewire project. No description is necessary. I am willing to work my way through it and ask specific questions if I get stumped.
Hope you can help!
Steve
P.S. I would love to see your Parse integration for Rarewire listed in the Parse.com "official 3rd party api" list that they have on their website!
+1
Respuestas
Assigning a source to a datasource
If I assign a source to a datasource when I define the datasource, it works. If I leave out the source and assign it in an action, it doesn't seem to work. Is there a standard method of loading datasources?
This works:
This doesn't:
This works:
<datasources>
<datasource name="RSSFeed" source="http://defensesystems.com/rss-feeds/all.aspx" query="//item" providertype="xml" parsenamespaces="yes" />
</datasources>
<action name="boot" oninit="yes">
<alert message="[datasource:RSSFeed.dataSourceResultCount]"></alert>
</action>
This doesn't:
<datasources>
<datasource name="RSSFeed" source="" query="//item" providertype="xml" parsenamespaces="yes" />
</datasources>
<action name="boot" oninit="yes">
<assign property="datasource:RSSFeed.source" value="http://defensesystems.com/rss-feeds/all.aspx" />
<alert message="[datasource:RSSFeed.dataSourceResultCount]"></alert>
</action>
+1
Respuestas
What's the best way to do a flexible height text element?
I'm pulling data from a datasource and displaying data in a pager. All of the datasource elements are user-provided (from a web app) and vary widely between a short sentence and a couple paragraphs. Ideally, my text element would expand to hold the text with no extra space, but not cutting off any of the text. What's the best way to accomplish this?
+1
Respuestas
Gallery questions
These are either enhancement requests or undocumented options, but I have two gallery tag questions:
There's an onscrollto attribute, but is there an onscrolloff (actually this goes for pagers too)? This would trigger an action any time a the user budges the tile from its resting place.
Is there any way to put panels in a gallery instead of images? Similar to a pager, where all top-level siblings are scrollable objects?
Just wondering/requesting!
There's an onscrollto attribute, but is there an onscrolloff (actually this goes for pagers too)? This would trigger an action any time a the user budges the tile from its resting place.
Is there any way to put panels in a gallery instead of images? Similar to a pager, where all top-level siblings are scrollable objects?
Just wondering/requesting!
+1
Create/Develop for Android
Hey I am new to your site (and very new to app development), but will be attending your event next Wed. When I go into the app developer I cannot click on android as far as my platform settings are concerned. I have seen it mentioned on your site that you are working on developing Android-compatible software, but I have also seen that I should be able to test and create using an android- just not publish. But if I can't click android in the platform setting how is this possible...? I can access the simple example apps, but the fusebox wont seem to load the web source example. Any suggestions? Or any update on when this will be possible? Thank you
+1
Object within an object
Object within an object. Not supposed to work, but I am using it in an app I am building for a local high school. Question is should I be using it, why does it work and is it at risk for not working later?
Wire:
Wire:
Servicio de atención al cliente por UserEcho