Internet Explorer - Firefox

P

Panos

Hello again,

In general i had solved all the issues with the firefox and IE compability,
now i am creating a new website and i have a problem that i cannot find a
solution..

So i need to add the affiliate code

" <script type="text/javascript">
var uri = 'http://impgb.tradedoubler.com/imp?type(js)g(17083244)a(1521676)'
+ new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'"
charset="ISO-8859-1"></sc'+'ript>');
</script> "

When i add it and make preview webpage the whole page is not displayed
correctly, the search box of the code is totaly appeared somewhere else and
the whole page is spread ( try to add this code in any publisher project and
you will undertand what i mean )
From the other hand with firefox everything work perfect.

Is anything what i can do??? any suggestion?


Thanks a lot
Panos
 
D

DavidF

Hi Panos,

What is the script for? I inserted it into a page and saw no difference in
the web page preview in IE or FF. Perhaps if you explain what the code is
supposed to do, then someone will be able to suggest a fix. Also if you
found the script on the web somewhere, give us a link to that source. There
are some people around here that understand coding much better than I.

DavidF
 
P

Panos

Hi David, I have this script from tradedoubler ( affiliate company ) and it
suppose to display a search box for flights..i am pretty sure that the code
is correct but the problem is in publisher. What edition you used? i use
Publisher 2003

IN this location i have upload a picture that you can see how looks like (
http://www.foofle.gr/edreams.jpg )
 
P

Panos

I add the code that i publish here in my first post, and i see that is not
doing anything...the code is correct but you need to paste it in the html
code fragment in special way and not like it appeared here, try to add the
code in

The code is the correct but in order to work you must put it in 4 lines, try
to add it like that

1st line: <script type="text/javascript">
2nd line: var uri =
'http://impgb.tradedoubler.com/imp?type(js)g(17083244)a(1521676)' + new
String (Math.random()).substring (2, 11);

3rd line: document.write('<sc'+'ript type="text/javascript" src="'+uri+'"
charset="ISO-8859-1"></sc'+'ript>');

4th line: </script>

I dont know why it happen but when you will do it like that it will appear,
try it
 
D

DavidF

Panos,

I am not ignoring you...just haven't had time to work with your code
snippet...but I will. I imagine it is a problem with how the script is
written, so in the meantime I would suggest that you go back and study the
original script given to you from the source, and see if you can find an
error.

DavidF
 
P

Panos

Dear David,

Thanks for your reply, i have check again the original code and it is as i
posted here. Also the code is correct because it displayed correctly in
Firefox, the problem is how publisher displayed it in IE. Until now i was
used to have problems with firefox compability but i dont know how to do with
this..

I have try to see if the background and other things maybe affect the code,
so i put it into a blank page but i had the same problems.
 
D

DavidF

Panos,

Sorry, but I still can not get your code to do anything in IE6 or FF3 using
Pub 2003 for testing. And yes, I did make sure to put all the code on the 4
lines as you instructed. The web page when previewed with IE6 shows done
with an error symbol in the status bar, and nothing in FF. Once again this
suggests something wrong with the way the code snippet is written.

I notice that the code snippet specifies charset="ISO-8859-1 . If you go to
tools > options > web tab you have the option of changing the encoding. What
do you have set? If you aren't using it, you might try Western European
(ISO) or other encoding and see if that makes any difference.

If you can do it, create a test folder on your host, and upload the page to
that test folder, and give me a link. That way I can see how it actually
looks as you are using it, plus study the code. The .jpg you posted was a
good idea, but it doesn't show the code...and besides, for some reason I am
unable to get your code snippet to work in IE or FF.

Alternatively if you could post a link to the source of the code , perhaps
that would help.

And one other suggestion. Contact the source of the code and ask them why it
isn't working correctly.

I still tend to think it is a problem with how the snippet is written, but I
just don't understand coding well enough to see it. Sorry.

DavidF
 
P

Panos

David i have try to change the encoding with all the possible options i have
in my Pc but nothing.

I have upload a test page here: http://www.aeroporika.gr/test/

I start think if this is a problem only of my PC can anyone here try this
page and let me know if you can see the search box displayed correctly or
not? ( in Internet Explorer )

Thanks a lot
Panos
 
P

Panos

At the bottom of the page i have also add a text box with the code ( i cannot
send a link to the source of the code because you need to log in to this
affiliate comapny in order to see it )
 
D

DavidF

Panos,

Good. Now at least I can see what is happening, and can reproduce it on my
machine. It is not your machine.

I copied the code you provided at the bottom of the page and inserted it
into a Pub 2003 blank web page via a code fragment. It displays correctly in
FF3 and pushes off to the right of the screen in IE6, much as it does on
your page. Thus far I haven't figured out why it does it, but I did try the
code in Pub 2000 which uses a different html coding engine, and it works
correctly in both IE and FF. So at least I have narrowed it down with how
the Pub 2003 coding engine produces the code.

I will keep experimenting, but hopefully someone that understands coding
(Rob...you out there ;-), will also play with it and hopefully figure out
what needs to be changed.

DavidF
 
P

Panos

Dear David,

Finally i have find the solution, i contact the affiliate program - they
couldnt find why it dosent work - but they suggest me to try a different code
that uses iframe and finally it works...

www.aeroporika.gr

Thanks a lot for the support and your time.

Best regards
Panos
 
D

DavidF

That is good news. I was wondering if there was a way to import that into
the page. Good job. Until next time...

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top