|
I need to have a small popup appear when the user hovers the mouse over a certain part of an image. I actually need several different popups - one for each region of the image.
Is this possible? Can someone point me in the right direction?
J
"You can get anything you want at Alice's Restaurant."
|
|
|
|
|
It wouldn't be that difficult to have a popup display itself if your regions are square or rectangle. Polygons would require a more advanced algorithm for determining whether the mouse is within the region. However you could probably find C++ code for that algorithm somewhere even on CP maybe and just simply port it to Javascript.
So this would be your first steps:
1) Determine if you image regions required are polygonal or square/rects
2) Search for algorithm for determing whether a point is within an irregular region or polygon or seomthing to that effect.
3) Create your popups dynamically using innerHTML or hardcode them into your HTML.
4) Show and hide your popups using DOM's 'visibility' or 'display'
Have fun.
Cheers!
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Hi guys, is it possible to send an http post from a client to a server machine using javascript?
For example how can I send a post containing some querystring back to the server from the clients browser?
Thanks!!
Senkwe
What's the difference between a C++ programmer and God? God knows he's not a C++ programmer :
anon
|
|
|
|
|
I believe if you want any data sent to a CGI script via POST you must encapsulate your form data with form tags. There is a submit() which could be called to programmatically send data to a script on the server, instead of having the user click Submit button. There may be a hack around this i'm not sure off the top of my head, i'd have to think about it for a while.
If sending data to the server doesn't require POST you can use GET method and send some data to a script on the server whether it be stored in a variable or cookie.
var temp = getCookie('my_cookie', document.cookie);
for(var i=0; i<12; i++){
if(temp==i)
location.href="index.php?my_value="+temp;
}
What exactly is it your trying to accomplish??? Maybe i can figure something out for you.
Cheers!
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Well interestingly enough I'm trying to retrieve cookie values and have them sent out to a server as part of a query string. Problem is, I don't know javascript and don't really want to have to learn it. I assumed that there would be similar code snippets out there that I could use but the ones I've seen look hackish. By the way, I want to read the whole cookie, not just specific values.
The method you've shown above though, with "location.href", does that use POST under the covers?
Thanks!
Senkwe
What's the difference between a C++ programmer and God? God knows he's not a C++ programmer :
anon
|
|
|
|
|
Senkwe Chanda wrote:
The method you've shown above though, with "location.href", does that use POST under the covers?
No i'm pretty sure it's GET because the values would be part of the URL.
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
You can use forms , and submit using Javascript.
What you are sending is accessible from server side.
|
|
|
|
|
Hi,
I'm looking for a web site like code project, but for web desing ( CSS's, java script goodies, ...).
Can you tell me one cool site ?
Thanks
|
|
|
|
|
I know a site that isn't as diverse as here but does give some excellent examples of what can be achieved with Javascript and CSS. It's the best web site interface I've ever seen.
www.youngpup.net[^]
Live to ride. Ride to live.
|
|
|
|
|
Anybody knows zipping algorithm in ASP?
or how to write file on server through applet (applet is downloaded from the same host machine , codebase is same host)
I want to create a zip file dynamically using an applet on net and save it on server machine
The flow is like this:
client selects some files from server and pass it to an applet embedded in bowser (Applet is selected coz it is the only way to process on client side )
Applet processes it and make zip out of it and write back to server
But the main problem is applet cant write back to server directly
so I am using applet-javascript-ASP chain
but by this I am not able to use ziping code and just the processed binary data I am able to send to ASP which then create new file for every request and write data in it ; but then I am not able to zip it
Can anybody help me out?
yogini
|
|
|
|
|
I use C# to develop a web embed application, and I find that using WebClient is very easy to raise a web request and get the response. But I don' know how to set the TIMEOUT property(or something like that) to prolong the request time.
|
|
|
|
|
Hi, everyone!
I want to invoke a client side execute program through
a link in the web page. Please notice that it is a client
side program and not a server side one. For example, when clicking
a link pointing to a .rm file on the server, RealOne player on
the cilent side will be invoked.
Are there some sample codes?
Thanks in advance,
George
|
|
|
|
|
You cannot run EXE file, it will break security, but if you mean running a program associated with some file, then just place a link. For RealPlayer, just put a link to your RM file on the server and when user clicks it, the player will pop and start playing (of course if it is installed)
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Thanks, Philip buddie!
How can I register a new file type for my specific
application? Are there some materials for me to
reference?
regards,
George
|
|
|
|
|
George2 wrote:
when clicking
a link pointing to a .rm file on the server, RealOne player on
the cilent side will be invoked.
That's what is automatically done already, thanks to the .rm file association with the RealPlayer. You don't have anything to do. Of course, for all of this to work, the client must have RealPlayer installed. Otherwise Internet Explorer will prompt the client with the download box.
|
|
|
|
|
Thanks, .S.Rod. buddie!
George
|
|
|
|
|
I have PWS installed and I'm trying to preview a simple ASP .NET page. Since I only have Win98, I can't use Web Matrix's built-in server. So I will have to use IIS, which comes with the NT 4 Option pack for Win 95/98. My question is: how do I set up an IIS app for the .NET page? I heard that IIS apps are administered through the IIS MMC snap-in. But the IIS snap-in isn't listed in the list of available snap-ins. How do I register/install it????
Thanks
/jdunlap
|
|
|
|
|
Either you are a genius, or a bit confused. IIS only runs on Windows NT/2000/XP/2003. It does not work on Windows 98.
That is why they made PWS. Windows 98 is not a server product.
i.e. You cannot get the MMC IIS snap-on in Windows 98 because IIS does not work on Windows 98.
The NT4 Option Pack is exactly that. An option pack for Windows NT4. Not Windows 98.
What you need to do is get hold of Windows 2000 (or Windows NT 4 if you insist.) Then you can run IIS locally and do all those nifty bits.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
|
No, Windows 98 is not a server OS; yes, it can run scaled-down versions of some servers, including MTS. Whether that includes IIS I don't know. I only know that the NT Option Pack has all the IIS dlls.
|
|
|
|
|
I just delevop a project using webservice,there are more than one webservice(.asmx file) in my project,how do i write the .disco file to let me refer these webservices
in other project?
thank u in advance!
|
|
|
|
|
I have an application that will execute a command on a server and return the results of the command to the browser. I want to be able to pop up a web page with the results. I have 2 questions.
1. How do I open the second window from C#?
2. How do I size the new window so it is smaller that the orginial window?
Thanks
Gary
|
|
|
|
|
gmonk wrote:
1. How do I open the second window from C#?
2. How do I size the new window so it is smaller that the orginial window?
C# is a Server Side language.
You need to use JavaScript to control the Client Side.
You can use C# to output your JavaScript which is then run on the CS.
e.g. mycontrol.Attributes.Add("onclick", "window.open(\"newwindow.aspx\", \"width-100; height=100;\")");
To control the window you use the window.open method in JS.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
I already have a view in SQL2000. How can I use that query to return and display in Crystal? Any basics out there for me?
Thanks
|
|
|
|
|
Hi,
I'm trying to update a progress bar with the load progress of a webpage. On my form I have a webbrowser control and a progress control. I'm trying to use the ProgressChange event but it fires for every item that has to be downloaded (images, etc). So when the page starts loading after the first item completes the progress bar is finished even though most of the page is still loading. My question is how do I know what the progress is for the entire page instead of simply an item?
I tried posting this in the C# forum, but they said it was a question better suited for this forum.
Many thanks in advance.
- monrobot13
|
|
|
|