HTML/E-Cards problem

Well, I started an E-Cards page some days ago - skint as I am using a free service over again.
I already wrote to support, and I read the fuckin tutorial too… but there is nothing in the FAQ and nobody answers my mail :frowning:

So I ll just bug you guys here :smiley:

This is my URL:
http://www.geocities.com/loonygreetings/cards.html

If you try to write a card, go to preview - the picture wont show up.
I checked the spelling and it is not that.

All big pictures are called exactly the same as the thumbs, only without the s at the end of the filename.

I ve got no idea about the javascript. I am quite bad with java and the strange stuff mypostcards.com gave me to put on my side is too high for me.

Please help me.
Chocolate and hugs to everybody who tries to help :slight_smile:

loons

Well, the problem seems to be that in the code for the second page (where the preview image should pop up), the code doesn’t actually list a filename for the img. Instead, the text ‘Testing’ just shows up.

I looked at the code that comes up (I almost went blind trying to decipher it), and its possible that one of the problems is this line:

{dc.writeln(u+’<i’+‘mg sr’+‘c="’+i+’&d=n"’+l+c);}

Normally, you would do something like:

dc.writeln(’<td> <img src=imagename alt=sometext> </td>’)

but the code is split up into a bunch of variables, so its hard to tell whats going on. My guess is that all those variables are pointing to the wrong image file, and thats why its not loading up.

One possible solution would be, on the first page where you select what card you want, to change the <Form> Tag. Off the top of my head, I don’t remember exactly what your code was, but I think it was similar to this:

<FORM ACTION=“pagename.htm?/loony”>

Instead, you could change this to:

<FORM ACTION=“pagename.htm?imagefilename.gif”>

Then, in the code for the second page, you can check this value in the Request.QueryString, and put that into a variable, and then load the image from there.

Also, another way to do this is just to check, in an if statement:

If (Request.Form(whateverthenameoftheoptionbuttonis).Checked) {
code to load the image
}


I realize that this was probably no help at all, but hopefully it might point someone else in the right direction to fix it. Otherwise, I will try and write out some code myself that you can just cut and paste…

thanx :slight_smile:

Now that I know what the prob is I ll find a way to solve it…

I ll just push my self confidence with chocolate and reasure myself that I didnt learn HTML and Perl for nothing…
grrrr
Have to assimilate java script…

That script on the preview page was well creepy, wasnt it?
That really made me give up :frowning:

Thank you again
You saved my year :slight_smile:

loons

Yeah…I assume that whoever wrote it did it that way so that noone could just go in there and copy it easily. The problem, as we’ve both found out, is that its a pain to fix any problems with it :slight_smile: