Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 19th, 2005, 7:23 PM   #11
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 4 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
Ok, so what do you see? What exactly is going on? Is it loading the first one but not swapping out properly? Is it not even bringing up the first one? If so, are you at least seeing a box appear where is should be? Also, what browser (and version) are you using? It might make a difference (though I'm not sure yet). Anything you can think of to tell me about what you do and don't see happening might help. We'll figure this out if it's the last thing we do! :p

EDIT: Since I first made this post I've done some research and some experimentation. The methods I've described definitely work so it's one of three other things..

One: There's a problem with syntax somewhere. If that's the case we just need to find it and fix it.
Two: There's something funny going on with your files or your files names. If that's it, I can't help ya.
Three: Your browser is to blame. Most likely the iPIX plugin.

Having said that, try the link below. I've got it set up just how you described, and it works in both Mozilla 1.7 and IE 6 after I installed the plugin.

http://www.u.arizona.edu/~aef1/iPIX/swapExample.html

If it works, then we're up against one of the first two possible problems. If not, then it's probably the third, your browser/plugin. Give it a try and let me know how it goes. Oh, and be patient, if you see the iPIX logo that's good. It might just need a moment or two to decompress, depending on the speed of your system.
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?

Last edited by EdSalamander; Jan 19th, 2005 at 8:17 PM.
EdSalamander is offline   Reply With Quote
Old Jan 20th, 2005, 2:14 AM   #12
loztboy99
Newbie
 
Join Date: Jan 2005
Posts: 12
Rep Power: 0 loztboy99 is on a distinguished road
I'll have a go when I get back from work,
The first pic loads and i am sure its not my browser as i also updated my java virtual mahine for the browser.
When I get back later today I will have a serious look at my syntax, chat later.
loztboy99 is offline   Reply With Quote
Old Jan 20th, 2005, 1:14 PM   #13
loztboy99
Newbie
 
Join Date: Jan 2005
Posts: 12
Rep Power: 0 loztboy99 is on a distinguished road
GREAT NEWS

I got it to work!!!!!!!
The way your code works makes so much sense,
the only thing i was wondering is what is the function SymError() and function SymOnUnload() in your source mean and do, I left that out and it works great.

THANKS SO MUCH.
loztboy99 is offline   Reply With Quote
Old Jan 20th, 2005, 1:37 PM   #14
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 4 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
Egg-cellent! Glad to hear it's working for you now.

As for the SymError() and SymOnUnload() functions, those aren't my doing. I never wrote anything of the sort. Are you using Norton Internet Security by any chance? If so, that's your culprit. Aparently, if you use it's firewall, it like to tag those scripts to the beggining of your pages. A google search for either of those two functions will give lots more info on the matter.
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?
EdSalamander is offline   Reply With Quote
Old Jan 21st, 2005, 4:24 PM   #15
loztboy99
Newbie
 
Join Date: Jan 2005
Posts: 12
Rep Power: 0 loztboy99 is on a distinguished road
I am really enjoying working with the code you helped me with, making an interface to present the pics in. Was wondering if there is a javascript that makes the following possible:

When user clicks on the email symbol it opens a tiny window that has space for and email address, space for some text to be written and automatically places a link for the ipix site so that the user can send it on to a friend almsot like a ' i saw this and thought you might like it '

any ideas?

I am gonna search the web and see if there is any script out there.
loztboy99 is offline   Reply With Quote
Old Jan 21st, 2005, 6:03 PM   #16
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 4 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
Nothing comes to mind offhand, not with JavaScript anyway. You're getting into server-side scripting now (that's prolly the way I'd do it). There's the "mailto:" function, that's JavaScript, but it won't really do what your trying to accomplish here (I rather dislike mailto anyway). I know you're only just getting started with JavaScript, but if your feeling ambitious enough, start looking in to PHP too. PHP is one of the most popular server-side scripting languages right now.
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?
EdSalamander is offline   Reply With Quote
Old Jan 24th, 2005, 3:43 PM   #17
loztboy99
Newbie
 
Join Date: Jan 2005
Posts: 12
Rep Power: 0 loztboy99 is on a distinguished road
Hey sorry to bother you again,
was wondering you gave me the following code for when I click to change image : <a href="#" onclick="change('image2.ipx');return false;">Image 2</a><br>

What I want to do is firsly put a graphic there but I keep getting a purple box around it and secondly I am not sure how to position the javascript in my layout so that the graphic would go where i want it on the page.

any ideas?
loztboy99 is offline   Reply With Quote
Old Jan 24th, 2005, 5:10 PM   #18
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 4 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
Hmm.. That purple box is probably a border. Make sure you have border="0" in all your <embed> and <object> tags. That should take care of it.

As for positioning, since we're using the innerHTML function it doesn't matter at all where your JavaScript is, it won't change where the viewer appears. Instead, move the <div> tag that's holding the viewer around. If you remember, the change() function is replacing everything in <div id="iPIX"></div>. This tag isn't actually part of the iPIX, it's just holding it. When change() is called, it replaces all the code inside that <div> tag to the code needed for the new viewer. So, moving the container that's holding the viewer will move the viewer, even if change() is called and the viewer is swapped.

EDIT: Ah, looking back I see the part about how you want a graphic there first. I assume you mean you've got an <img> in there that you latter have swapped out. If that image is also a link, then you'll definitely see a purple border around it unless you set it's border property to zero. <img src="mypic.gif" border="0" etc...>
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?

Last edited by EdSalamander; Jan 24th, 2005 at 5:14 PM.
EdSalamander is offline   Reply With Quote
Old Feb 20th, 2005, 6:29 PM   #19
loztboy99
Newbie
 
Join Date: Jan 2005
Posts: 12
Rep Power: 0 loztboy99 is on a distinguished road
Hi EdSalamander

I am here to bother you again, by the way thanks for putting that post for the circles for me, I messed a wee bit with it but went another direction. So what i wanted to ask you was two things.

1. In the code you gave me for loading the images I wanted to know if it would work with an applet, I tried but to no avail, the code for a ipix applet looks like this:

<applet code="IpixViewer.class"
archive="IpixViewer.jar"
align="baseline"
width="320"
height="240"
name="IpixViewer">
<param name="URL" value="full_apt1_lounge.ipx">
<param name="BackgroundColor" value="#20ff00">
<param name="SpinSpeed" value="-5">
<param name="SpinStyle" value="flat">
</applet>


2. The next thing wanted to ask you was and I now it is not javascript but just taking a chance you may no the answer, When the page loads that has the ipix pic in the ipix loads quicker than the interface, now I am not sure if it is just down to the way that I sliced the interface or not. Basically the ipix is loading before the rest of the webpage.


If you have any thoughts on these i would appreciate it.
hope this finds you in good spirits
cheers
loztboy99 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC