Sharepoint: Combining Javascript Files Stored In "Style Library"?

Apr 14, 2010

For the sake of client-side performance, it's best to minimize the number HTTP requests to load a page. Is it possible to combine the contents of all Javascript files stored in the "Style Library" such that the client only has to make one request instead traditionally, a request for each Javascript file?

View 1 Replies


Similar Messages:

Sharepoint - Where Are .cs Files Stored

Mar 4, 2010

I have a file called webpart.cs which is called by one of my masterpages in Sharepoint, where are those files stored on the Server?

View 1 Replies

Javascript - Combining Conditions Included Script Files?

Feb 1, 2010

We are working on an ASP.NET CMS project using jQuery as the basis for our client side scripting. The jquery-1.2.6.js file is the only script file that is always included. Other script files are currently included depending on what components the CMS editor is using on a page or page template.A lot of the script combiners produce a static script. If we took that approach we would have to add all possible script files in just in case they were needed. We are not currently using any of the ASP.NET Ajax extensions so have not looked at what that may give us.

View 2 Replies

How To Add A File To The Sharepoint Document Library

Apr 29, 2010

how to adding a file to the sharepoint document library? I found some articles in net. but i didn't get the complete concept of the same. Now i uploaded a file without metadata by using this code.

[Code]....

This code is working as fine. But i need to upload file with meta data. I created 3 columns in my Document library..

View 3 Replies

How To Manupilate SharePoint / AspMenu Control (Style-wise)

Mar 23, 2011

What I want to do is to split-up the globalnavigation bar on the sharepoint 2010 so I can control what menu-items should be floated to the left or right of the bar.

Is there a way to do this without a complete customized version of it, so I only have to edit the current one. Or do I actually have to make a complete new one?

What I have tried so far is just copying all of the UL > LI's there's used to display the menu-items like this:

<div class="s4-tn">
<div class="menu horizontal menu-horizontal">
<ul class="static">
<li class="static dynamic-children">
<a href="#" CssClass="static dynamic-children menu-item">
<span class="additional-background">
<span class="menu-item-text">Custom Dropdown</span>
</span>
</a>
<ul class="dynamic">
<li class="dynamic">
<a href="#" class="dynamic menu-item">
<span class="additional-background">
<span class="menu-item-text">Test subsite</span>
</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>

But it doesn't seem to trigger the dropdown functionality. Might just be a naive attempt.

Any links to guides or tutorials about this subject would be a great.

View 1 Replies

Web Forms :: Combining WebResource.axd And ScriptResource.axd Files?

Mar 25, 2010

combining these type of files so that there are fewer http requests? Or for that matter any other tips on making them more efficient?

View 5 Replies

C# - How To Pass Credentials To Httpwebrequest For Accessing SharePoint Library

Mar 4, 2011

I try to read a file from SharePoint document library through httpwebrequest.For that I have to pass the credentials.So How should I pass the creadentials.

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "GET";
request.ContentType = "application/msexcel";
request.UserAgent = "Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0";
request.Credentials = new NetworkCredential(UserName, PassWord);

View 3 Replies

Javascript - Finding Images Names From Index.aspx.cs Files Which Are Stored In Hidden Fields?

Nov 10, 2010

I used the script where the image array has static images.I want to convert it dynamically by finding my images names from index.aspx.cs files which are stored in hidden fields.

my hiddenfileds has value:

uploads/../uploads/M_Banner_3-JO633939707781250000.jpg;uploads/../uploads/M_Banner_4-JO634014944056581250.jpg;uploads/../uploads/M_Banner_2-I-85634067544720151968.jpg;uploads/../uploads/M_Banner_1-Plan634067543966714468.jpg

I want to split this hidden filed and assign it to imagearray.how can i do this

var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [568, 313], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/1.jpg", "", "", ""],
["images/2.jpg", "", "", ""],
["images/3.jpg"],
["images/4.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "always",
togglerid: "fadeshow2toggler"
})

View 2 Replies

Unable To Use Webclient Object To Download A File In SharePoint Email Enabled Document Library?

Feb 22, 2010

I am using webclient object to download a file to a windows folder from a sharepoint document library. The credentials I am passing to the webclient object are that of site collection administrator. everything works fine while i test it by uploading a file to the document library. But since the document library is email enabled; when an email is received the file is not transferred to the windows folder. i have put some workflow history events to see which user account is used when the email is received. the user account shown is the network service account. I have given write permissions on the folder to all the users; Everyone, Network service, the site collection administrator user etc. but still i cant figure out what is the problem.

View 2 Replies

Windows Sharepoint Services - FullTextSqlQuery Document Library Unable To Find Items Created By System Account?

Apr 5, 2010

We have created an ASP.NET web app that upload files to WSS Doc Libary. The files get added under 'SYSTEM ACCOUNT' in the library. The FullTextSqlQuery class is used to search the document libary items. But it only searches files that has been uploaded by a windows user account like 'Administrator' and ignores the ones uploaded by 'SYSTEM ACCOUNT'. As a result the search results are empty even though we have the necessary data in the document library. What could be the reason for this?
The code is given below:

public static List GetListItemsFromFTSQuery(string searchText)
{
string docLibUrl = "http://localhost:6666/Articles%20Library/Forms/AllItems.aspx";
List items = new List();
DataTable retResults = new DataTable();
SPSecurity.RunWithElevatedPrivileges(delegate
{
using (SPSite site = new SPSite(docLibUrl))
{
SPWeb CRsite = site.OpenWeb();
SPList ContRep = CRsite.GetListFromUrl(docLibUrl);
FullTextSqlQuery fts = new FullTextSqlQuery(site);
fts.QueryText =
"SELECT Title,ContentType,Path FROM portal..scope() WHERE freetext('" +
searchText +
"') AND (CONTAINS(Path,'"" +
ContRep.RootFolder.ServerRelativeUrl + ""'))";
fts.ResultTypes = ResultType.RelevantResults;
fts.RowLimit = 300;
if (SPSecurity.AuthenticationMode != System.Web.Configuration.AuthenticationMode.Windows)
fts.AuthenticationType = QueryAuthenticationType.PluggableAuthenticatedQuery;
else
fts.AuthenticationType = QueryAuthenticationType.NtAuthenticatedQuery;
ResultTableCollection rtc = fts.Execute();
if (rtc.Count > 0)
{
using (
ResultTable relevantResults =
rtc[ResultType.RelevantResults])
retResults.Load(relevantResults, LoadOption.OverwriteChanges);
foreach (DataRow row in retResults.Rows)
{
if (!row["Path"].ToString().EndsWith(".aspx"))
//if (row["ContentType"].ToString() == "Item")
{
using (
SPSite lookupSite =
new SPSite(row["Path"].ToString()))
{
using (SPWeb web = lookupSite.OpenWeb())
{
SPFile file = web.GetFile(row["Path"].ToString());
items.Add(file.Item);
}
}
}
}
}
} //using ends here
});
return items;
}

View 1 Replies

C# - Display Image From A Sharepoint Library On Mouseover On The Image Displayed In Webpart?

Apr 4, 2010

I have two Picture Libraries. One has pictures and the other contains the thumbnails created programmatically by me. I am displaying the thumbnails into a custom webpart. I need to display the original pictures on mouseover on the thumbnails displayed in webpart and the originals displayed should dissappear on mouse out.

View 1 Replies

Sharepoint - Downloaded Files Corrupted?

Aug 5, 2010

I have written the following code to download a file from sharepoint. The downloded file works fine in only some machines. For others, it says that the file is corrupted. The issue is for MS Office and image files, however the PDF is not having any issues. We have identified the issue of corruption as due to the addition of a hexadecimal number at the top of the file contents. When it is removed, the file gets opened correctly. The hexadecimal character has been traced out to be representing the file size in bytes. Why this is happening only in some machines and how can we fix it?

private void DownloadFile()
{
SPListItem item = GetFileFromSharepoint();

[code]...

View 1 Replies

Web Forms :: Large Files Using FileUpload In Sharepoint

Oct 18, 2010

We have a problem with some people working from home where when uploading 30-40mb (max upload is 50mb) they are timing out. Naturally when these people are on site they have no problems because of the network speed with have. What are peoples thoughts about extening the time out period, working on an 250k upload speed from home, we would be thinking about 20 to 30 mins.

View 3 Replies

JavaScript - Mvc Script And Style References / Include Script And Style References That Will Not Break On Deployment

May 11, 2010

I'm trying to include script and style references that will not break on deployment, however I can not even get the references to work locally. I have tried using Url.Content() and MVCContrib's <%=Html.ScriptInclude("")%>.

My scripts are in a Scripts folder on the root of the site; my styles are in the usual Content/css/ folder.

The scripts render like this:

<script type="text/javascript" src="/Scripts/MicrosoftAjax.debug.js" ></script>

This will not work in a view page in the Views folder. What am I doing wrong and what is the best way to handle this?

I would have thought Url.Content() would at least work for styles but used in my master page, the link rendered

<link href="/Content/css/Site.css rel="stylesheet" type="text/css" />

This does not work, because the Master Page is in a Shared folder, so what is really the way forward with this?

View 2 Replies

WCF / ASMX :: Library To Parser WSDL Files

Sep 16, 2010

I am looking for some .NET library that will help me to parse WSDL files. By "parsing" I mean extracting web service functions' info, associating functions with object that they use.

View 1 Replies

C# - Showing Icons Of Files And Folders In An Aspx Page Inside The Sharepoint?

Mar 17, 2011

I am using spgridview to show the files and folders of document library in an aspx page. Now i want to display the files and folders along with icons in spgridview.

View 1 Replies

Free Library For Create Xls With C# Files On A Server Without MS Office?

Mar 9, 2010

Is there any free library for create xls files in asp.net on a server without office?

View 4 Replies

Visual Studio :: MSDN Express Library Search Files?

Jan 26, 2010

When i SEARCH for a particular topic including code examples for example, SQLDATASOURCE.INSERTPARAMETER the search results come up nothing?In VSDE 2005 version various result examples are display.

The only help content appears to be menu on feature walkthroughs much like in Windows?

View 2 Replies

SharePoint - Get Logged-in User Manipulate With Javascript?

Feb 22, 2010

I have an .aspx page built in SharePoint that I want to get the user name of the currently logged-in user (through ASP) and then manipulate it (using javascript). I'm getting an "object expected" error. Here's some of the code:

function checkGroupPermissions()
{
var loginNameVar = document.getElementById("LoginName1").innerHTML;
--snip--
}
</script>
<div id="loginNameDiv" style="display:none">
<asp:LoginName runat="server" id="LoginName1"></asp:LoginName>
</div>

View 1 Replies

Javascript - Failing To Catch Server Error In Sharepoint?

Nov 4, 2010

I have an asp.net control that contains a grid view sitting on top of an Ajax update panel. The control has been added to a sharepoint page. When a button is clicked, some server code is called to store the contents of the grid. If the server code throws an error, I want to spit out a javascript alert displaying the error message, but for some reason the error that bubbles up from the server is the generic 500 server error, which doesn't contain any details of the original error.

View 1 Replies

C# - Dynamically Change Style Of Panels Through JavaScript?

Jul 19, 2010

I am trying to display a new panel after the user clicks an add button, for some reason this is not working (it refreshes the page as well, even though my button has a return true) I have tried different ways, but nothing seems to work that well.

[code]....

View 2 Replies

Unable To Find Any Documentation On This Library (using JavaScript With .dll's)?

Sep 3, 2010

I love the demos of ASTreeView. I'd like to use this in my project, which is completely local and currently only uses HTML, JavaScript, and CSS - i.e. no ASP.net or anything dealing with servers...

Is it possible for me to use this? There is a .dll and a .js included in the package, but I have no clue where to start since this isn't a ASP.net project for me. I can't find any documentation on this library.

View 1 Replies

Javascript - Session Null After Window Open In Minimal SharePoint Page

Apr 4, 2011

I'm storing a token in a session variable. I launch a report that needs this token in a new ASPX page by using the javascript windows.open function. When this new page loads the HttpContext.Current.Session is null.I have gotten around this by passing the token in the query string but activity in this window needs to keep the session of the parent window active and I'm not sure what the session object being null means for this scenario.

View 3 Replies

Javascript - How To Get Elements In JQuery UI To Style And Format Correctly

Jun 23, 2010

Here is my problem. I have on multiple occasions downloaded jQuery UI and tried to use it. What happens, though, is that in the examples provided in the download the UI elements look great, but in my pages when I try to use them all the formatting and style stuff is messed up. Here is an example of a date picker:

Bad Example

Here is my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Reports</title>
<meta charset="UTF-8" />
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
<meta http-equiv="PRAGMA" content="NO-CACHE" />

[Code]....

For my page (an '.aspx' page, if that makes any difference) I have all the images in the image folder one level below the css file, just as it is in the example folder, and the script files are all together in another folder. Is there something I need that I don't have. I shouldn't need the "demo.css" file, should I? Is there a special naming convention for items in the form of the site? Is there some special way that I need to have the folders/css files/source scripts set up, like a certain folder configuration, to make it work? Kind of lost on this one. Probably a really simple fix, but I'm pretty new to using this.

View 1 Replies

Implement The Table-style Layout With Javascript Solution?

Nov 25, 2010

We got a requirement to implment following structure of table (It's a sample; data source is dynamic). Notice that there are intermediate Total (sum) values for the month. If we have the data source (Date and Amount) besides Total, which is calculated out, generate this kind of table-style layout dynamitcally?

Date Amount
==========================
1 Nov 300
22 Nov 500
30 Nov 200
Total 1000
5 Dec 100
28 Dec 200
Total 300

View 5 Replies







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