content

setting content type in java for file download

Hi... In my application i like to provide file download facility. I set the file types to response.setContentType. How can I set the content types for almost all known file types? Is there any easy way? or I need to set it manually like i do now, which is given below. if (pictureName.indexOf("jpg") > 0) { re...

Anybody knows any third party tool to synchronize lists shema between two SharePoint portals?

I am working on SharePoint development field, and I am suffering from updating the production servers with the latest changes on the development server. Anybody knows any third party tool that synchronizes the changes between two SharePoint portals. I am using WSS 3.0 Thanks in advance for your help. ...

OpenCms - periodically change content of a file

Hi! I'm customizing my OpenCms installation and have created an object that delivers part of my content. The object changes this content once in an hour. Could you please advise me as to how to load this bean at OpenCms startup so that it resides in memory and is able to set up its timer? ...

show hide content problem

Hi, I am working on a show/hide script (jQuery) for my portfolio. I use a parallax script which is the portfolio part. What i want is that when i click a button, it shows the same paralax script but with different content. I thougt it was easy, but something goes wrong. You can find the portfolio here: http://www.luukratief-design.nl...

How to publish the content in facebook of iphone

hi, I am new to iphone development.I have created facebook application and i have displayed the login page and publish page. now i want to share my content(title and summary) display dynamically. i dont know how to give the contents dynamically, Here my code and display statically, it will published. but i want to give my contents d...

"New Content Avaliable!" PHP message checking a cookie

Hello guys, I'm trying to set up a cookie which would store the time when the user leaves a website, so in the next visit he can find a "There's new content" message (if any) - checked against his "last seen" stored time. The things I'm stuck with are two : how do I send a cookie when he leaves the site ? And, then, how do I check that...

XSLT parse escaped HTML stored in an attribute and convert that attribute's content into element's content

Hello Guys, I'm stuck on what I think should be simple thing to do. I've been looking around, but didn't find the solution. Hope you will help me. What I have is an XML element with an attribute that contains escaped HTML elements: <Booking> <BookingComments Type="RAM" comment="RAM name fred&lt;br/&gt;Tel 09876554&lt;br/&gt;Emai...

SharePoint Content Type Inheritance: Inheriting UI defined CT from a feature

Is it possible to create a Custom content type declaratively using features in 12 hive that inherits from a custom content type that was created through UI. For example, CT-A is created through SharePoint UI, CT-B is a child of CT-A but can I create it using xml. I would create an ID for CT-B as : "Id of CT-A + 00 + GUID" to signify tha...

Hiding "Group By" value in a Content Query Web part

Hello I'm making a Sharepoint 2007 Content Query web part, where I want to group by a field (ArticleSticky), but I don't want to show the field in the webpart. Is there some way I can hide the field in the webpart? Maybe in the XSLT definition ? ...

How Do I Rotate Listings for my Business Directory?

I have a directory that lists local businesses in the area. How do I make it so the listings appear in different order every time a new visitor shows up? Thanks in advance! ...

CALayer and obtaining currentcontext of its UIView

I try to learn the drawing process in UIView in iphone. as I understand the drawing process accurs only if the method [UIView drawRect] exists. it starts with [CALayer display] and from within that method [UIView drawRect] is called (to be precise :first [UIView drawLayer:layer inContext:context] is called and from within this method ...

ajax and jquery to load content

http://www.yensdesign.com/tutorials/contentajax/ In this tutorial, we see that the content of the page that is loaded by ajax slides up and slides down, but i want the content relating to the old link to slide up and content of new link to slide down.. could you please tell how to do that.. Thank you, Raj ...

jquery, change content on a popup

I have a simple page (index.html) with a div: I am populating that div with some easy jquery commands: $("#email").html("[email protected]"); Is there a way to populate a similar div on a popup? I like to use popups for debugging reasons, but I don't want to reload the popup each time the main page refreshes. In other words, c...

JQuery Div update on database update

Right now I am using setInterval to refresh a div every few seconds. The page it is refreshing is data being pulled from a database in asp. I would like to have it only refresh the div when a change occurs in the database because the query is pretty large, but I've searched and could not find function or example for this. I figure the...

content in tooltip

Hi, I have tooltip(prototip, but it doesnt matter) on my page in javascript and I want when user move on word, where is tooltip, generate tooltip content with string from my proxy-server...so probably when I move on word where is tooltip, javascript send request on proxy server and get response with string content - from this response ja...

Does joomla have search for content?

I am trying to find a search feature that searches all contents, including articles, links, posts, etc. in Joomla. Where is it located? I am talking about search feature in administration page, not home page. I want to be able to figure out where the content is coming from and its location. ...

MVC - Remove Master Page of a nested master Page

Hi, I would like to know if there is a way to programatically remove a master page of a nested master page. Lets say i have the following: Master A << Master B << View I am using the master pages actually like a wrapper for my View; they are containing javascript code. In some cases I don't need the Master Page A and I would like ...

Relate field control ID in the page layout

Hi, I am facing a problem while referencing the field control in the page layout. In this article there is a field control which id is "PGPageBottomLeftContent" which store the data in the column "PageBottomLeftContent". I am not able to know that how it stores the data in the perticular column however the column name is different. It...

MOSS 2007 Displaying contents of a folder using the Content Query Webpart

Hi, I'm trying to display a certain folder's content using the Content Query Webpart. While I'm perfectly able to display either all files in the document library (parent of the folder) or just the folder(s), I fail to understand how you would display a certain folder's content. Can anyone please enlighten me? ...

Lxml or Xpath content print

I have the following function def parseTitle(self, post): """ Returns title string with spaces replaced by dots "" return post.xpath('h2')[0].text.replace('.', ' ') I would to see the content of post. I have tried everything I can think of. How can I properly debug the content? This is an website of movi...