tag:blogger.com,1999:blog-4128549255969916400.post4603963009355736189..comments2023-10-17T04:25:21.366-07:00Comments on Lotus Notes: XPages : How do you do ? ( Part 1)Rishihttp://www.blogger.com/profile/16536022541896398201noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4128549255969916400.post-57174438294963010932009-12-13T17:04:16.585-08:002009-12-13T17:04:16.585-08:00Thanks Paul ! Initially I was searching in xpage b...Thanks Paul ! Initially I was searching in xpage blog but unfortunately missed somehow.Rishihttps://www.blogger.com/profile/16536022541896398201noreply@blogger.comtag:blogger.com,1999:blog-4128549255969916400.post-90637620119343402322009-12-11T01:08:25.180-08:002009-12-11T01:08:25.180-08:00http://xpagesblog.com/xpages-blog/2009/10/16/xpage...http://xpagesblog.com/xpages-blog/2009/10/16/xpages-things-to-be-aware-of-when-using-an-851-designer-with.html<br /><br />http://xpagesblog.com/xpages-blog/2009/12/4/things-to-be-aware-of-when-upgrading-your-85-xpages-applicat.htmlUnknownhttps://www.blogger.com/profile/12483092581265690047noreply@blogger.comtag:blogger.com,1999:blog-4128549255969916400.post-10933256458903768662009-12-10T21:18:53.686-08:002009-12-10T21:18:53.686-08:00Thanks Tim It's perfect!Thanks Tim It's perfect!Rishihttps://www.blogger.com/profile/16536022541896398201noreply@blogger.comtag:blogger.com,1999:blog-4128549255969916400.post-46051381666790275332009-12-10T19:36:28.769-08:002009-12-10T19:36:28.769-08:00Rishi, here's the approach we use:
1. Select ...Rishi, here's the approach we use:<br /><br />1. Select "Script Editor" instead of "Simple Actions" and just type in the client-side script.<br />2. Switch to the Source tab, and you'll see something like this:<br /><br /><xp:eventHandler event="onclick" submit="false"><br /><br /> <xp:this.script><![CDATA[alert("Hello World!");]]></xp:this.script><br /><br /></xp:eventHandler><br /><br /><br />3. If you then tried to load the page, you'd see the same error. So first we have to "wrap" the script tag inside two additional tags, which looks like this:<br /><br /><xp:eventHandler event="onclick" submit="false"><br /><br /> <xp:this.handlers><br /><br /> <xp:handler type="text/javascript"><br /><br /> <xp:this.script><![CDATA[alert("Hello World!");]]></xp:this.script><br /><br /> </xp:handler><br /><br /> </xp:this.handlers><br /><br /></xp:eventHandler><br /><br /><br />The good news is that the page will now load correctly whether the server is running 8.5.0 or 8.5.1. The bad news is that if you edit the script event from the Events pane again, it removes those additional tags, so you have to go back into the Source and add them back in again. Thankfully, you can edit any other properties of the control (including server-side events, if the control has a "dual event" - runs both client-side and server-side code - or has handlers for multiple events) and the tags will be left intact... you don't have to add those tags back in every time you modify the page. Just remember that if you want to make changes to the client-side event, it's best to just switch to Source and type the changes in there. To be honest, I do almost all of my XPage coding directly in the Source because this isn't the only behavior where I would lose more time because of Designer quirks than I'd gain by setting the same properties using the visual editor.Tim Tripconyhttps://www.blogger.com/profile/08751063518063724042noreply@blogger.comtag:blogger.com,1999:blog-4128549255969916400.post-62822747019412237132009-12-10T19:00:23.780-08:002009-12-10T19:00:23.780-08:00Thanks Nate!
So the way I've tried to run cli...Thanks Nate!<br /><br />So the way I've tried to run client side JavaScript is the correct way ?Rishihttps://www.blogger.com/profile/16536022541896398201noreply@blogger.comtag:blogger.com,1999:blog-4128549255969916400.post-47483624223320804172009-12-10T18:58:00.867-08:002009-12-10T18:58:00.867-08:00Unfortunately, there is an incompatibility between...Unfortunately, there is an incompatibility between the 8.5.1 client and the 8.5.0 server when it comes to client-side Javascript. You need to either use to the 8.5.0 Designer, or learn the SOURCE syntax for 8.5.0 in 8.5.1. I'll ask Tim to post a reply with details.Natehttps://www.blogger.com/profile/03837751900152163669noreply@blogger.com