PDA

View Full Version : Problems with <A> and <form> inside a script


Genelle
11-20-2002, 08:13 AM
Have a script that when you click a tab it puts a specified file (via shtml include files) into a table cell.

http://host16.ipowerweb.com/~nordalap/index.shtml

Works just fine when the 'included' files are straight text or <table>s.

When I try to include a file that has an <a> or a <form> my script gets screwy on me. Instead of popping the files into the table cell it gives me a snippet of my code in the tab.

The included files themselves are fine - when i view them outside of the script, they look ok, its only when I 'include' them that I have a problem.

Last time I had a problem It was an improper use of quote marks - Im thinking this may be something similiar but cant find where I goofed.

Any help?

Borgtex
11-20-2002, 11:02 AM
It's really obvious that it's a problem with quote marks:

<input type="button" value="Tab One" text="<html>
This is file A<br><a href="somelink.htm">With a Link</a></html>"


you can use the single quote (') or %22 and then unescape the text

beetle
11-20-2002, 03:28 PM
Originally posted by Borgtex
you can use the single quote (') or %22 and then unescape the text I'd get used to the idea of using the double-quote, it's what XHTML requires.

Roy Sinclair
11-20-2002, 07:26 PM
See your other thread on this.

beetle
11-20-2002, 07:32 PM
Originally posted by Roy Sinclair
See your other thread on this. Wha? Are you confused, or am I? Let me know, coz right now I think it's me! :D

Roy Sinclair
11-20-2002, 08:07 PM
This time it's you that's confused. :D Genelle asked this in an earlier thread and I was referring her to look at the answer I provided in that thread. This thread is just duplicating the problem and has actually lost some of the context carried in the other thread so the answers here aren't quite relevant.

Of course I could have provided a link (http://www.codingforums.com/showthread.php?s=&threadid=9899) to that thread :o.