|
Hi!
I have hosted my web site at www.discountasp.net. I strongly suggest you to check the web site because they have outstanding services in affordable prices. I have had no problem with them at all.
JUNEYT
|
|
|
|
|
|
hello folks,this is basically my first question. help me out
i have created a system running clock in javascript
and am able to display the value on the page by the document property...
by calling a function in loop...
can u tell me how to display this value in the textbox...the code is
Ish Kumar Kapila
|
|
|
|
|
Hi!
Because you haven't defined a name for the input box. Just define a name such as name="box1" and then use the ID with document.form.box1.value statement in the function.
|
|
|
|
|
sorry buddy it did not worked... see the new code
<!--
<html>
<head>
<script>
function time()
{
var d=new Date()
var h=d.getHours()
var m=d.getMinutes()
var s=d.getSeconds()
var ms=d.getMilliseconds()
var w=document.getElementById('txt').innerHTML=h+":"+m+":"+s+":"+ms //check it
t=setTimeout('time()',50)
document.form.tb1.value=w // check it
}
</script>
</head>
<body onload="time()" >
<div id="txt"></div>
<input type="text" id="tb1" >
</body>
</html>
//-->
help me guys...
Ish Kumar Kapila
|
|
|
|
|
If you define a form object it can work out. After tag define a form object
|
|
|
|
|
Still nothing happened buddy. is the problem so complex to solve..
plz try again ... thanx for the effort
<!--
<html>
<head>
<script type="text/javascript">
function time()
{
var d=new Date()
var h=d.getHours()
var m=d.getMinutes()
var s=d.getSeconds()
var ms=d.getMilliseconds()
document.getElementById('txt').innerHTML=h+":"+m+":"+s+":"+ms
t=setTimeout('time()',50)
document.tb1.value=t
}
</script>
</head>
<body onload="time()" >
<FORM name="form" method="POST"></FORM>
<div id="txt"></div>
<input type="text" id="tb1" ></input>
</body>
</html>
-->
try something new
Ish Kumar Kapila
|
|
|
|
|
Hi!
I just fixed the code for you. There were a few mistakes. Copy and paste the whole code below in to a page and then load the page. I have checked it and it is working...
<title>New Page 1
function time()
{
var d=new Date()
var h=d.getHours()
var m=d.getMinutes()
var s=d.getSeconds()
var ms=d.getMilliseconds()
document.getElementById('txt').innerHTML=h+":"+m+":"+s+":"+ms
t=setTimeout('time()',50)
document.form.tbox.value=t
}
|
|
|
|
|
how can i enable debugging in web service?
my client cannot access the service if i create it in the wwwroot\folder\service... however it can access it wwwroot\service like this can i get a logical reason for this
B U
|
|
|
|
|
Hi, i have an aspx page containing 7 user controls now i have 5 actors in my app , against each user i have certain function defined, now based on these function i have to either make a control's visibility true/false or enable/disable a control and the roles and the function corresponding to them r defined in an xml file.
i am not able to figure out how to go about it any help/suggestion are welcome
|
|
|
|
|
This is a snippet from my page:
I need some javascript that can check if the id query string is in the
action attribute, and if it is, remove it so the form element will look
like this:
Thanks.
/\ |_ E X E GG
|
|
|
|
|
You can use a regular expression like /(\?|&)id=(.*?)(&|$)/ to check for the attribute and remove it.
---
b { font-weight: normal; }
|
|
|
|
|
COM Error Number: -2147467259 (0x80004005)
Line Number: 97
Column Number: -1
Brief Description: Method '~' of object '~' failed
Can any one explain me what could be the possible reasons.
This code is generated when asp application is run, a call to specific file is causing the problem. a dll is also used in these pages,
when this application is run by below 5 hits its running fine. but when the load increased to 10 the error is generated
|
|
|
|
|
anybody plz send some dotnet projects with explanation its very urgent for me to get a job
|
|
|
|
|
Don't mind but what will you do with others projects??? Those projects will not help in your job but ya it will be very harmful for your carrier.
And though you want readymade .NET project then you can get it from this site itself. Just see up here is one green bar where .NET is mentioned. you just go from it.
And All the best for your job.
|
|
|
|
|
hiral_shah wrote: carrier
Career
Similar sound - very different meaning
|
|
|
|
|
Hi!
I have one global.asa file under root directory and I have defined a few application variables. Application("Visitors") keeps the total count for visitors. However, it is getting resetted every day. I wonder if it is caused because resetting the IIS.
If you enlighten me about it, I would really appreciate it.
Thanks!
Sub Application_OnStart
Application.Lock
Application("Visitors") = 0
Application("CurrentVisitors") = 0
Application.UnLock
End Sub
Sub Session_OnStart
Application.Lock
Application("CurrentVisitors") = Application("CurrentVisitors") + 1
Application("Visitors") = Application("Visitors") + 1
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("CurrentVisitors") = Application("CurrentVisitors") - 1
Application.UnLock
End Sub
|
|
|
|
|
A web application does not run continuiously. Whenever the web server determines that the application is unused, or if it thinks that recycling it would free resources that is better used elsewhere, it can shut the application down. The application will start again at the first request to the site.
Some servers are also set up to recycle the applications on a regular interval.
If the IIS is restarted due to some server problems, the web applications will of course also be shut down.
---
b { font-weight: normal; }
|
|
|
|
|
Hi There,
I have a problem to create multi level tree structure of the folder in php if you know how then please please reply me as soon as possible. It will help me a lot. I want the same structure as like we got while we open my computer and click on folders from standard button bar.
Waiting for the Reply,
Thank you in advance.
|
|
|
|
|
Would it be possible to make a web service request so that when it returns the data it returns straight XML instead of the serialized object? And if so, how do I do it?
I am quite new to this... thanks for your time!
|
|
|
|
|
A web service returns a SOAP message, which is XML that follows the SOAP standard.
If you make a regular web page instead, you can return anything you like.
---
b { font-weight: normal; }
|
|
|
|
|
After some playing around I realized that I'm an idiot haha
I was able to figure it out
|
|
|
|
|
Morning all.
Im currently working on a booking form and need to get the user to input, into two ASP textboxes, the date they want to arrive and the date they want to depart. To make it easier for the user when they click on the textbox an asp:calendar control appears. The calendar is hidden using css and the onfocus feature of the textbox is used to make it visible again. The javascript performs this by editing the calendars css display attribute.
The user can then select a date and the date gets thrown into the textbox. So thats all gravy.
The problem appears when the month selector is clicked on the calendar control, because of course this reloads the page and thus sets the calendars css back to it's original setting. Thus hiding the calendar control.
How can I get around this? Is there a better way of doing this.
My only other option is to have a link to the side of the textbox and reveal the calendar on that being clicked. But id rather use the onfocus event of the textbox and keep the form simpler...
Any help on this would be spot on. Thanks
|
|
|
|
|
Personally, my favorite way to popup a helpful calendar is to open a new window using javascript. This new window has JUST the calendar and the name of the textbox that it needs to set a value for is passed in the url. Then, to set up the calendar to update that textbox on the other window I add this code:
Note: calPicker is my Calendar control
Protected Sub calPicker_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles calPicker.DayRender
' Clear the link from this day
e.Cell.Controls.Clear()
' Add the custom link
Dim Link As New HyperLink
Link.Text = e.Day.Date.Day
'Format colors
If e.Day.IsOtherMonth Then
Link.ForeColor = Drawing.Color.DimGray
Else
Link.ForeColor = Drawing.Color.Black
End If
Link.ToolTip = e.Day.Date.ToString("MMMM d, yyyy")
'Tell the link which control on the other window to update
Link.Attributes.Add("href", "JavaScript:window.opener.document." & Request.QueryString("field") & ".value = '" & e.Day.Date.ToString("yyyyMMdd") & "'; window.close();")
e.Cell.Controls.Add(Link)
End Sub
You can still do it your way if you want, you will just have to setup a bunch of flag variables to check and see if you are supposed to hide the css or not, and you can also use hidden fields on the aspx side, and javascript.
Hope this helps.
|
|
|
|
|
Hi All! I want to get some link regarding accessing MS Word (through automation ) from javascript.(just like vb6 or vbscript allows). I need javascript as it is supported by all major browsers.
Thanks
|
|
|
|