Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2009, 01:28 AM
Registered User
 
Join Date: Mar 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default Need to generate preview of the images on hovering a search items

Hi

I have a web part(search core result web part) where I want to populate images when the user hovers on each of them.
I have all these images in my list/picture library and also in my local drive which i created programatically .I need help in XSLT/javscript where i can populate this images dynamically as and when user hovers on them

I managed to do upto this
</script> <span class="srch-Icon">
<input type ="image" id="i1" src="http://a2ms04866:3000/Pdfimage/_t/pd...Fsmall_gif.jpg" onmouseover ="this.src='http://a2ms04866:3000/Pdfimage/_t/pdf%5Floader_png.jpg';" onmouseout ="this.src='http://a2ms04866:3000/Pdfimage/_t/pdf%5Ficon%5Fsmall_gif.jpg';"/>
</span >
for one iamge and similarly i need to do this for multiple images as and when user hovers on the links while searching.

thanks in advance
Jagadish
 
Old March 16th, 2009, 03:39 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Please read your post, pretending that you have no inside knowledge of the problem, and ask yourself if you could supply a solution with the data given?
If you are struggling to get the required output then you need to show some samples of the XML, the XSLT you currently use, the desired output and how this differs from what you currently get.
__________________
Joe
http://joe.fawcett.name/
 
Old March 16th, 2009, 04:19 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Remember that your XSLT code simply generates HTML. Do you know what HTML you want to generate? If not, then you have an HTML design problem rather than an XSLT problem, and that means that this is not the right forum. If you do know what HTML you want to generate, then tell us, and explain where your difficulty lies in generating it.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old March 16th, 2009, 04:58 AM
Registered User
 
Join Date: Mar 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

In my out of the box web part(search core result web part) the rendering is done thru XSLT.I need to customise it so that the above requirement suits me.
Currently My webpart displays pdf documents based on my search keyword.Now the requirement is that to display corresponding images of the pdf documents which i have stored in my sharepoint site(in a picture librray).
My only question is that is there any way we can display the hover function via XSLT dynamically.I did thru some hardcoding which is certainly not the right way of doing things.
If this is not the correct forum then please let me know where I need to put up also do let me know if you need the complete XSLT for this webpart which anyway one can get in any MOSS site.


Thanks
J
 
Old March 16th, 2009, 05:18 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I'm sorry that you didn't understand my previous response. I'm not sure what part of it you didn't understand. If you want help with XSLT coding then you need to tell us what output the XSLT is to produce. Typically that output will be HTML. If you can't tell us what HTML you want to produce, then we can't help you produce it.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
Image preview msbsam ASP.NET 2.0 Professional 1 April 16th, 2008 12:31 AM
Generate preview page from ASP.NET form rdove84 C# 0 October 9th, 2006 04:09 PM
dynamic search, images from database , hyperlinks ishh_sh VB How-To 0 December 15th, 2004 08:10 AM
displaying 6 items only having 20 items Lakshmi KS VB Components 1 February 17th, 2004 10:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.