|
ok changed it to submitsig and it still does not work anyother ideas
chad
|
|
|
|
|
You have one field with the id "prt" and the name "sig", and one field with the id "sig" and the name "prt". I think that the reason for the element not being recognised is that they collide in some way.
---
b { font-weight: normal; }
|
|
|
|
|
ok thanks that was my problem did not even see it
i have one more question
how to i make javascript goto another page
i tryed
window.location="webpage.aspx";
but this does not work what do i need to do to make this work
chad
|
|
|
|
|
Please use periods to end your sentences.
Try again. That is exactly how you do it.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All,
I am using a Calendar control in C#. I want to get the Selected Date and set it in the parent web-page text box.
Heres my code. Its to be done at client side.
function fn_Select()
{
xElem=window.opener.document.CreateTasks.txtDate;
cElem = document.test.Calendar1;
txtDate.text=cElem.SelectedDate();
}
*CreateTask is the parent web-page formname
*txtdate is the parent web-page textbox in which I want to set the Selected Date
*test is the Current Page form name
*Calendar1 is the Calendar name
--cElem is undefined when I am putting an alert...
Can anyone help me?
Thanks
|
|
|
|
|
Calendar1 is a javascript object, or the Calendar control that exists in the .NET framework ?
The names that you give things on the server don't flow direct to the client. The calendar control certainly won't be a single object in your html, if it's the Calendar class in your html. Are you sure it even has a SelectedDate method available to jscript ?
View the source of your HTML, and then you'll see what objects are there, and what they are called.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
The Calendar1 is the .Net framework Control i.e. Calendar Control.
I viewed the source of the HTML, its name is Calendar1.
I am not sure whether SelectedDate method is available to javascript or not. How can I know whether the method is available to the client side?
Whats the other option of scripting it at client side?
Can it be done with the .net Calendar control at Javascript side?
Thanks
|
|
|
|
|
just4ulove7 wrote:
I viewed the source of the HTML, its name is Calendar1.
I've just created a project to make sure. You have a TABLE named Calendar1.
just4ulove7 wrote:
I am not sure whether SelectedDate method is available to javascript or not. How can I know whether the method is available to the client side?
It's not. The ASP.NET framework uses viewstate to maintain class objects between round trips on the server. The client just gets HTML.
just4ulove7 wrote:
Whats the other option of scripting it at client side?
None, as far as I can see. If you want to grab the selected date in jscript, you need to inject it into your code as a variable that jscript can see. I think any jscript is a messy option, personally. The calendar control creates a table with link buttons that post back to report to the server what the new selected date is.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
That means I need to script at serverside and make the value available to the parent form through some hidden textbox?
I am quite new to Web Development,
Thanks for the help.
|
|
|
|
|
just4ulove7 wrote:
That means I need to script at serverside and make the value available to the parent form through some hidden textbox?
No, you can actually use RegisterClientScriptBlock to add jscript directly to your page, like this
Page.RegisterClientScriptBlock("CreateVariable", "client script goes here);
The first string is a key, which is used to make sure the same script is not added twice. The second is your script.
However, I reiterate that I don't see it as ever being a good idea to use this stuff if you can avoid it. Different browsers have different javascript implimentations, it can cause grief very quickly.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Oops.. I think things are getting more complicated for a simple task!!!
Can u suggest me what shud I use?
I have a textbox and a button, When I click on the button a page with a calendar pops up, and on selecting the date, it shud set in the parent text box.
Thanks...
|
|
|
|
|
If you can force the parent page to refresh itself, and then get that date from somewhere on the server ( stored in the session, probably ), I reckon that's the best way to go.
This[^] MSDN page has more to say about using modal forms in ASP.NET than I know, I recommend looking there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks a lot,
Will read the article, and work out something
|
|
|
|
|
Hi,
Had any body worked with Mapguide ActiveX control.Iam using this component in my webpage using C#.when the control is displayed in the aspx page I'll draw a rectangle on the map and that selected rectangle has to displayed in a new window.
Anybody Anybody.....
regards
|
|
|
|
|
Hello everybody.
These days I was looking at Ajax.NET[^]. This is a library that is used to call .NET methods from JavaScript. What impressed me so muck was how .NET types are mapped to JavaScript objects. Take a look at the following code:
[Serializable]
public class Person
{
public string FirstName;
public string FamilyName;
public int Age = 0;
public Person NewChild()
{
Person p = new Person();
p.FamilyName = FamilyName;
return p;
}
public Person[] Children = null;
} And the JavaScript part of the code:
function test12_callback(res)
{
var s = res.value.FirstName + " " + res.value.FamilyName + ":\r\n";
for(var i=0; i<res.value.Children.length; i++)
s += "\t" + res.value.Children[i].FirstName + "\r\n";
alert(s);
} How is this achieved? Is it also possible to map a PHP type to a JavaScript object? Can I create a JavaScript object using a simple XML document?
Thank you,
Stanimir.
|
|
|
|
|
when using iis i have a virtual directory with my project file it work but when i rename the virtual directory to what i wnat it called it wont work, ive tried iisreset and rebooting, it works for every other name but the name i want to be called is there anyone that ever had similar problems????
|
|
|
|
|
Try to create a new virtual directory with that name instead of renaming one.
---
b { font-weight: normal; }
|
|
|
|
|
I´m trying to read about usability but I find no much resources.
I whant to read something about usability on web and desktop applications.
If somebody know about good articles, I´ll be pleased.
Thanks.
|
|
|
|
|
google for the god:
Jakob Nielsen
|
|
|
|
|
Trenton Moss is web usability guru Search for his articles...
David
|
|
|
|
|
Hi,
I would be greatful if I could get some help regarding the following:
I'm a newbie at WebServices and I'm just setting up a simple service to get my feet web.
I used MS' web servive walkthrough as a template:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vbwlkWalkthroughBuildingWebServiceWithManagedCode.asp
So, when I run the service as they say to set it up, it works fine; returns the temp conversion as expected.
However when I add some Process code to the main method, like this:
// C#
[WebMethod(Description="This method converts a temperature in " +
"degrees Fahrenheit to a temperature in degrees Celsius.")]
public double ConvertTemperature(double dFahrenheit)
{
using (Process proc1=new Process())
{
proc1.StartInfo.FileName = @"c:\folder1\folder2\testapp.exe";
proc1.start();
}
return ((dFahrenheit - 32) * 5) / 9;
}
All the testapp.exe does is create a file locally. This test app works on its own.
So when I run this, nothing happens, the testapp doesn't run and the temp isn't returned. When I tweaked it some more, the app still didn't run and IE kept coming back with a page not found because the name of the method was being appended to the end of the URL, and that obviously doesn't exit.
So, does anyone know why this is not working as expected, am I missing something? It looks simple enough and I am running this straight on the server itself.
Any help is appreciated, thank you!
--PhB.
PhrankBooth
|
|
|
|
|
The account running the web service will need permission to execute the file. It also needs permission to create a file in the folder.
---
b { font-weight: normal; }
|
|
|
|
|
Is there a way to programmatically have a select box expand its list of options? If so, how do we do this?
Thanks
|
|
|
|
|
No. How the selection is done in a select box is beyond the scope of html and javascript. To have the options expand to a list is the most common way it's implemented in browsers, but there is nothing that says it has to be done that way.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All,
This might be a really silly question but I have never attempted anything like this before, so please bare with me.
We are trying to create a web page that will take input data from a few fields (e.g. text boxes, drop down lists, ...) and write them to in a file format (e.g. XML, excel, ...) on the server.
Seeing that we have never done anything like this before, can anyone suggest how to this in the simplest manner or where to start looking?
(btw, we don't have .NET and the company won't spring for that kind of expense (we have VC6 though))
regards,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proff programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|