background preloader

Programmeren

Facebook Twitter

Paul Galvin's SharePoint space: WSS: Technique for creating CAML field definitions. Blog Archive » AutoCompleter Tutorial - jQuery(Ajax)/PHP/MySQL. AutoCompleter Tutorial As always, links to a demo and ZIP at the bottom, Enjoy! I thought i would write this tutorial because most of the auto completer applications i have seen just dump the code into a zip and tell you how to use it rather than how and why it works, knowing about this enables you to customise it a lot more (this has been demonstrated with the other apps i have written here)! And so we begin:JavaScript JS Explaniation Ok, the above code it the guts to the script, this allows us to hook into the rpc.php file which carries out all the processing. The Lookup function takes the word from the input box and POSTS it to the rpc.php page using the jQuery Ajax POST call.

IF the inputString is ’0′ (Zero), it hides the suggestion box, naturally you would not want this showing if there is nothing in the text box. to search for. ELSE we take the ‘inputString’ and post it to the rpc.php page, the jQuery $.post() function is used as follows… $.post(url, [data], [callback]) PHP Explaination. Free SharePoint Web Parts (3rd Party) - The Boiler Room - Mark Kruger, Microsoft SharePoint MVP. Javascript to Parse URLs in the Browser. E-Xperimenteren+ - Whitepapers. Sharepoint 2003: Auto Open List Attachment « Ideas for free.

English: Actually this is a query from one of our client. They ask me how to make some list items automatically open its attachment. Although this can be done programatically, but I prefer Javascript approach. Many task in web application can be accomplished using Javascript. Sharepoint using Javascript to create dynamic view for the users. For example you open DispForm.aspx of a list, it will dynamically hide/show Attachments information. List item with attachment will show, Attachments row just like this picture, while list item without attachment will hide the Attachments row. It all provided by Sharepoint using simple Javascript that checks whether “idAttachmentsTable” object has rows defined. So, start to open DispForm.aspx of the list, and insert custom javascript just above closing </BODY> tag. Save the modification, and if you click on list item with attachment, it will open the attachment automatically.

Like this: Like Loading... Basisconstructies.