Apple iWeb & HTML now doing my head in... please help :'

Page 1 of 1 [ 5 posts ] 

StevieC
Veteran
Veteran

User avatar

Joined: 30 Dec 2009
Age: 37
Gender: Male
Posts: 649
Location: Cupboard under the Stairs

07 Nov 2011, 10:29 pm

anyone had experience with Apple iWeb?

iWeb spits out .html files, but for one reason or another, i need .asp files.

for static content, simply changing the filename from html to asp does the job...

BUT... for active content ie the blog or photos, this causes the page to not work!! ! :evil: :(



yes, just by changing "photos.html" to "photos.asp" breaks the page (apple uses some kind of script to include the content, but i cant find any code js/css or otherwise that specifically looks for the presence of an html file)


this is really doing my head in... i cannot afford another server and i am stuck with the one i have for a few years. i dont want to have to use another authoring package as my site is due to go live in a few days. i have tried to use an asp page with an iframe to serve the html file but than the navigation and Google archiving breaks....


_________________
I'm a PC and Ubuntu was my idea.


My RSS feed:
www.steviecandtheplacetobe.net/rss.xml


Obres
Veteran
Veteran

User avatar

Joined: 13 Jul 2007
Age: 45
Gender: Male
Posts: 1,423
Location: NYC

07 Nov 2011, 11:13 pm

I'm not a Mac user but I do know that Lion will automatically change your file extensions based on the program you save the file in, without asking you and without allowing you to disable the option. Macs are for end users, not developers.



StevieC
Veteran
Veteran

User avatar

Joined: 30 Dec 2009
Age: 37
Gender: Male
Posts: 649
Location: Cupboard under the Stairs

09 Nov 2011, 12:11 am

nah, this isnt to do with filenames, not on the system explorer anyway.

its to do with the way that iWeb scripts the menu, photos and blogs, and that it is this scripting behavior that breaks when it is a "welcome.asp" calling the function instead of a "welcome.html".

im trying to figure out how this is even possible, so i can modify it so that it doesnt...


_________________
I'm a PC and Ubuntu was my idea.


My RSS feed:
www.steviecandtheplacetobe.net/rss.xml


curlyfry
Veteran
Veteran

User avatar

Joined: 13 Jun 2010
Age: 57
Gender: Female
Posts: 1,502
Location: Latitude : 45.373. Longitude : -84.955

13 Nov 2011, 10:21 am

I use a mac and ditched iweb for stk Webedit lite and using Komodo edit now with Firefox. The files simply would not translate correctly after I sent them to the server. Your better off going to W3schools.com and learning a bit of html, css and xml then you can pretty much do your own page from scratch or mod the iweb pages to translate correctly-cheers.



Last edited by curlyfry on 13 Nov 2011, 5:54 pm, edited 1 time in total.

matt
Veteran
Veteran

User avatar

Joined: 20 Dec 2007
Gender: Male
Posts: 921

13 Nov 2011, 1:31 pm

Obres wrote:
I'm not a Mac user but I do know that Lion will automatically change your file extensions based on the program you save the file in, without asking you and without allowing you to disable the option. Macs are for end users, not developers.
Absolutely incorrect in both cases. Mac OS X allows users to specify the file extension when saving, and the application, not the operating system, makes the determination about which extension to offer by default when saving. If an application is capable of saving in multiple different file types, the user can almost always specify in the application's preferences which extension to use by default. When saving, OS X also gives you the ability to change the extension directly in the box where you specify the file name. You can even save files without filename extensions. It is not like Windows where your ability to influence the extension is limited by a pop-up menu that lists which extensions you may choose from.

Windows is significantly more dependent on file extensions; Mac applications can open documents that have no extensions, by actually analyzing the content of the file or other information about the file to determine what type of file it is and how to handle it, but Windows applications generally have problems doing this.

iWeb, on the other hand, is a WYSIWYG(What You See Is What You Get) program that is used to definitely is made for end users, to allow them to lay things out without having to modify the HTML files by hand.

ASP stands for "Active Server Pages", which are dynamically generated(meaning what's displayed on the pages depends on different factors, like time of day, the browser requesting the page, et cetera). Plain HTML files are static pages, meaning they don't change, and whenever the pages are requested they always look the same. iWeb generates very simple static pages which should work just by uploading them to a server.

".html" is the most appropriate extension for iWeb pages. Microsoft's IIS server may not be serving them correctly by default. Microsoft has likely done this to encourage people to use Microsoft's own technologies for development and to make using third-party applications like iWeb more difficult.

Here are some instructions to enable IIS to correctly display static web pages(which will mean you don't have to make any changes in iWeb): http://brendan.enrick.com/post/IIS-7-No ... Files.aspx