|
Colin Angus Mackay wrote:
You mean like a DOS .bat file?
Exactly, That link was perfect. Much appreciated Colin!
|
|
|
|
|
I have a simple http webserver in c# and it works fine, but how can I let my webserver support asp,
so that I can call *.asp files in my virtual web server directory?
Looking forward to any suggestions!
Knack
|
|
|
|
|
an someone tell me how to send a value from my popup window to a text box in the referer document?
I have a main page with a button that opens a window. The users clicks a button on the popup. Now I want he value fro mthe click to populate a text box on the main page. I am using javascript.
Thanks
|
|
|
|
|
On the page that will call the popup, set your link to something like this:
<A href="javascript:calendar_window=window.open('[popup-name].aspx?formname=Form1.DueDate','calendar_window','width=210,height=188');calendar_window.focus()">
Select New Due Date</A>
You will need to insert a literal control onto your popup page first. In the event method that fires to show your user has selected whatever, you will need to put this string into your literal control:
<script language='javascript'>
window.opener.(Request.QueryString["formname"]).value = '[new value]';
window.close();
</script>
Obviously, replacing the form name item and the new value item with something specific to your situation.
Pegmeister
|
|
|
|
|
Hows everyone doing..
I have just recently created a few reports for this web app we are working on. Upon constructing the reports and connecting them to some stored procedures i noticed that the parameters passed to the report only allow a single selection for a specific parameter.. for example if you have an employee parameter it only allows a single selection which sucks if you want the used to be able to pick a few employees.
i was wondering if anyone had information on creating or modifying the current reporting Service Api that renders reports so that one could create custom parameter selection tools.
here is an example of what im looking for.
http://dspace.dial.pipex.com/town/drive/xxg48/CustomParameters.html
any information would be great!
|
|
|
|
|
Hi to All!
I am developing an ISAPI filter for IIS 6.0 providing Customized "Basic" Authentication for specific folders and files with users defined in a file not of NTLM.
Now i have a problem executing this filter on IIS. When a secured resource is accessed then user name is checked in local variable. If user name not found then I call "pCtx->ServerSupportFunction" with 401.4 response and return a "SF_STATUS_REQ_FINISHED" from "OnUrlMap". But suprisingly session not ended as expected but the method "OnUrlMap" called for 3 to 4 times and finally browser shows a Login Box.
But here is another problem. during these calls, after first "OnUrlMap" call the Filter's "OnSendResponse" called by "HttpStatus" of 401 and followed by Last call of "OnUrlMap" there is another "OnSendResponse called with Statuts 200. And as a result when first Login Box is canceld then no events fired in filter and protected page opened in Browser.
These behaviours not repeat if one failed logon occour i.e. "Authentication:" header is readed in "OnPreprocHeader" and "pCtx->ServerSupportFunction" was called with 401.4.
Is their any one to help me resolving these issues? I am very much Thankfull to them.
|
|
|
|
|
<script language="Javascript">
<!--
function test(grade)
{
if(grade > 70)
document.write(" Passed");
else
document.write(" Failed");
}
document.write("C1 "+ test(65) + "<br>");
document.write("C1 ")+ test(65)+document.write("<br>");
//-->
</script>
I am getting following results:
FailedC1 undefined
C1 Failed
|
|
|
|
|
2 things:
firstly, put the function above your body tags. then you won't get the first "Failed".
secondly, since you're using a document.write in your function, why do you need to put the result of that function - which is nothing, hence the "undefined" - in the first document.write? either your function should return the value (which is why you would then use the first document.write scenario) or you must take the call to the function out of the document.write (as is the case with the second scenario)
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
Thanks raoul
Ranjan Goyal
|
|
|
|
|
I created Portal Site using English version of SPS2003 that installed in my
machine, can I export that Portal Site to another machine that has different
language version of SPS2003 like Arabic?
|
|
|
|
|
I am trying to add a search to a website. The web server is running WIN 2K. I get the indexing service and catalog set up correctly cause the built in query works, but when I search with my ASP page it comes up blank. Am I missing a setting or does my code just not work? I just started with the sample code.
SEARCH PAGE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Index Server Example Search Form</title>
</head>
<body>
<form method="POST" action="SearchResults.asp" name="frmSearch">
<p><input type="text" maxlength="255" name="query" size="20" value>
<input type="submit" value="Search" name="B1">
</p>
</form>
</body>
</html>
RESULTS PAGE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Index Server Example Search Results Page</title>
</head>
<body>
<%
Dim sSearchString
Dim oQuery
sSearchString = Request.Form("query")
Const SEARCH_CATALOG = "IS-Sample" 'remember to change this
%>
<%
Set oQuery = Server.CreateObject("IXSSO.Query")
oQuery.Catalog = SEARCH_CATALOG
oQuery.Query = "@all " & sSearchString & " AND NOT #path *_* AND NOT #path *downloads* AND NOT #path *images* AND NOT #filename *.class AND NOT #filename *.asa AND NOT #filename *.css AND NOT #filename *postinfo.html"
oQuery.MaxRecords = 200
oQuery.SortBy = "rank[d]"
oQuery.Columns = "DocAuthor, vpath, doctitle, FileName, Path, Write, Size, Rank, Create, Characterization, DocCategory"
Set oRS = oQuery.CreateRecordSet("nonsequential")
%>
<%
If oRS.EOF Then
Response.Write "No pages were found for the query <i>" & sSearchString & "</i>"
Else
Do While Not oRS.EOF
Response.write "<b>FileName:</b> " & oRS("FileName") & "<br>"
Response.write "<b>doctitle:</b> " & oRS("doctitle") & "<br>"
Response.write "<b>Size:</b> " & oRS("Size") & "<br>"
Response.write "<b>Create:</b> " & oRS("Create") & "<br>"
Response.write "<b>Write:</b> " & oRS("Write") & "<br>"
Response.write "<b>Characterization:</b> " & oRS("Characterization") & "<hr>"
oRS.MoveNext
Loop
End If
%>
<%
Set oRS = nothing
Set oQuery = nothing
%>
</body>
</html>
|
|
|
|
|
Hi,
in my website logs, I see that a lot of people are going to my online store and don't seem to have cookies enabled. So I was wondering if it was better to use a database to keep track of a shopping cart or most websites rely on cookies?
What's the standard? Cookies or database?
Thanks!
|
|
|
|
|
I dn't know what others do, but I'd go for Database (probably because I detest cookies (accept if you can eat them )), if you do use cookies you should check if the user accepts them...
good luck.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
You only really want to store an ID in a cookie, not the whole basket and other details. Cookies are fickle too, users can clear them, they can expire, they only hold so much data etc. etc.
regards,
Paul Watson
South Africa
The Code Project
|
|
|
|
|
Yeah, I made the switch to a database yesterday. It was a lot less work than I thought it would be!
|
|
|
|
|
if the overhead of running your shopping cart through the database server is too high, and you don't mind expiring variables the in-process session state server works really well for this. Just add your basket class as a session variable.
'Cause I'm living on things that excite me, be it pastries or lobsters or love... I'm just trying to get by, being quiet and shy, in a world full of push and shove...
Jimmy Buffett - The Wino and I know
|
|
|
|
|
Hello everyone,
I am a complete newbie here so please forgive my ignorance but I am trying to learn a little on how to write script and one small project I want to do is create a web-based Yahtzee game specifically for my website but instead of numbers on the dice I want to add pictures on them.
I know enough about java script to be able to manipulate the image files to make it work but I need a java script for a game like that. Does anyone know where I can find one or have some simple ideas on easy alternatives to making this game.
Thanks for your attention.
www.robotechmuseum.com
|
|
|
|
|
There is a javascript dice roller here:
http://javascript.internet.com/games/dice-roller.html
It may help you out.
|
|
|
|
|
Actually, I am looking for an actual Yahtzee style clone game that keeps track of scores and such but can allow for the sides on the dice to be changed to pictures. It would kind of like a Yahtzee Jr. game that uses pictures instaed of the numbers 1-6.
|
|
|
|
|
I have a C# web application which need to use an ActiveX in it. I can find some article on ActiveX using C++, I am unable to find a sample of C# call ActiveX. I am not sure if ActiveX only comes with C++?
If you have some ideas about this, or some sample code/article, please let me know.
Thanks a lot.
Kevin
|
|
|
|
|
hi all,
lets say that i created a table dynamically on javascript by this command:
var DummyTable = document.createElement ( 'table' ) ;
how can i insert (render) this element into the document object or lets say other objects like DIV?
please write me the command for this.
|
|
|
|
|
sorry for such a silly question, seems that i was in rush for answer without even thinking about it, i forgot all about the document.all, anyway what i need now is to have a deep copy for an existing HTML Table that is rendered so i can perform processing at it then replace it with the HTML Table that i alreadt have in the document, remember what i want is a deep copy not just a reference to the table that i already have... thank alot for being patient.
|
|
|
|
|
Inside an html document, what is it that is required to open a file when you clik a link or button?
|
|
|
|
|
a path to it
ByMindOnlyYouCanDoIt
|
|
|
|
|
A link just needs the href filled out to point to the file (e.g. href="http://www.123.com/myfile.doc" ) but for a button you will need to use some JavaScript to redirect the browser to the URL (e.g. onclick="document.location = 'http://www.123.com/myfile.doc'" ).
regards,
Paul Watson
South Africa
The Code Project
|
|
|
|