Home > web part > XSLT/Webpart View in Custom Javascript text file?

XSLT/Webpart View in Custom Javascript text file?

September 12Hits:1
Advertisement

So this may be silly but I want to ask anyway, if I am using the text file approach (markup and javascript within text files that a CEWP references), is it possible to add mark up or script that would allow me to get a webpart back this way. I realize this is a littl backwards, but I am using jQuery/js for UI elements, functions and logic, SPServices, and most everything I want to accomplish works this way, and great. But there is one spot where I would actually like to have a webpart within a tab in a certain section.

Just wondering if the content created for the webpart, when you create a new page and add one is portable, or is it possible with adjust to get that idea??

EDIT: just a to add a bit more about what I specifically have and am trying to do.

I am using jquery, SPServices and jquery UI on a page. I have a ui tab control, and for each tab I am referencing a text file that contains that tabs content (mark up, js/jquery). This helps me in two ways: with performance since each tab has a lot of content, and its not loaded until the tab is clicked, and also just keeps the relative elements with functionality and styling, etc. Might not be the best way but it was the way I learned and it works. So the above occurred to me when there is just one little place inside a single tab full of other content as well, where I would like to place a webpart (just a list view) and that is really the only spot where I need a webpart.

So this idea is probably backwards of the normal approach, but I need 97% of the content on this page to use jquery and UI, with SPS, etc. This is a jquery ui approach that works for me, but not really a SharePoint approach because I am not sure if you go down this route you cannot then all things like webparts to the mix? I dunno, perhaps the question is just silly?

thanks as always!

Answers

You can't add a web part inside a CEWP. You could probably fake it by adding the web part to the page and then moving in into one of your tab containers via jQuery. But this would involve some complex code and you'd likely see that 'flicker' effect when the ready() function executes the move.

I think it would be easiest to edit the page in SharePoint Designer and forget the CEWP. This will allow you more control over the layout of your page, and allow you to place your web parts where you need them.

Related Articles

  • XSLT/Webpart View in Custom Javascript text file?September 12

    So this may be silly but I want to ask anyway, if I am using the text file approach (markup and javascript within text files that a CEWP references), is it possible to add mark up or script that would allow me to get a webpart back this way. I realiz

  • Is there a single app that allows for quick searching, viewing, and editing of text files?

    Is there a single app that allows for quick searching, viewing, and editing of text files?April 29

    I have a large (thousands) collection of notes stored on my drive as text files and synced to my other computers via UbuntuOne. Currently I use grep to search for the file I want, nautilus to open it, and gedit to edit it. Is there a single app I can

  • Fast way to search/view within a 1MB text file with ".xml" extension in AndroidMay 13

    I have a 1 megabyte text file on my Android SD card. It has a .xml filename extension that I can't change, but the content is actually human-readable. I often need to search into the file and read a paragraph or two around the hit line(s). I tried Jo

  • XSLT List View Webpart for Anonymous UsersAugust 17

    I have a public facing SharePoint site, and I have a page I want to add a list to. The normal behavior of a list is to show the ribbon when selecting an item in the list. When an anonymous user tries this, they get prompted to authenticate. Is there

  • Creating Generic XSLT to parse Text file to XMLJanuary 21

    I had been assigned a task to use XSLT to convert tons of text files into different XML. As I am extremely new to this, I took a shot at it myself.Here is what I've found that would do the trick: 1) XSLT started to support this in v2.0, and 2) unpars

  • Saving user input to text file, android studio

    Saving user input to text file, android studioFebruary 15

    Well, I'm trying to implement some basic java knowledge I gained by creating a simple app with Android Studio. Basically my app would receive some information from user and save it to a text file, the app serves as kind of a template to receive infor

  • How to place a custom javascript link/button in each row of a Views tableFebruary 14

    I would like to place a link or button in each row of a Views table, and have custom javascript code executed, with field content taken from that particular row as input. The Javascript code already works fine outside of a Views table. How can I add

  • deploy XSLT list view webpart using "AllUserWebPart" through a feature from the solution packageAugust 24

    I am trying to deploy custom pages from feature. I came to know that the webparts(oob or custom) are to be deployed from the elements file using the "AllUserWebPart" wherein we have to include the ".webpart" or ".dwp" file of

  • window.open JavaScript local file in SharePoint 2010 WebPart September 15

    I have created a list of scanned in docs where users can view and print documents (documents can range from PDFs, TXT, DOCX, etc). These files are scanned in from a printer and stored locally in a network path. My webpart uses dynamic URL paths to ma

  • How to diplay the cumulative total on the XSLT List View webpart in SharePoint 2010?

    How to diplay the cumulative total on the XSLT List View webpart in SharePoint 2010?May 3

    I want to diplay the cumulative total on the XSLT List View webpart in SharePoint 2010 as below, is that possible? Default view: Expected View: --------------Solutions------------- In order to achieve this I would try focusing from the Client Side di

  • How can I include a custom JavaScript file such that it can access and bind events to DOM elements?October 14

    This is my first time writing custom JavaScript for Drupal, and at the moment I am attempting to bind onClick events to buttons within a block generated by a view, but I suspect I am approaching this from the wrong angle by doing what I'm familiar wi

  • Write sharepoint list items to text file using javascript/jqueryJanuary 7

    Can some one please help me out in writing the sharepoint list items to a text file separated by the delimiter '|'. I need it in javascript or jquery as we are working on the cloud(office 365 sites). I am able to get the items using context.load. But

  • Best viewer for large text files ( 10GB)

    Best viewer for large text files ( 10GB) January 4

    This question already has an answer here: Text editor or reader for working with huge files in Windows 8 answers I'm looking for a text file viewer (ideally an editor too) that will do the following (ordered from most to least important): Load the fi

  • Force view text file instead of download in Firefox?September 18

    Often times I'll click on a random link to a .sh or .py or .cpp or ... file in Firefox, and all I want is to view the code. I don't have a Firefox handler set up for every text file extension under the sun, and I don't want to have to. Is there an ea

  • Could less show the viewed proportion of text file?November 3

    As the title implies, when I am browsing text file,I would like to know the current viewed porportion of the whole text file. I know that with -N option,we could turn on the line numbers,but how could I make less display the line number of the whole

  • Program to view and edit fixed width text files?

    Program to view and edit fixed width text files? March 4

    I'm looking for a program that can view and edit text files that contain data in a fixed width format. The files contain no carriage returns. I've tried viewing them in excel but the import process makes me insert a break line at every column. The te

  • Firefox: viewing text files in external editorMarch 10

    I would like to make Firefox view text files not in its internal editor, but in the external editor (namely EmacsClient). Is it possible to change this default behavior of Firefox? EDIT: I beg your pardon for being inconcise, I'll try to state the ma

  • View at least parts of a huge text file on Windows July 28

    Possible Duplicate: Text Editor for very big file - Windows I have a huge text file. Text editors refuse to open it due to it's size. How do I view it, without using a text editor? Solutions I can think of: Something like Linux's more command - do yo

  • Custom property text field for Visual Webpart SharePoint 2010September 26

    I'm working on a visual webpart and I need to create a custom property text field.This will be used to set how many days password would expire. See below: [WebBrowsable(true), Category("AD Configuration"), Personalizable(PersonalizationScope.Sha

  • Can I view text files i've synced to Ubuntu One online?December 31

    I am able to sync and see my file names online and on all my devices, but how can I simply view sync'd text files online, or, say, on my mobile phone (which has the Ubuntu One app installed). --------------Solutions------------- You should be able to

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.846 s.