Jump to content

No More JavaScript login pages?


This topic is 6533 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi there,

Right after Microsoft released a security cumulative patch for Internet Explorer 6.1 (Q832894--http://www.microsoft.com/technet/security/Bulletin/MS04-004.asp) about a month ago

After that my online clients can not use javascript based login like the one I have

-->>>

.

var varjs;

.

.

varjs = varjs + document.myform.mypassword.value + "@" ;

document.location = "http://" + varjs + "domain.com/FMPro?-db=logo......

.

.

I may leave just the logon button in my form maybe without using text boxes for user id and the password but I'd like to avoid "Pop-up" login.

Is there any workaround for this?

Thanks for your time.

Ken

Link to comment
Share on other sites

You might still be able to use JavaScript by creating an MSXML ActiveX object and setting the username and password in the open method. This doesn't embed in the user and password in the URL, so it circumvents the limitations imposed by Microsoft's recent change.

The following syntax for the open() method is from the MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_mth_or_7nxs.asp

Syntax:

oXMLHttpRequest.open(bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword);

Sample usage:

var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");

xmlHTTP.open("GET","http://myserver/save.asp", false, myUserName, myPassword);

xmlHTTP.send();

Link to comment
Share on other sites

You're welcome - although credit goes to Chris Hansen for writing it.

I've also written an ASP equivalent to the FX class which you are free to use if you prefer ASP. I'm still adding documentation and a few extra frills - but the core functionality is complete. You can download a beta copy at:

http://mariano.petersonpages.com/demo/asp/FMPasp_v0-2.zip

Link to comment
Share on other sites

Mariano!

there is no icon to post along with yours....great work!!!!!

To take (ASP) even further and use "pure ASP" vs. pull from XML we would need to go ODBC ways which is really frown.gif in FM. Have you looked at FMconnector? Any thoughts on its quality?

I stubled upon http://www.openlinksw.com/info/docs/rel155/odbcagnt.htm

..perhaps there is some value in the link...

thanx again!

Link to comment
Share on other sites

This topic is 6533 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.