Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

I'm a Mac

macrumors 6502
Original poster
Nov 5, 2007
436
0
I wanted to make an iPhone web application (or actual application) based off a a website that uses XML-RPC. Does anyone know if this is possible, and where I could find resources on how to do that in Dashcode or Xcode?

Thanks.

EDIT: So far, I've copied the html source code into dashcode, and rearranged it so it would be optimized for the iPhone, but the information won't submit. Do I just have to had the XML file that contains the API key to get it to work?
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
I'm not sure exactly what you mean by XML-RPC, but if you need to use XMLHttpRequest (http://en.wikipedia.org/wiki/XMLHttpRequest) from Safari or a Dashcode app you should be able to with the standard javascript conventions, like you would in "Big" Safari.

There are some limitations on how long javascript can run, if i recall correctly, so that may be a limited factor if you are wanted to get large chunks of data back, or the foreign system takes a long time to respond. You may be able to mitigate that with callbacks, but I am not entirely sure about that.

-Lee
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
from your other post it looks like you need to build that XML document in javascript, then send it as a parameter to an http POST request, likely using an XMLHttpRequest. There should be more documentation on the calling convention like what server and page that document should be sent to.

I think this is a better fit for a web page or dashcode widget than a full-blown app. There are probably ways to make http posts in cocoa, but javascript is probably more straight forward.

-Lee
 

I'm a Mac

macrumors 6502
Original poster
Nov 5, 2007
436
0
from your other post it looks like you need to build that XML document in javascript, then send it as a parameter to an http POST request, likely using an XMLHttpRequest. There should be more documentation on the calling convention like what server and page that document should be sent to.

I think this is a better fit for a web page or dashcode widget than a full-blown app. There are probably ways to make http posts in cocoa, but javascript is probably more straight forward.

-Lee

Does that mean I have to learn javascript?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.