From: Weston Weems
Quick question - if you use Safari3 in anything but an iPhone, do you
get anything? If you get a blank page, what does the source look like?
I'd be more than happy to check things out tomorrow if you post a URL.
Regards!
I am developing apps in .NET for the iPhone. I am using the ASP.NET
ajax controls. Unfortunately .NET adds a lot of extra code to the web
page which EDGE doesn't love. Once complete, I will turn off view
state and make other changes.to try and minimize the code.
Because of the FORM tags in .NET, there are issues we have to deal
with.
What I am doing is sort of building my own framework. I have a single
web page and .NET user controls that I dynamically load using the AJAX
UpdatePanel.
It looks like a native iPhone app just as much as the Javascript only
apps. The AJAX library also has the ability to do http calls without
the server postback as well, which I am not using.
Greg
body
, body > form
{
margin: 0;
font-family: Helvetica;
background: #FFFFFF;
color: #000000;
overflow: hidden;
-webkit-text-size-adjust: none;
}
body > h1
, body > form > h1
{
box-sizing: border-box;
margin: 0;
padding: 10px;
line-height: 20px;
font-size: 20px;
font-weight: bold;
text-align: center;
text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
text-overflow: ellipsis;
color: #FFFFFF;
background: url(iPhoneToolbar.png) #6d84a2 repeat-x;
border-bottom: 1px solid #2d3642;
}
What I've added to the CSS is the line that reads: , body > form
Like I said, I didn't get it fully working, but that's the issue
you're having with ASP.NET. I just decided to write my own master
page for my applications.
Good luck!
I create an ASPX form and remove everything except the first line. Add
the html to the page and put <%= variableName %> where you want to put
content.
In the code behind, I do the work and set variableName to the content
including the generated HTML.
for example:
I am putting an list of RSS entries into the iui list.
My aspx page has nothing but
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="GetFeeds.aspx.cs" Inherits="GetFeeds" %>
<ul id="stories" title="Posts">
<%= storyList %>
</ul>
In my code behind I create the <LI> elements. The StoryId comes from
the link on the calling page.
XmlNodeList xnl = xe.SelectNodes("channel/item");
foreach (XmlElement rssItem in xnl)
{
RssItem ri = new RssItem(rssItem);
storyList += "<li><a href=\"Story.Aspx?storyId=" +
ri.Id + "\">" + ri.Title + "</a></li>";
}
Since iui is calling GetStories.aspx from javascript, it works
perfectly. The ASP.NET engine renders and does the work. I am actually
calling a web service to get the feeds. Right now it's synchronous but
I plan to go asynch .
Thanks Joe!
On Jul 21, 10:44 am, "Weston Weems" <wwe...@gmail.com> wrote:
> yeah thats the conclusion I came to too... but ultimately, the way the pages
> and stuff are handled with js, I just opted to use AjaxPro, and populate
> pages on the fly. No server controls (eg, search page, results page,
> detailspage) and the searchpage will just first remove pages with an
> attribute I set ahead of time. Not ultimately how I would WANT things to
> work out, but probably far more efficient =)
> Weston
>