|
problem was due to db connection
now login is getting successful but
i am getting error on below left corner of ie8 on double clicking it
it is saying object requested
and impact is when clicking menu it is not generating sub menu
somew js or some configuration prob need more suggestions
thanks a lot in advance
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
That seems to be a JavaScript error. If your menus are driven by JavaScript, they won't work after a JavaScript error occurs.
|
|
|
|
|
Ankit Aneja wrote: /Clp/Login.asp, line 135
show the code of 135th line.
|
|
|
|
|
set Obj = server.CreateObject("prjCLP.clsCLPUtility")
but i had already registered this dll
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
if len(Request.Form("cmdLoginSubmit"))>0 then
strLogin = trim(Request("strLogin"))
strPassword = trim(Request("strPassword"))
set rsLogin = Server.CreateObject("ADODB.Recordset")
strSql = "Select user_mast.*, usergroup_mast.group_name, usergroup_mast.allow_add, usergroup_mast.allow_edit, allow_delete " & _
"from USER_MAST, usergroup_mast " & _
"where user_mast.USER_CODE='" & strLogin & "' and " & _
"user_mast.USER_PWD='" & strPassword & "' and " & _
"usergroup_mast.user_group =* user_mast.user_group "
dim Obj
set Obj = server.CreateObject("prjCLP.clsCLPUtility")
Set rsLogin = Obj.runSqlReturnRs(strSql)
where prjCLP.clsCLPUtility is dll that i have registered
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
Hi All,
I would like to submit the below URL in a interval of every one minute.
http://positions.vistracks.com/facts/factsformparser?payload=FACT,12345,-88.04,42.0,2009-12-15T00:00:00Z,%20SensibleSensor-Q42,,45.5,184,,temperature=18.5,Doorstate=open
This URL will contain with a PostFact button this should submit for every one minute, How to submit this using javascript?
Thanks
Kanna
|
|
|
|
|
Hi Kanna,
you may use setInterval function from JavaScript. This is a start point!
|
|
|
|
|
With help of setTimeout('yourFunction',1000);
function yourFunction{
//your logic here
}
Atul Kumar
|
|
|
|
|
Hi,
How to print only the string using javascript with out pop up.
eg: string = "(table border='1')(tr)(td)Hello Javascript...(/td)(/tr)</table)"
*(replace '(' and ')' with '<' and '>')
I need to print the text string with a table and text "Hello Javascript...". with out pop up
I don't want to print the entire page.
Thankyou,
YPKI
|
|
|
|
|
How do you mean print, to a physical printer or to be outputted to the page.
If it is the latter you could use document.write(), trying to output to a printer is a bit more difficult but not impossible. To do this you could create a new iframe dynamically, point it nowhere and start writing to it with document.write(). All that is left then is calling the .print on that frame.
|
|
|
|
|
Hi,
you shoud have a new document with your string and then fire the print event.
|
|
|
|
|
Give whatever element u wanna print this id "printMe".
Include this script in your head tag:
<script language="javascript">
var gAutoPrint = true;
function processPrint(){
if (document.getElementById != null){
var html = '<HTML>\n<HEAD>\n';
if (document.getElementsByTagName != null){
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0) html += headTags[0].innerHTML;
}
html += '\n</HE' + 'AD>\n<BODY>\n';
var printReadyElem = document.getElementById("printMe");
if (printReadyElem != null) html += printReadyElem.innerHTML;
else{
alert("Error, no contents.");
return;
}
html += '\n</BO' + 'DY>\n</HT' + 'ML>';
var printWin = window.open("","processPrint");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint) printWin.print();
} else alert("Browser not supported.");
}
</script>
Call the function
<a href="javascript:void(processPrint());">Print</a>
Atul Kumar
|
|
|
|
|
have a search grid and when I select any row and close it the values get mapped to textboxes in aspx form. Issue is evrytime I have a value like ' ab & cd' it gets mapped as ' ab & amp ; cd'
I am finding the value as follows in the click event of tr
$(this).find("td:nth-child(1)").html();
Thanks
|
|
|
|
|
Have you tried using the $.text method jquery offers for getting an elements textual content. This might well solve your problem.
$(this).find("td:nth-child(1)").text();
|
|
|
|
|
gus;
I am working on a message control that looks like this windows message box.
in this control i used code that produce elements at run-time the code below:
var buttonsbar = $get(this.get_element().id + '_buttonsbar');
var okButton = document.createElement('input');
okButton.type = 'button';
okButton.id = this.get_element().id + '_okButton';
okButton.value = this._okbuttontext;
okButton.className = '__mycontrols_button';
okButton.dialogResult = MyControls.DialogResult.OK;
okButton.setAttribute('onclick', 'javascript:$find(\'' + this.get_element().id + '\').AcceptDialog(\'' + okButton.dialogResult + '\');');
buttonsbar.appendChild(okButton);
my problem is when i click the okButton AcceptDialog() is not hit in the compatibility view but it is hit when i turn of the compatibility view;
Help people,so poeple can help you.
|
|
|
|
|
Try this:
okButton.onclick = SomeFunction;
|
|
|
|
|
Sir;
I took your advice and replaced the line
okButton.setAttribute('onclick', 'javascript:$find(\'' + this.get_element().id + '\').AcceptDialog(\'' + okButton.dialogResult + '\');');
with
okButton.messageboxid = this.get_element().id;
okButton.onclick = function() { $find(this.messageboxid).AcceptDialog(this.dialogResult) };
by setting the onclick event to a reference of type function, but i use it in a new function because i want to pass a parameter to function AcceptDialog and I add messageboxid to the button because I lose context when the button is clicked.
this works great, but is there any way else to do so?
Help people,so poeple can help you.
|
|
|
|
|
Is there a reason you want to do it another way? Here is one small trick that can make your code look a little cleaner:
function create_handleOkClick (boxId, dialogResult) {
return function() {$find(boxId).AcceptDialog(dialogResult); };
}
okButton.onclick = create_handleOkClick(this.messageboxid, this.dialogResult);
You could also do this:
function create_handleOkClick (instance) {
return function() {$find(instace.messageboxid).AcceptDialog(instance.dialogResult); };
}
okButton.onclick = create_handleOkClick(this);
|
|
|
|
|
AspDotNetDev wrote: Is there a reason you want to do it another way?
No, just trying to learn other techniqes.
i liked the "return function()" this would be better then editing code for 7 buttons.
and one more thing, be gentle with me so i can love you
and as you maight know my heart is so weak (you could kill me with your "Is there a reason you want to do it another way?").
100 and have a nice day;
Help people,so poeple can help you.
|
|
|
|
|
Sir;
I worked on this:
var create_handler = function(context, method, prameter) {
var methodname = 'AcceptDialog';
return function() { context[methodname](prameter); };
}
button1.onclick = create_handler(this, this.AcceptDialog, button1.dialogResult);
I added the parameter 'method' as i may need to invoke one of the three methods; this.AcceptDialog(), this.Close(), this.DoPostBack(). The 'context' parameter i used it instead of function $find() .
what happend whit me is that I couldn't extract the method name
so I am wondering if you could help me with this;
Help people,so poeple can help you.
|
|
|
|
|
I am a little confused as to what you are after, but here are a few samples that may demonstrate what you are looking for:
var create_handler = function (context, methodName, parameter) {
create_handler[methodName](context, parameter);
};
create_handler.AcceptDialog = function (context, parameter) {
alert("Accepting...");
};
create_handler.Close = function (context, parameter) {
alert("Closing...");
};
create_handler.DoPostBack = function (context, parameter) {
alert("Posting...");
};
create_handler(this, "AcceptDialog", "a parameter");
create_handler(this, "Close", "a parameter");
create_handler(this, "DoPostBack", "a parameter");
And another:
var create_handler = function (context, method, parameter) {
method(context, parameter);
};
create_handler.AcceptDialog = function (context, parameter) {
alert("Accepting...");
};
create_handler.Close = function (context, parameter) {
alert("Closing...");
};
create_handler.DoPostBack = function (context, parameter) {
alert("Posting...");
};
create_handler(this, create_handler.AcceptDialog, "a parameter");
create_handler(this, create_handler.Close, "a parameter");
create_handler(this, create_handler.DoPostBack, "a parameter");
And another:
var myContext = "hello";
var create_handler = function (context, method, parameter) {
method.call(context, parameter);
};
create_handler.AcceptDialog = function (parameter) {
alert("Accepting..." + this);
};
create_handler.Close = function (parameter) {
alert("Closing..." + this);
};
create_handler.DoPostBack = function (parameter) {
alert("Posting..." + this);
};
create_handler(myContext, create_handler.AcceptDialog, "a parameter");
create_handler(myContext, create_handler.Close, "a parameter");
create_handler(myContext, create_handler.DoPostBack, "a parameter");
|
|
|
|
|
Sir;
I liked the last one of Function.call() this would serve my alot.
For what I am after, please go to Message Box Control[^] and Browes the Code[^] of //MyControls/MyControls/script/MessageBox.js lines 37 to 229 and you will get it.
in your way please tell me what do yoyu think about the overall article and alse the control.
Regards;
Help people,so poeple can help you.
|
|
|
|
|
Hi,
By using JqueryCurrency i am reading the currency symbold based on locale, but when i am trying to read the UK currency symbol, instead of pound symbol it is reading some junk data.
Any one faced the same problem please let me know the solution to read the pound symbol.
Thanks in Advance.
|
|
|
|
|
|
Hi,
I have a usercontrol embedded in my content page.This usercontrol has a text box in it.
The label and regular expression validators on the page use ucid:txtboxid for associatedcontrolid/ControlToValidate respectively.
Now i try to populate the textbox in usercontrol using jquery as follows:
<br />
$("#<%= ucid:txtboxid.ClientID %>").val(myvalue);<br />
this gives a compilation error. I tried a few combinations of brackets but no luck.I then tried
<br />
$("#<%= ucid.ClientID %>").val(myvalue);<br />
and it builds fine but value doesn't get assigned at runtime.
How do I populate the usercontrol textbox?
Thanks
|
|
|
|