Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images switch to different locations 3

Status
Not open for further replies.

danielh68

Technical User
Joined
Jul 31, 2001
Messages
431
Location
US
Hi.

I'm developing this site at At home, whenever I visit it, the page never loads the images correctly. For instance, one of the images in the "dog" product table will be replaced with the top banner -- a distorted version of the banner because it conforms to the dog images dimensions. Anyhow, when I click refresh everything goes back to the way it should be: normal. The strandge thing, is when I'm at work and visit it, it's perfect everytime. My work does have a DSL, however. So, my question is: is there something wrong with my code? Is this normal? Does it have to do with speed? A couple things I do know, I use both IE 6 at home and work; and, I have never had this problem with other sites I have designed. Any suggestions?

Thanks a bunch,
danH
 
Hi Daniel!

I had similar problem once, but it only occured while developnig site. I thought that it happened because of JavaScript. But it disappeared by itself.

Now looking in your code...
You use DIV tags to place both of your central images (left_doghouse.jpg and right_doghouse.gif). I would remove it (DIV tags) to see if it solves the problem. You see, it's a bit confusing that your left image uses right alignment and right image uses left alignment... I understand why you do it but I'd suggest to rebuild it in any other way.

Say if it happens or not! Good Luck! :-)
 
Thanks for the input, Eugene. I will see what happens as the site progresses.

Much appreciated,
danH
 
Eugene,

By the way, I remember you mentioning .asp in a couple of posts. Are you very familiar with it? The reason is, I'm developing our company site and I have a few asp forms that work just fine. However, my boss said he would like the info sent via ASPmail to display in categories. Much like this:

Lead 1: Sam Johnson
Lead 2: Darin Murdock

instead of what I currently have, which is:

Sam Johnson
Darin Murdock

Can you point me to some resource that has code similiar to this, that I may use? Or, is it easy enough for me to implement? I'm just curious. If you don't know, not a big deal. Thanks in advance.

--DanH
 
Daniel, I'll readly try to help you but the only (and I hope very small) problem is that English is not my native language (and I'm sure it's seen from the posts) - I just don't understand what you have to do... :-(

I understand that it deals with e-mail sending (or receiving, or both?). Who sends e-mails and who receives it? Where will info appear? What is the relationship between information (names, persons) and categories? What do categories stand for? Sorry, it must be too much but I just want to be clear. ;-) Good Luck! :-)
 
Hi Eugene,

Well, here's a form that I have done at C:\Work\OptiWebsite\pg_core\gosat_form.asp

Currently, when the form is filled and sent to our sales people, the information in their email is displayed in a vertical row without the categories seen on the web form.
Much like this:
----------------------------------------------------------
Mr. Somebody
technician
Media Masters
PO Box 213
Fresno Ca.
96352
USA
588-683-7898
55
mrsomebody@hotmail.com
Hi, I want to know more about your product. Can you send me info?
----------------------------------------------------------

I would like the email to be dislayed to the sales people like this (below):

----------------------------------------------------------------------------------------------------------------------
Name: Mr. Somebody
Title: technician
Company: Media Masters
Address: PO Box 213
City: Fresno Ca.
Postal Code: 96352
Country: USA
Phone#: 588-683-7898
Ext#: 55
Email: mrsomebody@hotmail.com
Website: Message: Hi, I want to know more about your product. Can you send me info?
----------------------------------------------------------

Do you know what I would need to do in my .asp document to accomplish this? I hope this helps clarify things. Let me know if you have any suggestions. Thanks a bunch.

Best Regards,
DanH
 
Where do you get the values for "Mr. Somebody" etc, as they must be a variable of some kind so you just need to edit your code find this, for example:-

strName

and you will need to put something along the lines of

Response.Write"Name: " & strName

then repeat for each of the other values.

Else post your page code so we can pick out the relevant section of code.

The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Hi Dan,

Now it's MUCH clearer (wrong word?) ;-)
Just last thing to know... Visitors fill out the form on a web page, than press Submit (or whatever)... What is the action of the form - .asp script or directly to e-mail? It seems that to .asp script. But how is the data sent to sales people? Asp scipt sends it?

So if I understand right, you have next:

1) user sends form to .asp script;
2) .asp script gathers the information, formats it and sends to e-mails of sales people.

If so, you should do what Cheech recommends:
Response.Write "Name: " & strName

Is it what you need? [pipe] Good Luck! :-)
 
Dan:
If you need help with flash you can visit this two sites.

i used both when i worked with ASp two years ago, and they gave me a lot of information, including sending mail code samples.
Unfortunately, i have forgotten a lot.....I know you need to give ASP script the email address, the subject, the text itself include in the email, so ASp can handle it using the email service runing on the server. I beleive you must use one object in order to do that, but i forgot the name.
Im sure you can find it here in one/or both of this sites.
Enjoy it..
 
Thanks everyone. I should have checked back here first, but I went roaming around the net to find an answer and found this solution. Although it works, I don't know if it's correct or not. Basically, here it is:

Set Mailer = Server.CreateObject ("SMTPsvg.Mailer")
Mailer.FromName = "Tech Support"
Mailer.FromAddress = "support@verio-hosting.net"
Mailer.Subject = "IDS-3940799 - " & Subject
Mailer.BodyText = "Name: " & Name & vbcrlf

----the list goes on, but you get the idea---
Anyhow, as a test, when I fill out the web form and submit it,the sales rep. receives it in the desired format that I want. Still, I don't know whether this is sloppy code or not. In any case, let me know what you think and I will check out those provided links.

Thanks again, everyone.
DanH
 
I haven't worked with this mailer ("SMTPsvg.Mailer"), so I can't say anything about it. But if it works and sends e-mails - just great!

But you've got the main idea perfectly!
Mailer.BodyText = "Name: " & Name & vbcrlf

Exactly what Cheech wrote!
Good Luck! :-)
 
Thanks, Eugene. Much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top