Problem in ajax
-
i am using the below code to initialize the xmlhttprequest try { obj = new XmlHttpRequest(); } catch(e) { try { obj = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e1) { obj = new ActiveXObject("Msxml2.XMLHTTP"); } } it works fine in my system. but when accessed from network, the ajax features doesnt work. I have placed the code for ajax and some validation scripts in the .js file. The validation scripts works fine, but not the ajax scripts. Please give me solution...
Regards, Abul.
-
i am using the below code to initialize the xmlhttprequest try { obj = new XmlHttpRequest(); } catch(e) { try { obj = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e1) { obj = new ActiveXObject("Msxml2.XMLHTTP"); } } it works fine in my system. but when accessed from network, the ajax features doesnt work. I have placed the code for ajax and some validation scripts in the .js file. The validation scripts works fine, but not the ajax scripts. Please give me solution...
Regards, Abul.
-
Standard question #1: What do you mean by "not working"? Standard question #2: What error message do you get?
--- b { font-weight: normal; }
for qstn #1: the ajax task is to check records in the db whether the name i entered in the textbox exists or not. it displays the message whether it exists or not. when accessed from network, during the event(i.e., on key press) an alert message box displays as "The page is accessing information that is not under its control. This poses a security risk. Do you want to continue ? " for qstn #2: if i give "yes" to the alert box, there's no response nor any error message. if i give no, still there is no response and it gives a javascript error as "Permission denied". This error is displayed at the bottom of the window and not as a textbox. am i clear ?