|
T M Gray wrote: If you need a call out box for third level menus like the ones under Q&A, Application Lifecycle, that is something else.
Yeah this is what am looking for at the moment.
T M Gray wrote: If you need your menus to support custom stuff like the Chapters and Sections menu under articles.
Not at the moment but am very interested to know how that's done..
T M Gray wrote: what browsers you plan to support.
Well mainly safari, firefox and IE.
Thank you
Andyyy
|
|
|
|
|
|
Hy,
I have two application which are running simultaneously (p1,p2). If i am working on application p1, i have to restart the clock of application p2 also.For this i have written a java script code which works perfectly on my machine but gives error in server.
Here is my code
string strOut = @"
<SCRIPT language='JavaScript'>
var tparent;
alert('In PC.SearchResult.ascx Script');
debugger;
try{
if(parent.EnableClock == null)
{
alert(' In PC.SearchResult.ascx Script:parent.enableclock=null');
alert(parent.parent.EnableClock);
if(parent.parent.EnableClock == null)
{
alert('In PC.SearchResult.ascx Script: parent.parent.enableclock=null');
tparent = parent.parent.parent;
}
else
{
alert('In PC.SearchResult.ascx Script: parent.parent.enableclock!=null');
tparent = parent.parent;
}
}
else
{
alert('In PC.SearchResult.ascx Script: parent.enableclock!=null');
tparent = parent;
}
alert('The value of tparent is');
alert(tparent.value);
tparent.resetClock();
tparent.EnableClock = true;
alert(" + Session.Timeout.ToString() + ");" +
"tparent.startClock(" + Session.Timeout.ToString() + " );} catch (err){alert(err.message)}</SCRIPT>";
// string strOut = @"<SCRIPT language='JavaScript'>try{var tparent;if(parent.EnableClock == null){if(parent.parent.EnableClock == null){tparent = parent.parent.parent;}else{tparent = parent.parent;}}else{tparent = parent;} tparent.resetClock();tparent.EnableClock = true;tparent.startClock(" + Session.Timeout.ToString() + ");}catch(err){alert(err.message);}</SCRIPT>";
Response.Write(strOut);
The error that i get is when the debugger goes on "parent.parent",it says "ACCESS IS DENIED"
Please help
|
|
|
|
|
Please read and understand the guidelines for this forum. When posting code snippets use the pre tags, i.e. the "code block" menu item above the textbox where you entered your message.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I open a web page with window.showModalDialog() and it works great
But when I type text in text box , TextChanged action has- then the window opened on a regular web page How can I prevent this?
|
|
|
|
|
Try to get the focus, to the new window.
First Page:
<html>
<head>
<title>Page 1</title>
<script language="JavaScript">
function func() {
newwin=window.showModalDialog("ModalPage.html", "popup",
"dialogLeft:50px;dialogTop:50px;dialogWidth:300px; dialogHeight:200px;center:
0");
}
</script>
</head>
<body>
<form>
<input type="button" value="Open" onClick="javascript:func()">
</form>
</body>
</html>
ModalPage:
<html>
<head>
<title>Modal Page</title>
<script language="JavaScript">
function setVar() {
document.forms[0].Name.focus();
}
</script>
</head>
<body onload="javascript:setVar()">
<form>
<input type="text" name="Name" value="Hello !!">
</form>
</body>
</html>
|
|
|
|
|
suppose i am showing images through datalist control. datalist have 5 rows and 5 columns. all rows and all columns will show a small image. so when i am showing images then it is taking little time. so i want to show a image pre-loader for each image. so at the very beginning when page will be running then many busy indicator will show for each image and when each image will show in the page gradually then image preloader for that image will be invisible. so please guide me how to develop my image gallery in this way.
example site is http://davidwalsh.name/dw-content/lazyload-fade.php
i want the output like above url.
thanks
tbhattacharjee
|
|
|
|
|
You will need to use some Ajax. Post a progress image in place of the image and call an Ajax method to download the image asynchroniously, then update the image when complete. There are many, many resources and examples of this methodology.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Good Day Everyone
i have a javascript function written like this
function TestForDuplicates() {
var Texboxes = new Array();
Texboxes[0] = document.getElementById("<%= txtUnitLen1.ClientID %>").value;
Texboxes[1] = document.getElementById("<%= txtUnitLen2.ClientID %>").value;
Texboxes[2] = document.getElementById("<%= txtUnitLen3.ClientID %>").value;
Texboxes[3] = document.getElementById("<%= txtUnitLen4.ClientID %>").value;
Texboxes[4] = document.getElementById("<%= txtUnitLen5.ClientID %>").value;
Texboxes[5] = document.getElementById("<%= txtUnitLen6.ClientID %>").value;
Texboxes[6] = document.getElementById("<%= txtUnitLen7.ClientID %>").value;
Texboxes[7] = document.getElementById("<%= txtUnitLen8.ClientID %>").value;
Texboxes[8] = document.getElementById("<%= txtUnitLen9.ClientID %>").value;
Texboxes[9] = document.getElementById("<%= txtUnitLen10.ClientID %>").value;
Texboxes[10] = document.getElementById("<%= txtUnitLen11.ClientID %>").value;
Texboxes[11] = document.getElementById("<%= txtUnitLen12.ClientID %>").value;
Texboxes[12] = document.getElementById("<%= txtUnitLen13.ClientID %>").value;
Texboxes[13] = document.getElementById("<%= txtUnitLen14.ClientID %>").value;
Texboxes[14] = document.getElementById("<%= txtUnitLen15.ClientID %>").value;
Texboxes[15] = document.getElementById("<%= txtUnitLen16.ClientID %>").value;
Texboxes[16] = document.getElementById("<%= txtUnitLen17.ClientID %>").value;
Texboxes[17] = document.getElementById("<%= txtUnitLen18.ClientID %>").value;
Texboxes[18] = document.getElementById("<%= txtUnitLen19.ClientID %>").value;
Texboxes[19] = document.getElementById("<%= txtUnitLen20.ClientID %>").value;
var btn = document.getElementById("<%= btnComplete.ClientID %>");
document.getElementById("<%= hidDuplicate.ClientID %>").value = findDuplicates(Texboxes);
return false;
}
and i am using the Function on the server side like this
protected void btnComplete_Click1(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "TestForDuplicates();", true);
if (hidDuplicate.Value == null || hidDuplicate.Value == "")
{
Response.Write("<script>alert('There are no Duplicaets');</script>");
}
else
{
Response.Write("<script>alert('There are Duplicate Units: " + hidDuplicate.Value + "');</script>");
}
}
and the button is defined like this
<asp:Button ID="btnComplete" runat="server"
Text="Complete" Width="83px"
TabIndex="20" onclick="btnComplete_Click1" />
and the hidden field like this
<asp:HiddenField ID="hidDuplicate" runat="server" />
Now this is working fine but , lets say i have 10 textboxes, if i change the value one the first textbox to be the same as the second textbox , it means it is a duplicate, now the problem here is that the value of the hidden field does not get updated immidiately , you have to click twice to get the real value.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
If the purpose is to check for duplicate values before posting the page back to the server then why are you not performing the check on the clientside before the submit?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Your problem has to do with the setting of the hidden field. So you posted all of the code except for the function that sets the hidden field. You also should have something in the onclientclick of your button that will set the value on the hidden field before the submit happens.
|
|
|
|
|
Good Morning Gray
in the code i posted , there i part that assigns the hidden field with a value
document.getElementById("<%= hidDuplicate.ClientID %>").value = findDuplicates(Texboxes); and the same javascript function gets called on the server side like this
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "TestForDuplicates();", true);
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
hi Chris
The Problem i have is not the same one explained in the link you provided.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I have a content place holder in which there is a print button which creates a notepad file on the click of it for the records which are selected (checkboxes) in the grid view. The print button is placed in a tag and the tag is hidden by default on the load of content place holder.
A javascript code is called on the onclick event of the checkbox in the grid which makes the for print button visible (if any of the checkbox is checked) and hide it when all the checkboxes are unchecked.
The problem I am facing is that when I click on the print button then some events occurs and the content place holder refreshes and hence the tag for the print button gets hidden although the checkboxes already checked remains checked only.
Now what i have done is: I have made the tag visible true always and looking to write a javascript code for making the tag invisible while the grid is not filled. But I am wondering that where should i call this particular javasscript code?
If someone could help me out?
Thanks
Varun Sareen
|
|
|
|
|
You would obviously want to call the javascript on the checkbox click events. You of course need logic to validate each checkbox's status and show/hide the button appropriately. I would recommand looking at JQuery[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Experts,
I have a excel sheet which has 7 lakhs records in which password has been encrypted. I have to decrypt the password column and find the passord whose length is greater than 7.
I have created encrypt and decrypt methods and the way to find the length of the password
----
----
----
OleDbCommand cmd = new OleDbCommand("SELECT * FROM [Sheet1$] where len(password) < 7", oledbConn);
----
----
----
My requirement is, is there any way to decrypt the whole passoword column or i have to loop through all the cells one by one.
|
|
|
|
|
One by one. Each piece of data is encrypted separately so it needs to be decrypted separately. If you have a piece of data that when encrypted turns into 12345 and another piece of data that turns into 67890 trying to decrypt 1234567890 would not give you the two original pieces of data (unless you are using a really horrible encryption method like ROT13). It's like if you took a zip file and chopped it in half, you aren't going to be able to unzip either piece by itself.
|
|
|
|
|
Hi,
I have a TabContainer that contains 5 TabPanels,
and all of them are visible = false.
At runtime i want to show only part of them,
my problem if i'm not setting the first tab to visible i can't show any other tabs.
I mean, i the fist tab prop. visible is set to false,
all other will not show even if their prop. is set to true.
is it posible???
|
|
|
|
|
Sounds like an odd UI design. The first tab should be the most important / most commonly used tab. If you are making it disappear then maybe you need to rethink your tab order.
|
|
|
|
|
Hy,
I have a web site which has two different web projects in it.the problem is when ever i am not using any page of one of the Project(P1) and using a page of the other project(p2), it give me session time out soon as session of P1 gets expired.
I have to write the code in such a way that,the session values of 2 different project can interact with each other so that even if i am not working on any of the pages to which a particular project belong ,it wont give me session time out.
modified on Monday, November 22, 2010 7:41 AM
|
|
|
|
|
|
Hello ,
I am a asp .net coder . I am doing my project using c# and at the back end there is my-sql . I have created dataset from solution explorer . I have configured table adapter correctly for Customer creation . here the method get works correctly . than i have add query regarding insert , update , delete . At the asp .net web form first i have added a objectdatasource from the toolbox . configured it with datasettableadapters.customerstableAdapter . select the get method as select method and provide insert , update , delete method what i have created at the dataset table adpater . Than i have drag a details view and select the datasource as objectDataSource1 . enable insert , update ,
delete . Every thing works fine now on word . When I run the webpage the detailsView show the information of the customers . But when i go for edit , update , delete than it shows an error that object datasource could not find query delete and it's parameter . What may be the solution
|
|
|
|
|
Since you are new here you should familiarize yourself with these guidelines, located at the top of this forum
How to get an answer to your question[^]
"Hi" is not acceptable subject. Also, it may be more helpful to show the code you are using rather trying to describe it. Only show the relevant code, we do not need a dump of your entire application
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi all
i am anew user for using crystal report and i want to bind adynamic datatable to acrystal report
can any body help me in this?
thanks
|
|
|
|