• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using webobjects tags with javascript generated HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using webobjects tags with javascript generated HTML


  • Subject: Re: using webobjects tags with javascript generated HTML
  • From: Patrick Nuo <email@hidden>
  • Date: Thu, 18 Aug 2005 10:54:07 +0200

Hi folks,
thanks for the useful inputs. I had the sneaky feeling based on the
dynamic publishing site model of WebObjects that this can be the
reason why it doesn't work.
however, one thing I don't see right now is that how to divert the
HTML fetching from the server without running js on the client
browser?

Up until now I've handled this with a js call "navigator.userAgent()"
inside the HTML file. but if I have to create the static HTML files on
the server and call them according to the client platform/supported
java version does anybody has an idea how to do that?

after a brief research I've found SSI-technology (server side
includes) but I'm not sure if this is the right way...

Thanks again
Patrick



2005/8/17, Markus Ruggiero <email@hidden>:
> Java script executes on the client, it runs when the page is being rendered
> by the browser. At that point there is no WebObjects around. So you put part
> of a WO tag into your HTML and hope the other part is being filled in with
> Java Script?  No way.
>
> Suggestion: put both variants fully coded into the HTML file, enclosed them
> with a div and have JS just show/hide the relevant one
>
> ---markus---
>
>
> On 17.08.2005, at 13:12, Patrick Nuo wrote:
>
> Hi everyone. I have the following problem that gives me headaches nowadays:
>
> we have a java applet inside an HTML that uses webobject parameters.
> And because we support 2 different java versions for the windows and
> OS X platforms somehow I have to separate the applet calls for
> browsers running on PCs and Macs.
>
> Problem is, for some reason the javascript document.write() commando
> doesn't seem to generate correctly the webobject part of the code. The
> following error comes for any kind of webobjects tag:
>
> WOHTMLFormatException: while parsing .html file. There is an
> unbalanced WebObjects tag...
>
> I've tried goofing around with single and double apostrophes and
> backslashes according to the javascript syntax for dynamic contents
> but this error just keeps coming, nothing helped.
>
> if someone has an idea why this isn't working or maybe an alternative
> solution (i.e. separate the java applet calls according to browser
> platforms: Mac or Windows) that would be mucho appreciated
>
> Thanks for all the help in advance.
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
>
>
>
> Markus Ruggiero
>
> rucotec consulting and technologies    email     mailto:email@hidden
>
> rucotec GmbH                           web       http://www.rucotec.ch
>
> Steinentorstrasse 8
>
> 4051 Basel                             Mobile    +41 (0)79 508 4701
>
> Switzerland                            Phone/Fax +41 (0)61 271 4990
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: using webobjects tags with javascript generated HTML
      • From: Markus Ruggiero <email@hidden>
References: 
 >using webobjects tags with javascript generated HTML (From: Patrick Nuo <email@hidden>)
 >Re: using webobjects tags with javascript generated HTML (From: Markus Ruggiero <email@hidden>)

  • Prev by Date: Re: Runtime.getRuntime().exec()
  • Next by Date: Re: Unicode trouble
  • Previous by thread: Re: using webobjects tags with javascript generated HTML
  • Next by thread: Re: using webobjects tags with javascript generated HTML
  • Index(es):
    • Date
    • Thread