Click here to Skip to main content
15,892,298 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: I need help with an Javascript exercise! Pin
Eddy Vluggen16-Jul-22 4:46
professionalEddy Vluggen16-Jul-22 4:46 
GeneralRe: I need help with an Javascript exercise! Pin
Richard MacCutchan16-Jul-22 4:51
mveRichard MacCutchan16-Jul-22 4:51 
GeneralRe: I need help with an Javascript exercise! Pin
Eddy Vluggen16-Jul-22 5:00
professionalEddy Vluggen16-Jul-22 5:00 
AnswerRe: I need help with an Javascript exercise! Pin
Gerry Schmitz16-Jul-22 5:49
mveGerry Schmitz16-Jul-22 5:49 
Questionextract value from json Object in Node JS Pin
janaswamy uday12-Jul-22 7:23
janaswamy uday12-Jul-22 7:23 
AnswerRe: extract value from json Object in Node JS Pin
Ben Code15-Aug-22 23:59
Ben Code15-Aug-22 23:59 
QuestionWebView2 - Send Script with a Value Pin
Alan Burkhart5-Jul-22 9:28
Alan Burkhart5-Jul-22 9:28 
AnswerRe: WebView2 - Send Script with a Value Pin
Richard Deeming7-Jul-22 2:19
mveRichard Deeming7-Jul-22 2:19 
GeneralRe: WebView2 - Send Script with a Value Pin
Alan Burkhart7-Jul-22 14:05
Alan Burkhart7-Jul-22 14:05 
GeneralRe: WebView2 - Send Script with a Value Pin
Richard Deeming7-Jul-22 21:42
mveRichard Deeming7-Jul-22 21:42 
GeneralRe: WebView2 - Send Script with a Value Pin
Alan Burkhart8-Jul-22 0:24
Alan Burkhart8-Jul-22 0:24 
QuestionRotate text Pin
Rockallica13-Jun-22 13:57
Rockallica13-Jun-22 13:57 
AnswerRe: Rotate text Pin
Graham Breach13-Jun-22 20:58
Graham Breach13-Jun-22 20:58 
GeneralRe: Rotate text Pin
Rockallica14-Jun-22 8:38
Rockallica14-Jun-22 8:38 
QuestionLaravel 8 integred databending in JS Pin
paradox0210-Jun-22 7:13
paradox0210-Jun-22 7:13 
Questionissue with my app Pin
james michael May20225-Jun-22 2:27
james michael May20225-Jun-22 2:27 
QuestionDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Pin
Member 1564789823-May-22 19:35
Member 1564789823-May-22 19:35 
AnswerRe: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Pin
Richard Deeming23-May-22 21:19
mveRichard Deeming23-May-22 21:19 
PraiseQ Pin
Daniyar Saydullaev22-May-22 7:00
Daniyar Saydullaev22-May-22 7:00 
AnswerRe: JAVA Assigtment help for 100$ 1h help needed Pin
Richard MacCutchan22-May-22 21:46
mveRichard MacCutchan22-May-22 21:46 
QuestionLookup against a large SharePoint list with CAML Query Pin
Hilario Dsouza6-May-22 9:41
Hilario Dsouza6-May-22 9:41 
I have a SharePoint List (list_dls) which has all the Email addresses. The list has a single column with Field name "Title". I need to validate that the Item in the "LookupField" is contained in the 'list_dls'. The list has over 5000 emails, hence I will need to do a CAML query. The script does not seem to find the item. Any ideas to get it to work would be really appreciated.

Here is the code.

JavaScript
<pre><input type='button' value='get Lists' onclick="PopulateLookupField();"/>
<p id="demo"></p>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script language="javascript" type="text/javascript">

var LookupField = 'lnam@xyz.com';

function PopulateLookupField() 
{
    var clientContext = new SP.ClientContext.get_current();
    var LookupList = clientContext.get_web().get_lists().getByTitle('list_dls');
    var camlQuery_list = new SP.CamlQuery();
    camlQuery_list.ViewXml = @"<View Scope='RecursiveAll'><ViewFields><FieldRef Name='ID'/><FieldRef Name='Title'/></ViewFields><RowLimit Paged='TRUE'>5000</RowLimit></View>";
    LookupList<ListItem> allListItems = new LookupList<ListItem>();
    do
    {
        var listItemCollection = LookupList.GetItems(camlQuery_list);
        clientContext.Load(listItemCollection);
        clientContext.ExecuteQuery();
        allListItems.AddRange(listItemCollection);
        var ItemFound = listItemCollection.Where(item => item.FieldValues["Title"].ToString().Contains(LookupField); 
        if(ItemFound !== null){break;}
        camlQuery_list.ListItemCollectionPosition = listItemCollection.ListItemCollectionPosition;
    } while (camlQuery_list.ListItemCollectionPosition != null);
    clientContext.load(ItemFound);
    alert("ItemFound = " + ItemFound);
}
</script>

QuestionReact.Js Pin
Regis Valoch Tangou1-May-22 6:14
Regis Valoch Tangou1-May-22 6:14 
AnswerRe: React.Js Pin
timDeHof3-Jul-22 3:30
timDeHof3-Jul-22 3:30 
QuestionAngular exceljs adding an image gives the error: u.readFile is not a function at exceljs.min.js:3:449768 Angular application Pin
Stephen Holdorf25-Apr-22 8:54
Stephen Holdorf25-Apr-22 8:54 
AnswerRe: Angular exceljs adding an image gives the error: u.readFile is not a function at exceljs.min.js:3:449768 Angular application Pin
Richard Deeming25-Apr-22 21:10
mveRichard Deeming25-Apr-22 21:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.