.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

search data in xml using javascript

Posted By:      Posted Date: August 25, 2010    Points: 0   Category :ASP.Net
 

hi,

  I have this problem regarding searching within a XML file.
the
idea is that my search will be based on the keyword entered
in by the user from a HTML form. the keyword is then used to search all
the nodes and the child nodes within a XML file. once the match
is found, i will have to display the results.

But i don't know how to do so - especially the part of searching xml file using javascript

Can
anyone help me in this?


thanks in advance

azam




View Complete Post


More Related Resource Links

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

  
If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.

SharePoint Portal Server 2001: Search and Access Disparate Data Repositories in Your Enterprise

  

The knowledge worker is greatly empowered if she is able to access information across the enterprise from a central access point. With the SharePoint Portal Server 2001 Search Service you can catalogue information stored in Exchange public folders, on the Web, in the file system, and even in Lotus Notes databases. This article discusses the use of ActiveX Data Objects and the Web-based Distributed Authoring and Versioning protocol for creating search solutions based on SharePoint Portal Server 2001.

Kayode Dada

MSDN Magazine April 2002


Enable Go Button after entering data in all fields using javascript funtion

  

Hi friends,

My page is having one gridview with check boxes,two textboxes and one button just like this see this link now i want to enable go button whenever user has select checkbox in gridview and he needs to enter text in two textboxes. i have written onkeyup event for two textboxes to test whether user enter text in textboxes or not but i am unable to write javascript function to check whether user has selected checkbox in gridview or not to enable go button .My requiremnet is user need to enter three inputs select atleast one checkbox in gridview and he needs to enter text in two textboxes.please friends pls tell me how to write javascript function to find whether user has selected the checkbox in gridview or not


how to search the table name on th basis of data.

  

is there any way to search the table name containing a specific data  in a given database.

for example, if i have any data, say "Euro" in hand, and i know any of the table in database contain the given value, however i'm not sure which table. So if i can list out the table anyhow containing the data in hand. 


Is data mining techniques better than using fulltext , soundex , pattern to search records? heres my

  
<!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:27487746; mso-list-template-ids:77652700;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} @list l1 {mso-list-id:297423348; mso-list-type:hybrid; mso-list-template-ids:1760099356 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 {mso-level-tab-stop:66.0

showing modalpopup and saving data to database simultaneously using ajaxtoolkit and javascript

  
hi,i have a button ,i want that when i click on that button the data should be saved in the database as well as at the same time a modal popup should display the customerid .i have written the code as <asp:button id="save1" runat="server" onclick="Button4_Click" style=""z-index:" mode="hold" xmlns:asp="#unknown" /> left: 740px; position: absolute; top: 304px" Text="save"/> <asp:panel id="panel" runat="server" xmlns:asp="#unknown">  /asp:Panel> <ajaxtoolkit:modalpopupextender id="MPE" runat="server" targetcontrolid="save1" xmlns:ajaxtoolkit="#unknown"> PopupControlID="panel" DropShadow="true" BackgroundCssClass="modalBackground/> protected void Button4_Click(object sender, EventArgs e) { string id = TextBox1.Text; string name = TextBox2.Text; string cn = "Data Source=hcl;Initial Catalog=mydata;Integrated Security=True"; SqlConnection con = new SqlConnection(cn); SqlCommand cmd = new SqlCommand("insert into customer values (@id,@name)", con); con.Open(); cmd.CommandType = CommandType.Text; cmd.Parameters.Add("@id", id); cmd.Parameters.Add("@name",name); cmd.ExecuteNonQuery(); con.Close(); CUSTID.Text = id.ToString(); MPE.Show(); }

Copy Search Meta Data

  
Not sure if this is possible.  I have a bunch of search meta data configured on my dev server.  Is there a way to copy the search meta data to my stage server?

Block content/documentation search for sensitive data.

  
I want to hide sensitive document from search result for normal users. Where same document will be available in search result for Marketting group. I think crawl rule is not going work here. Does anybody has any idea?

Search Server 2010 Express Error when crawling LOB Data with BCS Error while crawling LOB contents.

  
Ok so search server is crawling our BCS external data source which has some columns that allow null. When it hits a null in one of these columns it dies out with: Error while crawling LOB contents. ( '.', hexadecimal value 0x00, is an invalid character. Line 94, position 11. ) This is in the crawl log Is the a Fix / Update / Work around for this (other than modifying the table, taking off allow nulls and using a "blank" default value)

Search Multiple Data Base

  
Hi,I am working on a Large Database application .  I have 5 Product catalog database   with atleast 5+ million product information on each .  database is deployed in multiple servers. . when the user performs a search it should search in 5 different database and combine the  results to show in the search results.product row has a priority key and based on the priority i need to show the results. In case if same results is found  in all the five  database then we need to group the result and shows the count in result column.For exampleIf Product1  is exist inn all the five database database  then i need to show Product1 - count=5and also we have priority index for showing the result . default search should be sort by priority  .Can any body let me know what will be the best approach to do the search on this multiple  database and  process this data to find the duplicates and sort accurding to the sort index..(we are also planing to restrict the max result from each data base) . Thanks

hide gridview column using javascript. working in ie and firefox but In firefox, gridview data is sh

  

function EnableDisableGridViewColumn() {
               var AdvanceSearch = document.getElementById('<%= chkboxlist1.ClientID %>');
               var chkList = AdvanceSearch.getElementsByTagName("input");
               var dgTest = document.getElementById("gridview1")
               if (dgTest != null)
               {
                   for (var i = 1; i < dgTest.rows.length; i++) {

                       if (chkList[0].checked == true && chkList[1].checked == true) {
                           dgTest.rows[0].cells[0].style.display = "block";
          

Saving data in javascript from codebehind and use data in other javascript functions

  


In the Page_Load event I want to write some data in javascript which can be used later via a javascript function.

PSEUDO CODE
Protected Sub Page_Load
'get data from database
    SELECT * FROM locations
'write the data in javascript
    Me.Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "ScriptKey", "var sDataArray = MultiDimensionalArray(0, 3);sDataArray[0][0]='THIS IS SOME DATA';", True)

End Sub


Then in the ActiveTabChanged event of the tabcontrol I want to use that data:


 function ActiveTabChanged(sender, e) {
     if (sender.get_activeTabIndex() == 1) {
         alert(sDataArray[0][0]);
         __doPostBack(sender.get_id(), sender.get_activeTabIndex());
     }
 }
 
 
 How can this be done?


SharePoint 2010 search , external data and refinements

  
Hello All,
I have an external list "Category" from NorthWind database in my SharePoint site. I have a SharePoint list "Vendor" which has lookup column from this category list. Now how I can configure to show refinements based on my categories in Category List. So if I search for some vendor, I will get refinements based on CategoryName.
Shail

BCS data caching in Search Server 2010

  
I am using BCS to pull Oracle data into a SharePoint external list via an .asmx web service so that it can be indexed and searched in Search Server 2010.  I created a .NET connector assembly which implements ReadItem() and ReadList() methods to accomplish this.  Both methods call web service methods to either retrieve a record by id or the entire list of data, respectively.  The data retrieved by the web service is done so using an Oracle stored procedure.  

The data retrieved by the web service is refreshed in the Oracle database on a nightly basis by perl scripts.  Because of this, search results muct also reflect any changes on a nightly b

How to Configure search for meta-data based retrieval of documents into Document Libraries?

  

I need to crawl update of newly created/updated documents within document libraries. My understanding says i need to create the new content source and associate the crawls.. and newly created and updated documents would be crawled in the next sceduled incremental crawl. But my question is how i can create the dadicated content source for document libraries as the content as there is no such content source type.

Any suggestion or workaround would be greatly appreciated.

 


Trilochan

BCS data caching in Search Server 2010

  
I am using BCS to pull Oracle data into a SharePoint external list via an .asmx web service so that it can be indexed and searched in Search Server 2010.  I created a .NET connector assembly which implements ReadItem() and ReadList() methods to accomplish this.  Both methods call web service methods to either retrieve a record by id or the entire list of data, respectively.  The data retrieved by the web service is done so using an Oracle stored procedure.  

The data retrieved by the web service is refreshed in the Oracle database on a nightly basis by perl scripts.  Because of this, search results muct also reflect any changes on a nightly b

Search data from sharepoint list and populate repeating table (Seach text should be entre in first f

  

Hi All,

I am newbie to infopath.

I have assignment to search data from sharepoint list and display it to repeating table. Below is the case in detail.

i. User enter search text in first textbox of repeating table.

ii. After text enter you will Enter or click tab button.

iii. As user press Tab /Enter, the other textboxes of repeating table will populate with data automatically.

iv. If searched data rows are more then one, then dynamically add new row's in repeating table and  show searched data.

I am working at offical assignment and it's deadline is very tough. i had made extensive search at google and msdn forum but unable to accomplish. I would appreciate and thanks is some provide me solution in form to a small infopath application and code snippet.

 

Regards,

Mehar


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend