Create New XML File In SharePoint?

Dec 20, 2010

I'm developing an org chart for my company and I want to spend some effort to make it interactive. I'm utilizing the Google Visualization API Org Chart tool and writing JavaScript to extend the basic functionality provided by that framework. This is the general plan that I've devised so far (note that I'm somewhat experienced with programming in general, but very new to web development):

(1) I need to store everything on my company's SharePoint site. So far, I've successfully uploaded an HTML file with some JavaScript that loads the appropriate Google Vis API onto the SharePoint. In the same directory, I've uploaded an XML file that contains some sample organizational data. I've employed XMLHttpRequest to read that XML file and draw the org chart. That seems to work well.

(2) I've written some JS functions to create new individuals in the org chart (at the Google DataTable level, not the XML level) and delete selected individuals. After the user makes these changes, I want to provide the option to save the displayed state of the OrgChart in a new XML file that sits in that same directory. I'm not sure how to do this. I've been searching on the web for a while. I don't know how to use the XMLHttpRequest object to create a new XML file on the server.

(3) Once I figure out (2), I'd like to also rename the other XML files to store old copies of the XML database so that I can restore data if I need to. I think this boils down to: How can one manage and rename files on the server side using JS?

Perhaps I'm looking at this using too limited a set of tools. If this is the case, please let me know and point me to the correct place. Remember though: I need to do everything from SharePoint. I doubt that I can load code or run processes on the SharePoint server because I'm just a simple SharePoint user. I can simply load documents (HTML files, XML files, etc.) onto the site.

View 1 Replies


ADVERTISEMENT

JQuery :: Create Copy Of File On Server Change It And Create Download Link On Page?

Dec 16, 2011

I have files on the server: .txt, .xml, .config, and "no extension" - all editable with notepad.

User will write some input, it will be added to file in specific place.

I need an ability to change element value in file (in one of them - depends what user choose) (or it even can be some trigger word it-self like CHANGE_ME for not to use attributes)

Create a temporary copy of edited file and create a unique temporary link to it.

I don't know what to start from.... For now I know how to make XHR, but what to do with other extensions?

Have no idea how to save the NEW file (a copy of original file) on server , and create a UNIQUE link ,and delete the file right after it was downloaded.

I can find a specific word in xml file, but how to change it?[code]...

View 3 Replies View Related

HTML In Sharepoint 'Content Editor Web Part'

Feb 1, 2010

I'm trying to put in my javascript codes and html codes into the sharepoint "content editor web part" source editor.i have this set of javascript codes that needs to work together with the html codes.i created a link using ahref with the tagname as "homepage". i want to hide this "homepage" link using javascript codes.this is the codes that I'm using right now. the html part is working fine[the link "Homepage" is being display and is able to click on] but not for the javascript part.

View 7 Replies View Related

JQuery :: Replace Unique Sharepoint ID With Script Based On Id* Or Id$?

Dec 22, 2011

I have a sharepoint site which I am integrating into and I wrote a hundreds of custom functions on my HTML demoin oldschool plain javascript based on the Unique IDs of the elements, however sharepoint 2007/or ASP.NET seems toprepend unique IDS with a long string of crap, the string of crap ('which I shall now refer to as the crapstring') changes based on which page you are on ("eg txtNameValue becomes zctl00_ctl16_g_b132ca0b_b2ad_4e2b_a5e0_8babbb67ff22_ctl00_txtNameValue'"). I found a piece of code in oldschool javascript which works on a page by page basis however I need something I can include in the header that performs the same function across all pages. I was thinking of something in Jquery that works on id*=

[Code]...

View 1 Replies View Related

JQuery :: Using Context Menu Plugin In Sharepoint 2010

Dec 2, 2010

I try to use the Plugin in SP. The problem is, that the offset is calculated wrong when using it in a Webpart. So the contextmenu is always displayed a litlle bit more to the right and a litle bit more to the bottom of the page. Playing with the left and top values using firebug i have figured out, that the top left corner is inside the webpart right underneath the title of the webpart.

Is there a way to manipulate the plugin so the position of the menu is corrected?

View 2 Replies View Related

Update A Sharepoint List (Document Library) Folders Using Web Services?

Jan 6, 2010

I would like to Update a Sharepoint List (Document Library) Folders using Web Services with Javascript.

I have searched on Goggle but nothing that updates a document Library using UpdateListsItem method & with it being a clientside i need to pass NT Credentials to the List

View 1 Replies View Related

JQuery :: Adding ID Where Cssclass=myclass - Customize Navigation In SharePoint 2010

Aug 2, 2011

My first foray in using JQuery - trying to customize navigation in SharePoint 2010. Have adapted some jquery found online through various sources to meet needs. However, having an ID assigned to the <ul> element that drives my menu is required. SP, while dynamically building menu does not assign and ID to the ul element. Been trying, unsuccessfully thus far, to use jquery to add and ID tag to the proper ul... just wanted to see if that is in fact possible and for any tips in implementing.

Output is <ul class="root static"> and I would like to replace it with <ul class="root static" id="menu">

I have been successfully in simply replacing the cssclass (which doesn't actually help me) and in replacing regular text in the body, but just can't get that ID added to the element.

View 2 Replies View Related

JQuery :: Get The Number Of Itmes Existed In List In Sharepoint 2010 Designer

Oct 7, 2011

I am working onSharePoint2010.I want to know total number of items existed in list.I have list with 15 items , When i show list as "Single Item Form" on DataFormWebPart using designer ,At the bottom of it is showing me the pages as 1-1 .And when i move to next page it is showing me as 2-2 .Instead of showing me as 1-15,2-15 ,As 15 are the totalitemsin my list. When i pointed my mouse to bottom of the paging column,I see <xsl:value-of select="$FirstRow" /> for showing first row .And<xsl:value-of select="$LastRowValue" />. how can ,I get total items of list usingj query

View 3 Replies View Related

Create File Window

Mar 29, 2007

how to i create a button which open a file window from where i select any file and then it pass the file data into the list box. Basically in this file i have only 6 digit
numbers which i need to process into the listbox.

View 1 Replies View Related

Create A Variable File?

Feb 15, 2009

How would this be written on .js file. I need to create a variable named dateString which is equal to the following text string: weekday, month, day, year.where weekday is the name of the weekday, month is the name of the month, day is the day of the month, and year is the four-digit year value. (HINT: Use the wdayName array using thisWDay variable as the index value to display the weekday name, the monthName array along with the thisMonth variable to display the month value, and the this Year variable to display the year value.)

View 1 Replies View Related

Create A Player For A Swf File?

Mar 24, 2010

how to create a player for a swf file so it doesnt' constantly loop?I want to create a page with a series of videos on it. I'd like to have them all on the same page like youtube does. That way, people can just click on whichever video they want to watch, and watch it on that page. So, I need a player with a stop, pause, play button etc. Is this possible with javascript?

View 4 Replies View Related

Create An Excel File With Javascript?

Jul 23, 2005

I have a situation where I'm displaying some information in a table on
a web page. I've given the user the ability to make several different
"queries" and show different sub-sets of the data.

I would like to add a button to the page that would allow the user to
create an .XLS file that would contain the current contents of the
table. I realize that I could create it on the server and allow him to
download it but I'd rather let him create it right there on his
machine. Is it possible to have a script that can do such a thing?

View 7 Replies View Related

Create Div And Place Php File Content In There

Mar 4, 2009

I want to create a div tag and place the: includefiles/highlight_getText_forum.php?"+getKeyURL's content in there.

So far there are no errors but it's not working:

Code:

View 2 Replies View Related

Create Hyperlink With The Object Of *.swf File?

Aug 28, 2010

I like to create a hyperlink by html or javacript.

In the swish file, there are no hyperlink. But i like to create a hyperlink by writing code as like as image or a text.

View 5 Replies View Related

Create CSV File From HTML Table?

Feb 17, 2009

I have a table on my website displaying a list of members details. I would like to create a script where when a button is actioned, the table can be downloaded in a CSV file.

I have found an example using Excel, but it needs to be CSV as this script will be ran on a linux server.

View 4 Replies View Related

Way To Create New File On Local Drive

Sep 3, 2009

Is there a way to create a new file with JavaScript. I have a script on a local drive and I need to create a file (XML) that i can then read off.Is this possible?

View 1 Replies View Related

Create Text Field In Pdf File?

May 19, 2009

I need to create text field in pdf file, the task skip two days from current date excluding holidays and weekend.

View 1 Replies View Related

Ajax :: How To Create XML File Filled With Data

Oct 5, 2009

I m getting problem while creating a dynamic website. In Ajax I have good tutorial book. but it missing, "how to create XML file filled with data which comes from SQL server. How to retrieve the data from XML file.

View 1 Replies View Related

Create Or Modify Existing CSS File At Run Time

Jan 23, 2011

Is there any way in java to read the existing css file and to modify it at run time?? Or Can we create a CSS file at runtime and use it

View 2 Replies View Related

Create Div And Place Php File Content In There - Getting Error ?

Mar 4, 2009

I have a creating_hi.php file that simply says hi

Code:

I'm getting this error: Error: c is null Source File:[url] Line: 42

View 2 Replies View Related

JQuery :: How To Create Simple File Upload Using Ajax

Feb 6, 2010

I'm actually new on jquery ajax. I just wanna ask a little idea about how to create simple file upload (with form) using ajax. I tried using this code:
//form html
<p id="status"></p>
<form id="form1" enctype="multipart/formdata">
<input type="file" id="photo" name="photo" />
<input type="submit" id="save" name="save" value="Upload" />
</form>

//php file
if($_POST){
$name = $_POST['photo']['name'];
$tmp = $_POST['photo']['tmp_name'];
$path = "images/".basename(name);
if(move_uploaded_file($tmp,$path)){
print("Done! File saved...");
}else{
die("Error on uploading!")
}}

//js
$(document).ready(function(){
var photo = $("#photo").val();
$.post("upload.php",{photo:photo},function(data){
$("#status").html(data);
});});

View 3 Replies View Related

JQuery :: Create Xml File In System Local Drive Using It?

Oct 24, 2011

I am trying todevelop a prototypeto create a new .xml file in my system local drive with the xmllike data populating fromthe below jQuery method. [code]...

View 6 Replies View Related

Preserve The Session State Of A SharePoint Browser State?

Jun 1, 2010

How can I preserve the session state of a SharePoint browser state using javascript?

View 2 Replies View Related

Import Local XML File And Create HTML Table Via JavaScript

Oct 6, 2005

I'm trying to output an HTML page from a simple XML file, but I need to offer this as a service from a website, so users can browse and find the XML file on their local hard drives, and then generate an HTML page.

I think there are some security issues with HTTP not being able to access local files (ie. C: emp.xml) because it doesn't work when I browse to a local file from the website (files on servers work fine). Is there any other way to pass an XML file from local to a website?

I'm using the following javascript to load the XML file.

var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load(filepath)

View 1 Replies View Related

Create An Anonymous Function For Onchange Event Of File Field?

Feb 28, 2010

I am trying to create an anonymous function for onchange event of file field, so that when a file is selected, the covering text field gets that value. I know how to accomplish this by adding onchange="", but I'd prefer not do that. The code that I have almost works, except that the function in the for loop can't call on the "i" variable that the loop uses.

for( i = 0; i < source.length; i++) {
source[i].onchange = function() {
name[i].value = this.value;
}
}

View 3 Replies View Related

AJAX :: Create A Page Which Pulls Dynamic Links From An XML File

May 23, 2011

I'll admit to being a newbie with JQuery, XML and Ajax. I'm trying to create a page which pulls dynamic links from an XML file. Here is the page: [URL] Here is the link to the xml file: [URL] I can get the url to pull as text, but I cannot make it into a link, no matter what I seem to try. I'm sure it's a syntax error - but I just don't know enough to know what it is. I'm also going to need to pull a URL for an image, and I am guessing that the process is similar.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved