|
Hi
I have set up a search with asp to connect to an index server catalog. But it is only finding asp, ppt, doc, and pdf files. I am getting no results for html and shtml. Is there something I am missing, or something that needs to be done at the server level.
Any help is appreciated.
this is my code:
<%
Dim strQuery ' The text of our query
Dim objQuery ' The index server query object
Dim rstResults ' A recordset of results returned from I.S.
Dim objField ' Field object for loop
' Retreive the query from the querystring
strQuery = Request.QueryString("query")
' If the query isn't blank them proceed
If strQuery <> "" Then
' Create our index server object
Set objQuery = Server.CreateObject("IXSSO.Query")
' Set it's properties
With objQuery
.Catalog = "d:\users\emondh\IndexServer" ' Catalog to query
.MaxRecords = 100 ' Max # of records to return
.SortBy = "rank [d]"
.Columns = "filename, path, vpath, " _
& "characterization, DocTitle, " _
& " rank, hitcount"
' Build our Query: Hide admin page and FPSE pages
strQuery = "(" & strQuery & ")" _
& " AND NOT #filename = *admin*" _
& " AND NOT #path *\_vti_*"
' Uncomment to only look for files modified last 5 days
'strQuery = strQuery & " AND @write > -5d"
.Query = strQuery ' Query text
End With
' To set more complex scopes we use the utility object.
' You can call AddScopeToQuery as many times as you need to.
' Shallow includes just files in that folder. Deep includes
' subfolders as well.
'
'Dim objUtility
'Set objUtility = Server.CreateObject("IXSSO.Util")
'objUtility.AddScopeToQuery objQuery, "d:\users\emondh\indexserver", "deep"
'objUtility.AddScopeToQuery objQuery, "d:\users\emondh\indexserver\content", "deep"
'Set objUtility = Nothing
' Get a recordset of our results back from Index Server
Set rstResults = objQuery.CreateRecordset("nonsequential")
' Get rid of our Query object
Set objQuery = Nothing
' Check for no records
If rstResults.EOF Then
Response.Write "Sorry. No results found."
Else
' Print out # of results
Response.Write ""
Response.Write rstResults.RecordCount
Response.Write " results found: "
' Loop through results
Do While Not rstResults.EOF
' Loop through Fields
' Pretty is as pretty does... good enough:
%>
<% If rstResults.Fields("doctitle") = "" Then %>
"><%= PathToVpath(rstResults.Fields("path")) %>
<% Else %>
"><%= rstResults.Fields("doctitle") %>
<% End If %>
<%= rstResults.Fields("characterization") %>
<%
' Move to next result
rstResults.MoveNext
Loop
rstResults.MoveFirst
Response.Write "
"
'Response.Write rstResults.GetString()
Response.Write " "
End If
' Kill our recordset object
Set rstResults = Nothing
End If
%>
<%
Function PathToVpath(strPath)
Const strWebRoot = "d:\users\emondh\html\"
Dim strTemp
strTemp = strPath
strTemp = Replace(strTemp, strWebRoot, "\")
strTemp = Replace(strTemp, "\", "/")
PathToVpath = strTemp
End Function
%>
|
|
|
|
|
|
i have to integrate GPS device and google earth so that when device gives longitude and latitude of a location then google earth should display the location specified by longitude and latitude of GPS device.desparately waiting for a reply.
|
|
|
|
|
|
what interface google earth gives for integration.i mean to which interface of google earth i can integrate the GPS device.waiting for ur reply.
|
|
|
|
|
|
Hi,
Could anyone recommend a book on Design Patterns
covering all major aspects.
Thanks
Best of Luck
|
|
|
|
|
|
http://en.wikipedia.org/wiki/
Click on the link and you will get all the stuffs related to Software Architect or Design Pattern
Aftar Khan
|
|
|
|
|
|
Hi,
Can anyone tell me how to generate a letter automatically in ASP.Net? I need to fill in the date and employee name for each letter that is generated. The content of the letter will be the same for all employees. The letter template is a word document.
thanks in advance,
Krish
|
|
|
|
|
If your users have Word2003, you can use native Word XML.
In Word, save your template in xml with the name template.aspx. Add the file to the project, scriplet-it so that fields became value expressions (something like <%=emplName%>).
Set content type to "application/msword" and the content-disposition to "attachment; filename='letter.doc'"
hope this helps
----------------------
!happy coding!
|
|
|
|
|
The text of the letter contained some parameters coming from the screen and others coming from the database.
How do I pass all the parameters to the template? Can you suggest some websites links as am new to xml and scripting.
thanks in advance
Krish
-- modified at 0:41 Thursday 16th March, 2006
|
|
|
|
|
I have written a client side script favoring phonetic typing in devanagari script. find same at:
http://www30.websamba.com/omkarjoshi
You need to have a unicode support font like mangal, which is available on the net as free downlods to view the unicode context.
It works fine with IE but with firefox I cant modify a keycode of the event.
Javascript console gives error at following code in firefox:
evtobj.keyCode = substitute_marathi(evtobj.keyCode)
error is:
Error: setting a property that has only a getter
Source File: <file>
Line: 732
How can I modify a keycode in case of firefox?
regards,
Omkar
|
|
|
|
|
omkar joshi wrote: How can I modify a keycode in case of firefox?
I don't think you can, but you can create a custom key event and send that:
var newEvtObj = document.createEvent('KeyEvents');
newEvtObj.initKeyEvent( 'keyup', true, true, window, false, false, false, false, substitute_marathi(evtobj.keyCode), 0 );
textArea.dispatchEvent(newEvtObj);
You'll need to make sure you don't capture and re-send your custom event, of course.
|
|
|
|
|
document.createEvent is not supported in my browser
(Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7)
Error: document.CreateEvent is not a function
Source File: file:index.html
Line: 736
I hope this should have worked, what is the issue then? I did find same type of codes on net but cantr figure out why its not working
Should I add eventListener prior to this so that It will recognize the createEvent function?
-Omkar
|
|
|
|
|
omkar joshi wrote: Error: document.CreateEvent is not a function
Lower-case 'c'?
|
|
|
|
|
what is the function in javascript thats make each character in each word in the sentence capital letter?
Militiaware
Faris Madi
|
|
|
|
|
It's not a function, is a method of the string class.
caps = str.toUpperCase()
---
b { font-weight: normal; }
|
|
|
|
|
this method will make the whole sentence to uppercase.
what i want it to make the first letter in each word uppercase?
Militiaware
Faris Madi
|
|
|
|
|
Well, you did actually ask for a function that would "make each character in each word in the sentence capital letter".
Make a regular expression that mathes the first character, and do a replace using a function that will turn the character to uppercase.
This might work:
str = str.replace(/\b[a-z]/, string.toUpperCase)
---
b { font-weight: normal; }
|
|
|
|
|
Aren't the words "function" and "method" synonyms?
/\ |_ E X E GG
|
|
|
|
|
No, not exactly.
A method can be a function, e.g. returning a value. I doesn't have to. (But that also depends on the meaning of "function". In Javascript a subroutine that doesn't return anyting is also a function.)
A function that is a member of a class is a method.
---
b { font-weight: normal; }
-- modified at 15:02 Tuesday 14th March, 2006
|
|
|
|
|
Hello,
I have a vb.net windows application in which i have a text box and submit button,when i click button the text in the textbox has to be sent to a third party webpage where there is a text box in which the content has to placed and in that webpage there is a submit button, when this buton is pressed it shows result in other wepage.All these webpage processing must not be shown to the end user,and the result of that webpage has to be displayed in the windows application.
Please help me getting this solution , this is urgent
Hemachandran munuswamy
|
|
|
|
|
You can use query string to pass the textbox's value to another web page....
<< >>
|
|
|
|