|
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
|
|
|
|
|
A JScript file is downloaded by the browser, so you need to set permissions on that, the same as the permissions on your HTML pages.
Since a database is only accessed from the server (from the PHP pages or something) then you only need to allow access to it from the server, not from the outside world.
Generally speaking, any file you dont want to allow someone to download, dont put it in an accessable directory. Since for a database that is accessed from PHP, it really doesnt matter where the files are (it has access to the file system of the machine)
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
My problem is this:
I have a webform with a lot web controls(inputs,ckeckboxes etc).
When I submit the form to I want to be made some client operations before sending to server: i want to modify a hidden input or the value of a input control in some way.
How do I make this? It is posible to add an onsubmit() event handler to webform although it is a form which have runat="server" and make all what i need in hat handler?
( )
thanks.
|
|
|
|
|
In some web pages when you right click on some pictures the popup menu doesn't let you to save that picture.How can I do it?I never use html or javaspript before,so can avybody tell me the EXACT CODE?
Thanks
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I'll look when I'll come home (if someone won't do it before). But what for you need it? It won't hide the source from someone who want to steal your picture.
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Philip Patrick wrote:
But what for you need it?
I don't want it for myself,some one ask it form me.
Philip Patrick wrote:
It won't hide the source from someone who want to steal your picture.
It doesn't matter if you can show the to disable "save as picture" and change popup menu.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|