From: federico m. <fed...@gm...> - 2012-05-18 15:23:43
|
Dear list, I would like to ask you some help . I'm trying to add a call to showSingleMetadata function on my.html page with this snippet of code and I can't visualize nothing more than the original page. <div onClick="gn_showSingleMetadata('11111');"> I think that the problem is that my.html page is generated by xsl transformation. MyLinkPage.xml page is like that <myLinkPage> <*content*> ..... <div onClick="gn_showSingleMetadata('11111');"> ..... </*content*> </myLinkPage> page.xsl is like this <xsl:template name="*content*"> <xsl:call-template name="formLayout"> <xsl:with-param name="title" select="/root/gui/page/title"/> <xsl:with-param name="content"> <table><tr><td> <xsl:copy-of select="/root/gui/page/content/*"/> </td></tr></table> </xsl:with-param> </xsl:call-template> </xsl:template> In my config.xml I have something like this: <service name="myLinkPage"> <output sheet="page.xsl"> <xml name="page" file="xml/myLinkPage.xml" /> </output> </service> When I click on the link I can see that the call http://localhost:8082/geonetwork/srv/en/metadata.show.embedded?id=11111&currTab=simpleworks properly and it gives the right reply, but the problem is that I can't visualize that response inside myPage. Hope it's clear. Many thanks for any help, Regards, Federico |
From: Jesse E. <jes...@ca...> - 2012-05-21 06:12:51
|
It more or less sounds like a Javascript problem to me. I am not so familiar with the showSignleMetadata function but it probably is looking for a specific ID on a specific div or span element. I would debug the issue in chrome of firefox and see what the method is doing. Jesse On Fri, May 18, 2012 at 5:23 PM, federico marottoli < fed...@gm...> wrote: > Dear list, > > I would like to ask you some help . > I'm trying to add a call to showSingleMetadata function on my.html page > with this snippet of code and I can't visualize nothing more than the > original page. > > <div onClick="gn_showSingleMetadata('11111');"> > > I think that the problem is that my.html page is generated by xsl > transformation. > > MyLinkPage.xml page is like that > <myLinkPage> > <*content*> > ..... > <div onClick="gn_showSingleMetadata('11111');"> > ..... > </*content*> > </myLinkPage> > > page.xsl is like this > > <xsl:template name="*content*"> > <xsl:call-template name="formLayout"> > <xsl:with-param name="title" select="/root/gui/page/title"/> > <xsl:with-param name="content"> > <table><tr><td> > <xsl:copy-of select="/root/gui/page/content/*"/> > </td></tr></table> > </xsl:with-param> > </xsl:call-template> > </xsl:template> > > > In my config.xml I have something like this: > > <service name="myLinkPage"> > <output sheet="page.xsl"> > <xml name="page" file="xml/myLinkPage.xml" /> > </output> > </service> > > When I click on the link I can see that the call > http://localhost:8082/geonetwork/srv/en/metadata.show.embedded?id=11111&currTab=simpleworks > properly and it gives the right reply, but the problem is that I can't > visualize that response inside myPage. > > Hope it's clear. > > Many thanks for any help, > Regards, > Federico > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > GeoNetwork-devel mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel > GeoNetwork OpenSource is maintained at > http://sourceforge.net/projects/geonetwork > |