Hi,
I want to simply detect whether the browser has cookies enabled, so I do as a test:
<script language='Javascript'>
<!--
if(document.cookie) {
document.write("yes to cookies");
}
else
document.write("no to cookies");
-->
</script>
With IE5.5 this...
I don't mind people viewing the HTML, but I don't want to rely on style classes, and wonder what browsers aren't supporting it.
So I restructured everything so that it looks ok for it to fall through to the HTML after the JS function finishes.
Thanks for the help.
How can I prevent the browser from interpreting the html that follows a Javascript function if a certain condition applies?
<script language='JavaScript'>
<!--
function cookiesEnabled() {
if (! document.cookie()) {
document.write("some message");
<!--...
David,
OK, with some minor alterations your code does exactly what I want. added "javascript: void(open..." and a second parameter to the open() function so that it always goes to the same page on subsequent calls.
Yes, it does work from within the page, but when I drag the link to the Links toolbar, then click it, I get a "Object Expected" error.
Dragging the link to the toolbar results in a warning about an "unsafe" link. Could it be blocking the execution of JavaScript from the...
OK, this gets me a lot of the way there. I can use it to write the current URL into an HTML <href> tag and put that in the Link Bar of the browser.
Next, I need the link button to link to a remote page, but pass the URL of the current page, whatever that might be, dynamically. It would output...
Is there a way to read the current URL that appears in the browser Address window? Unfortunately, I don't have control over the browser, so what would be nice is if the Link Toolbar contained a link that called an applet from the server to read the current URL, THEN open a new browser instance...
Is there some clever way to create a link icon on a browser's link toolbar that, when clicked, opens that URL but also sends as a parameter the URL currently in the browser address window?
If not, maybe a little Java applet can do it?
How do I add a link to the Links Toolbar? Through an API? Macro? User-accessible menu?
If it requires programming to an API, where do I find documentation?
Thanks.
Did you set up IIS with a Application Binding for .swf files? Ex., it has to know that .php files are handled by php.exe, so I'm wondering how it knows what to do with .swf files (but there's no exec - a problem).
Anyone gotten Fash loadVariables() to work under Win 2K Advanced Server's IIS? I've tried both GET and POST. It works under Personal Web Server, but not IIS. Flash tech support doesn't know why, so far, so if you can answer this one, you get 5 stars.
loadVariables() is sending/receiving from...
Yeah, but doesn't Setup overwrite everything, including the registry? I just want to update anything that needs it, and have a system that runs identically, with no tweaking or re-installs needed. That's what was implied by the dialog box that used to come up.
It used to be that when I inserted a Win98 CDROM that was a newer version than what was installed, Windows would ask me if I wanted to update from that CDROM. But it had a checkbox, "Don't Ask Me Again", which I checked. But now I DO want to be asked again.
How can I get Win98 to...
When printing anything, the print queue (local printer) briefly registers the job, then goes blank, and nothing ever goes to the printer.
I went through all the on-line help. I changed the BIOS to make the port ECP, then SPP (whatever that means). Also tried different data types being sent to...
Yes, thanks. I'll never know if it was a typo or what, because I took out the onSubmit(), and just used a button with onClick() calling the javascript validate function. Then that function does the submit itself without ever returning, using document.form.submit(). Seems to work so far.
Tried this. Same result, it still puts up the warning dialog, while behind the dialog, the next page (go_on.html) comes up!
BTW, this is Netscape 4.72 running on Linux.
I'm using onSubmit() to validate a form, but it goes on to the next page no matter what I return.
My form:
<form name="OrderForm" onSubmit"isReady()" action="go_on.html">
function isReady(){
if(isEmail(document.OrderForm.email.entry) == false) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.