Greetings!
I hope I can explain this clearly…
Using oecgi. I create an html page in a Basic+ script and hand it back with
Return response
Response contains my script. Just before the return, I write out 'response' to an OS file, so I can see exactly what oecgi is getting.
When the page is rendered, I look at view source with my browser and compare.
The problem is that I have statements with ' between "" and they do not get rendered correctly. In a specific example, I have a ' in a string which is normally closed by a " but the " does not appear in the html source. There is another ' which does appear and the HTML statement is therefore incorrect so the indended html function does not work.
Anyone had this kind of problem?
arcs@arcscustomsoftware.com
ARCS, Inc.
[img]http://www.arcscustomsoftware.com/arcslogo.gif[/img]
</QUOTE>
----
=== At 25 NOV 2004 12:06PM Oystein Reigem wrote: ===
<QUOTE>Paxton,
If I may reply without having read your question properly (have a bus to catch): If you have double and/or single quotes you want to be rendered on the web client's screen, use entities "e; and ...uh... don't remember. ' ???
- Oystein -
</QUOTE>
----
=== At 25 NOV 2004 03:17PM Paxton Scott wrote: ===
<QUOTE>Oystein, thanks for the reply.
I don't want to display on the screen, it is a string that is part of an action that occurs when the user clicks a displayed button. Namely, it
The song title is created programically from the database, and there should be a " after .mp3 and then the ]. And, that is what is shown in the string as it is written out to a text file before it is sent to oecgi. This all works fine if there are no ' in the song title.
I'm beginning to think I need to learn more about urlencoding...
arcs@arcscustomsoftware.com
[url=http://www.arcscustomsoftware.com]ARCS, Inc.
[img]http://www.arcscustomsoftware.com/arcslogo.gif[/img]
</QUOTE>
----
=== At 26 NOV 2004 04:00AM Oystein Reigem wrote: ===
<QUOTE>Paxton,
I see. You have a lone ' inside a pair of "-s inside a pair of '-s.
I don't think you can blame oecgi.exe. I made a similar example and tested in IE6, without any OI involved. It doesn't work.
I did some more experiments. I think you need to get rid of that ' in the file name. Try %27 instead. (27 is the hex value of '.) Do similarly with other problematic characters. I'd expect " to cause the same problem.
If this don't work hang on to the %27, or some other suitable encoding, and change your php script (MP3_play.php) to accept the new syntax. That shouldn't be too difficult.
- Oystein -
</QUOTE>
----
=== At 26 NOV 2004 04:41AM [url=http://www.sprezzatura.com]The Sprezzatura Group wrote: ===
Paxton,
As you're effectively calling a scripting function you need to use JavaScript encoding so swap out the "'" with "\x27" like so:
The Sprezzatura Group
World Leaders in all things RevSoft
=== At 26 NOV 2004 11:17AM Paxton Scott wrote: ===
Thanks, everybody.
Pretty much figured that is what had to be done, nice to have confirmation. Always learning, that is what is so fun!!
I appreciate everyone's detailed explainations.
arcs@arcscustomsoftware.com
[url=http://www.arcscustomsoftware.com]ARCS, Inc.
View this thread on the Works forum...