Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 September 15th, 2008, 04:12 PM
Authorized User
 
Join Date: Aug 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well my project is like this. I have a search bar, I make the search on a server witch is not local, it is on another computer. I make the search, the server returns me some thumbnails based on that search. I open the image with another request when I click the thumbnails, and then I start to do my work on that image. Because nobody told me that I have to do my zoom in/out in javascript, I made it in C#(my mistake). And when I stared to make the panning I realize that in C# I don't have Mouse events and I have to do it in javascript. I send from C# my coordinates from the zoom, end started to do my panning, and when I needed to do my request for the new panned image I realized that Ajax xmlhttprequest doesn't allow request for external servers.
And I use url var to send to my server my new panned coordinates to know witch image to send me. And that image I have to put it in an asp control.
The problem is how to I make this request correctly?
I don't have no idea. I google it and no success. The code posted is my entire code in javascript.
Thank You.

 
Old September 15th, 2008, 04:30 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

AH! Now I see the issue. External sources.

But you *can* get an IMAGE from an external source.

If that external server can give you the newly zoomed image, *ONLY*,
then you could make this work.

That's basically how Google maps work when you embed one on your own site.
 
Old September 16th, 2008, 02:52 AM
Authorized User
 
Join Date: Aug 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello.
What do you mean by: that external server can give you the newly zoomed image, *ONLY*, then you could make this work.
On every zoom in/out or pan my server delivers me a new image, cut from the original image. Practical on every request, I what a new image based on that coordinates.
It is possible?
Thank you.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
Copy kodak image edit control's image to clipboard vishwanathduddilla Visual Studio 2005 0 November 3rd, 2008 10:10 AM
set image on <asp:Image> stored in DataBase myself.panku ASP.NET 2.0 Professional 1 August 11th, 2008 10:41 AM
Document Image Processing (DIP) - changing image f ALcom Access 0 March 27th, 2006 06:10 AM
displaying an image from file stream into an image sanjeet ADO.NET 0 September 23rd, 2005 10:28 AM





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