Code Fragment

P

Panos

Hello,

I am trying to add a long code fragment but when i paste it into the code
box in publisher it seems that not all the code is inserted..Is there any
limit about the size of the code? Is anything that i can do?

Best regards
Panos
 
D

DavidF

Hi Panos,

I have never heard of a limit. Assuming that you write the code fragment in
Notepad, then use Ctrl + A to select all the code, then copy, and when you
are ready to paste into the code fragment box, try using the Ctrl + V
command to paste.

Why do you say it "seems" that not all the code is inserted? Either it is,
or it isn't. Are you getting some error, missing some text, or does the code
simply not work correctly?

Remind us which version of Publisher you are using.

Perhaps you could use www.yousendit.com to upload a copy of the fragment in
the form of a text file, send the link to yourself, and then post it here
for us to download and test. It is a free service, and you do not have to
sign up for anything.

DavidF
 
R

Rob Giordano [MS MVP]

Panos,

I would hardly call that a "fragment"- it's huge! It's an entire web page
calendar! You can't insert a web page within a web page like that, because
you'd end up with really confusing and duplicate html tags.

What are you trying to do?

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
P

Panos

This is a affiliate code that create a small search box for flights ( here is
how it will appeared www.aeroporika.gr/test/code.txt )

If i remove the <html><Head> </html></head> tags it works fine with the rest
of the page, what you think it will still make any problem?

The main problem is that not the whole code accepted into publisher.
 
P

Panos

Finally i am lucky:) removing all the "//" notes from the code it make the
rest code just to fit in the box. So from that i have to suppose that the
limit of a code it has to be around 31,777 characters
 
R

Rob Giordano [MS MVP]

You are !

Yes that was what I meant double head html tags would mess things up.
It's still an awful lot of code for that little box :)

Glad it's working for you!

Rob

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
P

Panos

I was mistaken...finally it not works in a full page ( before i had tested in
a very simple page ), when i add the code other things on the page
dissapeared..
 
P

Panos

I have add an iframe in order to display the box without it to confuse the
rest of the page...but now i have another problem, look please this page in
IE and FF ( http://www.aeroporika.gr )

In IE everything works fine but in FF the iframe is appeared like a code,
any idea what is going wrong or how can i fix it????
 
D

DavidF

Panos,

I don't understand why they gave you a whole web page of code to insert to
begin with. Are you sure that was what you were supposed to do?

Assuming it is, it seems that this appears to be your iframe code snippet:

<IFRAME src="http://www.aeroporika.gr/code.txt"
width="200" height="375" hspace="-20" vspace="-50"
frameborder="0" scrolling="no"></IFRAME>

I use iframes a little, but am no expert. However, I have never tried to use
an iframe around a txt file, only a .htm file. I am actually surprised it
works even in IE. What happens if you change the name of the code.txt file
to code.htm, and then change the iframe link accordingly?

DavidF
 
P

Panos

Yes you were right, i change the file to .html and everything works fine in
both browsers ( there are some small problems with the size of the box in
each page but thats how each browser code the page and not too much important
for me.)

Thanks a lot for your help!!!


Best regards
Panos
 
D

DavidF

Good news. Thanks for posting back.

DavidF

Panos said:
Yes you were right, i change the file to .html and everything works fine
in
both browsers ( there are some small problems with the size of the box in
each page but thats how each browser code the page and not too much
important
for me.)

Thanks a lot for your help!!!


Best regards
Panos
 

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