document

make document available for download through java/servlet

hello everyone I need to know if there is a way in java/servlet to make documents(doc,pdf) stored in database available for download to users in requested way(please see below), for example there is a web page and the link for document in it right now it is done this way: if the user clicks that link than a new blank window opens and ...

iPhone : creating Texture2D much slower when image loaded from file in app's Documents, why?

Slower than what? slower than creating the same textures from an image loaded from the app bundle. How much slower ? 80 times slower on iPhone, similar ratio (but faster overall) on Mac. My example below shows loading an image with imageNamed: ; creating textures from the first image ; saving image to a file in the app's Documents direc...

Tidying up jQuery

Hi, I have a page which uses a lot of jQuery code but it is becoming unmanageable. I want to be able to tidy it up to place related parts into separate .js files and include them onto the page in a script tag. I seem to be able to do this by creating them as jQuery plugins then by using $(document).*plugin_name();* on the page. Is it...

Word document in ASP.NET page (controlled by the page)

I want to display a Word document in my ASP.NET page, and I want to be able to highlight text in the document according to events that happen on the page (like button clicks). Is it possible? Thanks. ...

javascript Document ready firefox (jQuery)

In FireFox I have this jQuery at the end of the body: $(document).ready(function() { $.getScript('LiveMapsJavascriptProvider.aspx?type=reference&value=6', init); }); There are a lot of js files in the head that are needed to be all loaded before this would work. So I put my call in a document.ready event. It doesn't work. IE work...

How do I get the name of a form in Javascript?

How do I get the name of a form in Javascript? I have tried stuff like: document.forms[0].name document.forms[0].id //I have both name and id set ...

The strangest thing with ob_start and headers

ob_start and all the headers did not work on my webpage. I searched though my whole code and did not find anything wrong. Then I deleted all my code and placed a Header Location at the top of the dokument and it still didnt work so then I simply created a new document copied the code from the old document and then all of sudden it starte...

Scrolling of a Document

I'm working on an application in c#, which reads a pdf document. As we all know we have hand tool in most of the pdf reader, which is used to scroll the document. My issue is when I use the hand tool to scroll the mouse, the speed of the movement of the mouse and the speed of the scrolling of the document is not synchronized. Not matter ...

Good documentation for Oracle procedures

Hi , I wrote some procedures in Oracle. Now I should write documentation for them. But I did not write any documentation for plsql procedures before. So I want to share your experiences. Which information should be included and excluded in the document? Do you have any template for plsql document design? ...

Extract default namespaceID from XML file

I have a file that contains a default namespace declaration, first few lines of one such here: <?xml version="1.0" encoding="UTF-8"?> <dodavka xmlns="urn:CZ-RVV-IS-VaV-XML-NS:data-1.2.2" xmlns:v="urn:xmlns:mathan.vklap.annotations-1.0" v:faze="finalni" struktura="RIV09A"> <zahlavi v:posledni-zmena="06.09.2009 21:28 +0200 1.4.46"> ...

How to fire "onload" event on document in IE

I am currently developing Unit Tests for a Javascript method that detects the readiness of the document. This code is already at framework level, so please avoid mentions of this being already implemented in jQuery or another library. I have successfully simulated the 'readystatechange' change event with the following code: var event; ...

Writing Content Between Firefox Tabs

I am trying to write some values that I extract from a page (via JS/JQuery) opened in a tab in Firefox, to another opened page in a different tab within Firefox. Is this possible? Basically, I am trying to write some values I extract to a Google document that I have open in a different tab. I can see the "document" value in the DOM fo...

Firefox Extension, get a reference to the loaded document using browser.contentDocument

I want to write a simple firefox extension. How can I get a reference to the loaded document object in a browser window? For example, how can I access the document in this html page loaded here on stackoverflow? According to the vague mozilla development center I can use browser.contentDocument, but it is not working for me. <?xml ...

"Access is denied" JavaScript error when trying to access the document object of a programmatically-created <iframe> (IE-only)

I have project in which I need to create an <iframe> element using JavaScript and append it to the DOM. After that, I need to insert some content into the <iframe>. It's a widget that will be embedded in third-party websites. I don't set the "src" attribute of the <iframe> since I don't want to load a page; rather, it is used to isolate...

Locking a single NSPersistentDocument

My application currently uses CoreData as a backend to store to a single SQL data file stored in ~/Library/Application Support/MYAPP/MyDataFile.sqlite. I know it's an unusual situation, but what is the best way to "lock" this file so that if the user decides (for whatever silly reason) to run a second copy of my app, Core Data won't frea...

IE removeChild stops document.click event?

cycle: element onclick someobject.removeChild(objParent) - this is a parent container div of element in step 1 document.click event is never fired. In Firefox it does still fire the event. Fix: setTimeout(object.removeChild(objParent), 0); will not cancelbubble and continue to fire document.click in IE aswell. Is this normal b...

looking for thoughts on open source workflow version control apps

Hi. Starting to think about a tool/app to use for a project that will have multiple devs, with testers/reviewers/etc.. I'm going to need the app to provide the ability to ccheck in/out the docs/code, as well as keep track of everything on a quarterly basis. (IE, the code/docs will change on a periodic basis). At a granular level, each f...

Word SmartDoc - Node Manipulation based on Current Cursor Position

I've created a smart document xml expansion pack for word that has an action associated with #actionPertainsToEntireSchema. An image in the action pane has several "hotspots" painted and using the X,Y pos I determine what the user desires to do. I'm using CS Here's where the user invokes a command: ImageClick(int ControlID, string App...

Opening a Word document using the PHP COM object

Hi guys, I've got some code that generates a word document, as follows: $word->Documents [1]->SaveAs ( $localDir . $filename ); Now, I was kinda hoping that I could now open the file once it's saved by doing the following: $word->Documents->Open($remoteDir . $filename) // remotedir = 'word/', so for example the above would be '/wor...

I need SyntaxDocument supports undo/redo one letter a time.

I mean when I type 'select', it highlights 'select' with blue. When I press 'Undo', the letter 't' disappears and 'selec' becomes black. After 3 days googling... I found this but it undoes a block code a time, not a letter: 'http://fifesoft.com/rsyntaxtextarea/TextAreaApplet.php' This doesn't help. 'http://syntax.jedit.org/' ...and ...