|
Well, can't help you with ASP.Net, but for sure you don't need to use any server side scripting. All code should be a client side, and at this point you don't need to know ASP, only Javascript. You may use ASP for storing scores for example
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
when I select the value does not stay or highlighted
<title>Untitled Document
function onlyOneProvide(oForm, oFormEl, oFormElHidden)
{
var sTempValue
var sTempType
if (oFormEl.type == 'select-one')
{
sTempValue = oFormEl.selectedIndex
sTempType = 'select-one'
}
if (oFormEl.type == 'text')
{
sTempValue = oFormEl.value
sTempType = 'text'
}
oForm.reset()
if (sTempType == 'select-one')
{
oFormEl.selectedIndex = sTempValue
//alert('the sTempValue'+sTempValue)
oFormElHidden.value = findSelected(oFormEl)
}
if (sTempType == 'text')
{
oFormEl.value = sTempValue
oFormElHidden.value = sTempValue
}
}
function findSelected(oFormEl)
{
var sValue = ''
if (typeof(oFormEl) == "object")
{
sValue = oFormEl.options[oFormEl.selectedIndex].value
alert(sValue);
}
return(sValue)
}
select-one
TWIG (41451)
Stone Fox - A Dog Gone Good (41407)
Letters to the King (41405)
Finance Project (37166)
Voyages en français (41352)
Histoires amusantes (41255)
Cut a Label (41221)
Class China Website (41194)
Making Choices (41146)
Tweety Birds (41127)
Alberta-Oklahoma Music Connection (40499)
All About Me Student Portfolios (40498)
Zoom! The Fastest Vehichle WebQuest! (34306)
Monthly Muir Lake Thematic Couplet Riddles (35885)
Media and Society (41246)
|
|
|
|
|
Sir.
When i update the session variable with new value. It always give me old value.But when i refresh the browser then i get new value.
How will i get new Value of session variable immediatly without refreshing browser in ASP
|
|
|
|
|
The session values are updated whenever they are set, you probably have your setting code located below the displaying code which is why you don't see that.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
How would I stop text selection from occuring...?
I have created a div which can be dragged around the screen but would to prevent people from being able to select text...?
DHTML Central has little div's that act like Windows windows...you can drag them around but cannot select the caption text.
Any ideas...?
Ondragover
Ondragstop...?
Thanx~!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
onSelectStart=return false;
Example: try to select me
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Totally sweet...
Thats it...awesome...nothing fancy and super easy to add to my exiting projects...
However I would have to add this handler to all my elements that I don't want selected...?
I could do it globally with the folliwng:
document.OnSelectStart="return false;"
This would be doucment wide now correct...?
Thanx again!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Sir.
When i firstly set one value to session variable i can eaisly access that value from session variable. but when i reintialize it again new value to the same variable i get old value.When i refresh the Browser then i get new Value .
how i will get new value without refresh the browser from session variable.
|
|
|
|
|
I would think refresh is the only way to do it. cookies are cached on the client and would require another http request to update I think...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi guys
I cant seem to create my own name for C# web services it give it a default name of webservice1, 2, 3 etc
I have seen in screenshots you can do it, but the edit box is disabled with the default name in it
Have i set it up wrong?
its the release version Prof
Wudan MAster
|
|
|
|
|
Does anyone know if it is possible to populate a Dropdown on a Form using an ISAPI extension? If so, how?
Maybe like:
<form action="Handler.asp?A_Value?" method="POST" name="MyForm">
<SELECT id=select1 name=select1>
<script src="http://thisServer/dlls/isapi003.dll"></script>
</SELECT>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
and then, in the extension dll:
void CISAPI003Extension::Default(CHttpServerContext* pCtxt)
{
*pCtxt << _T("<OPTION>value1</OPTION>");
*pCtxt << _T("<OPTION>value2</OPTION>");
*pCtxt << _T("<OPTION>value3</OPTION>");
}
Should this work or should I be approaching this an entirely different way, given my limited and totally inadequate knowledge and experience in Web development stuff.
I would appreciate any help here.
Many thanks.
code dope.
|
|
|
|
|
Well, in your case you will get an error. But look at ISAPI extension just like at another ASP file, which you are executing. Of course it is not the same, but same idea.
In the example you provided you will get such code as it will see the end-user:
<script src="http://thisServer/dlls/isapi.dll">
<option>value1</option>
<option>value2</option>
<option>value3</option>
<script>
And this is actually not a script. You need to output a working Javascript here, which will add options into your select. Here is an example:
void CISAPI003Extension::Default(CHttpServerContext* pCtxt)
{
*pCtxt << _T("select1.options[select1.options.length] = new Option(...);");
}
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Thanx for the reply.
Yes, that worked fine. I suppose I really ought to get a good book on JavaScript instead of just trying to learn it as I go along. This is my first Web project so I'm not really used to working with so many different "languages" at once - HTML, JavaScript, ASP, ISAPI and geting my head around how they come together has not been easy. I usually work with C++ (MFC) with a bit of SQL.
Thanx again.
code dope.
|
|
|
|
|
Hi guys, this should be a simple one. I've just dived into ASP .NET via Visual Studio .NET. First thing I did was drop a panel with a few radio buttons in it onto a web form and populated their OnCheckChanged event handlers. I then put a breakpoint in there. But when I try to break into that code, it simply doesn't. I experimented with a button control and I'm able to break into the ButtonClicked event handler. I checked my debug configurations as per MSDN but all seems in order there.
I must be missing something very trivial but I can't figure it out just now.
Regards
Senkwe
Just another wannabe code junky
|
|
|
|
|
When working w/client side cookies (Jscript) how would I over write a cookie...?
document.cookie = "Person=John Doe; Address=One Elgin"
If I wanted to over write this cookie would the following do the trick?
document.cookie = "Person=John Dope; Address=One Elgin"
Does this replace the existing cookie, or just add another almost identical cookie...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
|
Sweet...All I needed to hear...
Same domain yup...
I'm not specifiying any default's
No shttp, domain, path...nothing, just name=value pairs and the date of course.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Sir,
Instead of making manually refesh page (Clicking on refresh icon on browser)
is there any command available in ASP for automatic refresh page?
Pls Help Me
waiting for reply.
|
|
|
|
|
With ASP? it is a server side language. You cannot from server refresh client's browser
You can write Javascript out to browser with ASP, which (JS) will refresh browser when you need it
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Not ASP, but plain HTML... You could add the following tag inside the <head> tag:
<meta http-equiv="refresh" content="60">
(content is the number of seconds)
|
|
|
|
|
add this sentence at the head of file
|
|
|
|
|
One more thing.
I think this makes sense, but can I call a perl script (or asp for that matter) that resides on my website, from another website all togather...?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Don't ask me about web services and SOAP, but one easy way to do it is just to get whatever ASP page is running on one website to make a simple HTTP request (using GET or POST to pass parameters if necessary) to the other server, and just parse the output.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Thats all I wanted to do...I just wanted to know if it was possible...or if I was going to get some stupid access error or something.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
When I ftp files to a server anybody could download them right...?
I would have to chmod the file thingies in order to prevent unwanted downloads...?
I couldn't do this with a JScript file though because then the browser wouldn't be able to render the document properly correct...?
When would I use file restrictions...? On a database which I wanted no one to have access to...?
You would write a intermeditae script to access the info in the database instead...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|