CGI and Javascript Problems

rokison

New Member
This is a really strange problem, but I am trying to run a page which is dependent on the value in a byte of the shared memory. It works fine when I run it offline in a browser using artificial variables instead of the ?B30, but doesn't work on the picaxe net server. Anyone got any ideas?

I have posted the code I'm using (saved as a .txt not a .cgi), but if you think you can help, please email me and I'll send you a zip with all the files.
 

Attachments

I assume you have saved the file as .cgi in the PNS - if not it definitely won't replace the ?B30.
Otherwise you need to debug this, so start simple and create a file with nothing but ?B30 in it and load that in your browser - does it get substituted or remain as ?B30. If not then you're doing something really wrong. If yes, then we move on......
You should also do "view/source" every step of the way to make sure that the substitution is as you are expecting. Another trick is to use alert("?B30") to display what the script has got in it.
 
Top