Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.4 and comments



Title: Re: 5.4 and comments
I think your problem with using double-quoted name attributes inside of double-quotes in JS.  If you want to solve that, use single-quotes for your JS string.  I have had trouble with using a <webobject ... /> tag in JS, though.  I instead use <webobject ... ></webobject>
Charles Koppelman


On 10/30/07 4:31 AM, "Daniele Corti" <email@hidden> wrote:



2007/10/29, Mike Schrag <email@hidden>:
2007/10/29, Jeffrey Simpson < email@hidden <mailto:email@hidden> >:
We often use tags to pass values into a piece of _javascript_.  Will the tags
be parsed?

Sure!
The only case, where some problems occur (but probably it works) is

var myStr = "My Name is <webobject name="MyName" />";

in this case you should use <webobject name=MyName /> without quote.
Wait, are you answering for WO 5.4 or the WOLips validator. This sounds like the WOLips validator, which also sounds like a bug that you can't use name = "whatever" inside of _javascript_ quotes.  I honestly don't know for 5.4 -- I haven't tested this out.

Well, I used name="whatever" inside quote, and it worked in WO 5.3  (I've not 5.4), but I remember I used it also in another component and in the runtime (I don't remember the class, while generating the HTML) it gives an exception (Tag Not Valid if I remember, sorry but It was last year). After I remove the quotes it works perfectly.

ms

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden  <mailto:email@hidden> )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden  <http://lists.apple.com/mailman/options/webobjects-dev/email@hidden>

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: 5.4 and comments (From: "Daniele Corti" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.