Inserting Spry Widget into Saved File
I have recently encountered a propblem when inserting a Spry widget into a saved html file. The .js and .css files are saved to file:///C|/Documents and Settings/dwilliams/Application Data/Adobe/Dreamweaver CS4/en_US/Configuration/Temp/Assets/eam75.tmp/%FILENAME% rather than %webroot%/spryassets.
I know this can occur if the file is unsaved and code is inserted into the file, but in this case the file has been saved.
Does anyone know how to to reset this back to its default setting?
TIA,
David
Moved to Dreamweaver forums
Similar Messages
-
What is the efficient way of insert some bytes into a file?
Hello, everyone:
If I want to insert some bytes into a file (for example, insert the bytes before all the original content of the file, or append the bytes to a file), and the size of the original file is very big. I am wondering what is the efficient way? Where can I get some sample codes?
regards,
GeorgeThanks, DrClap.
I have tried your method and you are correct. I have written a simple program which can be used to insert "Hello World " to the start of a file ("c:\\temp\\input.txt"), and I have verified that it can work. Please help to see whether it is correct and whether it has a more efficient way.
public class TestDriver {
public static void main(String[] args) {
byte[] back_buffer = new byte [1024];
byte[] write_buffer = new byte [1024];
System.arraycopy("Hello World".getBytes(), 0, write_buffer, 0, "Hello World".getBytes().length);
int write_buffer_length = "Hello World ".getBytes().length;
int count = 0;
FileInputStream fis = null;
FileOutputStream fos = null;
try {
fis = new FileInputStream (new File("c:\\temp\\input.txt"));
fos = new FileOutputStream (new File("c:\\temp\\output.txt"));
while ((count = fis.read (back_buffer)) >= 0)
fos.write(write_buffer, 0, write_buffer_length);
System.arraycopy (back_buffer, 0, write_buffer, 0, count);
write_buffer_length = count;
//write the last block
fos.write(write_buffer, 0, write_buffer_length);
fis.close();
fos.close();
//copy content back into original file
fis = new FileInputStream (new File("c:\\temp\\output.txt"));
fos = new FileOutputStream (new File("c:\\temp\\input.txt"));
while ((count = fis.read (back_buffer)) >= 0)
fos.write(back_buffer, 0, count);
fis.close();
fos.close();
//remove temporary file
File f = new File ("c:\\temp\\output.txt");
f.delete();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
try {
fis.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
try {
fos.close();
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
try {
fis.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
try {
fos.close();
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}regards,
George -
Use of XMP Custom Panel to automate insertion of metadata into PDF file.
I'm new to the world of XMP so please bear with me.
I'm exploring ways of automating the insertion of metadata into PDF files, either at the time of creation, or through a batch process. The metadata values for a given set of documents would be static, so these could be "hard coded" into the mechanism use to insert the metadata.
Would an XMP Custom Panel be something I could use to achieve this goal. If so, can you please provide some details on how to go about doing this.
Thanks in advance.
LouisWere you able to find a solution to this problem? I am having the same issue.
Jason -
How to insert xmp metadata into jpeg files?
Hi
Is it possible to automatically insert the metadata
with the script using text extracted from my database.
I have to insert the metadata into lots of images which are uploaded to a site.
Thanks
[signature deleted bu host]A scripting tool you may use, although complex, is ImageMagick. It allows loads of image manipulate but also handles data.
Another options is DBGallery, which will very easily allow XMP data to be written to hundreds or thousands of files at a time, but not via script (it's a Windows application). You can see a quick screenshot tour of it's IPTC/XMP capabilities here.
Hope this helps,
Glenn
Developer of DBGallery: The Photo DATAbase -
Heya.
I have a user who is creating a PDF essentially compiled from inserting word documents into the position she wants inside of the PDF.
The problem is that sometimes this leads to missing or garbled text. For example, 6-8.1 is displayed as 6- .1. Which is just plain weird.
Other times, the text looks garbled or uneven. She turned off her PC but I took screenshots of both of these scenarios. I fear that I am not going to be able to retroactively fix the corruption in this document for her.
She says she's using very standard fonts. Like Arial. I asked if she could locate the original Word document that produced the garbled text, just for a sanity check. The problem is that her co-worker may have been the only one with that particular word document (there are probably hundreds which compile this PDF...) and IF she has it, she might not be able to locate it on her PC TO check what the original text is. Yikes.
Google-fu turns up very little. I tried the guidance in this document - https://answers.acrobatusers.com/We-combine-PDF-document-ends-corrupt-What-problem-q197619 .aspx[2] and a Save-As but no avail.
This also turns up but is not applicable to Acrobat 9 I believe: http://blogs.adobe.com/acrobatineducation/2010/02/get_rid_of_that_bloat_in_your.html[3]
She states that she can manually fix the document but after a while it gets corrupted again? But I haven't observed that and she might have just fed me that to amplify the problem.
I will be able to post screenshots when she turns on her computer tomorrow.Here are the two instances of corruption we have come across.
http://imgur.com/nPztMYm
http://imgur.com/wHM12e2
Edit: A LITTLE MORE INFO. I am able to select the corrupted text, paste it into Notepad with all the characters intact. So the characters are THERE. they are just not being displayed correctly.
Edit: They also do not print correctly. The page prints with characters missing, and she wants to print this document, so that is going to be an issue. -
Insert Encoding tag into xml file. ?xml version="1.0"?
I am using oracle 10g.
I am using dbms_xmlgen.getxml function to generate xml data for oracle tables. I use utl_file to write data back into xml file.
Oracle is generating the file in the following manner...
<?xml version="1.0"?>
<ROWSET>
<ROW>
<RSLT_ID>1</RSLT_ID>
</ROW>
</ROWSET>
I want to change the following xml header to have encoding information in it as follows...
<?xml version="1.0" encoding = "AL32UTF8"?>
How do I achieve that?
Any suggestions?I want to change the following xml header to have encoding informationIn 10g I think you could use a xmlroot hack:
SQL> select xmlroot(xmlelement(e, dummy), version '1.0" encoding="AL32UTF8') xml from dual
XML
<?xml version="1.0" encoding="AL32UTF8"?>
<E>X</E>
1 row selected. -
Trouble inserting a widget into my web page
Hello,
I am using DW CS3. I got the html code for a widget (in this case a small banner) to insert into my web page. Here is the code:
<div>Find <a id="flipkey_best_of_property" href="http://www.flipkey.com/pine-mountain-club-vacation-rentals/g1553621/">Pine Mountain Club Vacation Rentals</a> on FlipKey</div><script type="text/javascript" src="http://data.flipkey.com/widgets/jsapi/36780/fhb/7be5/"></script>
I inserted a Div Tag in my web page to contain the code (Class: Body; ID: apDiv2), and then pasted the code into the Div Tag. Though I was in Design View, the html code still showed as html code, not as the small banner I had hoped for. Can someone steer me in the right direction?
Note: I took a web design course 3 years ago and created this web page at the time. I haven't done any web design since then, and have forgotten many of the details, but I should remember as soon as someone points out my errors.
Thanks!If it's been 3 years, a refresher course may be in order.
Start here:
HTML & CSS Tutorials - http://w3schools.com/
APDivs as a primary layout method seldom works well. Here is why:
http://apptools.com/examples/pagelayout101.php
Learn CSS positioning in 10 Steps
http://www.barelyfitz.com/screencast/html-training/css/positioning/
How to Develop with CSS? (a must read!!)
http://phrogz.net/css/HowToDevelopWithCSS.html
New Dreamweaver CSS Templates for beginners
http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
New DW Starter Pages
http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Insert XML String into XML file at a certain position
Hello,
I have this xml string:
<jdbc-driver-params>
<url>jdbc:oracle:thin:@localhost:1521:mydb</url>
<driver-name>oracle.jdbc.OracleDriver</driver-name>
<properties>
<property>
<name>user</name>
<value>myuser</value>
</property>
</properties>
<password-encrypted>myuser</password-encrypted>
</jdbc-driver-params>and i need to insert it into an xml file at a certain position (as child for a node)
The xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:sec="http://www.bea.com/ns/weblogic/90/security"
xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
<name>myDB</name>
<jdbc-data-source-params>
<global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>And this is how I would like to get it in the end:
<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
<name>mydb</name>
<jdbc-driver-params>
<url>jdbc:oracle:thin:@localhost:1521:myDB</url>
<driver-name>oracle.jdbc.OracleDriver</driver-name>
<properties>
<property>
<name>user</name>
<value>myuser</value>
</property>
</properties>
<password-encrypted>myuser</password-encrypted>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>So, I obtain the node for the given xml string, the jdbc-data-source node from the xml file and i attempt the appendChild. The problem is that nothing really gets inserted into the xml file.
Someone, any idea?
My code:
try
DOMParser parser = new DOMParser();
parser.parse(xmlFileName);
Document doc = parser.getDocument(); // the document we will insert node into
Node root = doc.getElementsByTagName("jdbc-data-source").item(0);
//get XML string node
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder db = factory.newDocumentBuilder();
InputSource inStream = new InputSource();
inStream.setCharacterStream(new StringReader(xmlString));
Document doc4XMLString = db.parse(inStream);
Node rootXMLString = doc4XMLString.getElementsByTagName("jdbc-driver-params").item(0);
root.appendChild(doc.importNode(rootXMLString, true));
return true;
catch (Exception e)
e.printStackTrace();
}Thanks,
johnny
Edited by: smeag0l on Aug 6, 2008 5:08 PM
Edited by: smeag0l on Aug 6, 2008 5:43 PMWell, you helped me again :-) Thank you very much!
Here is how the code should look:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder db4XMLFile = factory.newDocumentBuilder();
Document doc4XMLFile = db4XMLFile.parse(xmlFileName);
Node root4XMLFile = doc4XMLFile.getElementsByTagName(rootNodeName).item(0);
DocumentBuilder db4XMLString = factory.newDocumentBuilder();
InputSource inStream = new InputSource();
inStream.setCharacterStream(new StringReader(xmlString));
Document doc4XMLString = db4XMLString.parse(inStream);
Node root4XMLString = doc4XMLString.getElementsByTagName(xmlStringNodeName).item(0);
root4XMLFile.appendChild(doc4XMLFile.importNode(root4XMLString, true));
File file = new File(xmlFileName);
Result result = new StreamResult(file.toURI().getPath());
Source source = new DOMSource(doc4XMLFile);
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result); -
How to insert a picture into excel file using ALE AUTOMATION
Hi every body,
I have to write report that export data from abap to exel the data contain a logo but I don't know how to insert picture to excel using ALE AUTOMATION.
Please help me!
Thank you!Hi,
you have to join into SAP Code Exchange and download this zip:
[ABAP2XLSX_daily.nugg.zip|http://code.sdn.sap.com/spaces/abap2xlsx/documents/btFzHQ3vKr36tCeJe7bhNc/download/btFzHQ3vKr36tCeJe7bhNc]
Regards,
Ivan -
Insert line break into .txt file
Alright, so I am writing out to a simple .txt file, and I
need to force a line break in it. My immediate thought is to use
"\n" as that is a line break. So, I write it out to the text file,
and instead of a line break, I see the "complex character" symbol
(you know, that square that shows up with unknown characters). I
have tried the various ASCII values to no avail, tried \r, even
tried copy-pasting a line break in from notepad. Nothing seems to
be working for me. How do I do this?
_logFile = "\n";
stream = new FileStream();
stream.open(file,FileMode.WRITE);
stream.writeUTFBytes(_logFile);
stream.close();in windows use "\r\n"
i.e. _logFile = "\r\n"; -
Premiere Pro CC inserting single frame into exported files
I have never had this issue before today.
A project I have been compiling off and on for several months was exported using AME via PPCC.
In previous exports this issue did not come up at all.
Here is the problem:
The rendered videos (using Apple ProRes 422 HQ, QT H.264, and MPEG2 DVD) have a single frame insert between two stills in a montage.
The previous render it appeared on a different photo a few seconds later in the program, like this:
Again, these are single frame artifacts not found in the timeline in PPCC. They only appear as "flash frames" in the exported video.
Anybody else seeing this? Is there a solution?
Thanks
Jeremy Praegitzer
Adobe Premiere Pro CS5/CS6 Certified Associate
TV Department Manager - Love A Child, Inc.Hi Jeremy,
Thanks for posting on Adobe forums,
Please provide us details of your systems:
What is the OS and version ?
What is the Graphics Card installed on the system ?
How much Ram do you have ?
Do you use any external Hard Drive ?
and if you are using GPU Acceleration on Open CL, You can these issue on Export.
Please switch GPU acceleration on Software only mode, (if using cuda enabled card then Cuda )
Regards,
Sandeep -
Inserting external swf "Widgets" into a Flex app
Hi.
I need to insert several external widgets into my Flex application. For example the Twitter flash widget and flickr slideshows widget.
Those widgets normally give you HTML code to insert in your HTML page, like:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="FlashVars" value="userID=xxxxxx&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
<embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=xxxxxx&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
</object>
I'm trying to achieve the same goal in my Flex application using the SWFLoader control, but I've got a lot of troubles starting with security issues, and although I just learned to pass the FlashVars values, I don't know how to pass the "<param" values.
public var twitterWidgetSrc:String = "http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf?userID=xxxxxx&styleURL=h ttp://static.twitter.com/flash/widgets/profile/smooth.xml";
<mx:SWFLoader
id="twitterWidget"
source="{twitterWidgetSrc}"
height="290" width="350"
init="setSecurity();">
</mx:SWFLoader>
Is there an easier way to insert these widgets into my Flex application? or how can I complete the SWFLoader to achieve the same results?I don't mean to disappoint you, but your Idea is impossible due to security violation
if you'll look inside this file http://static.twitter.com/crossdomain.xml
you'll probably find out that your host isn't listed there, so you will be not able to load any twitter stuff
Detailed info you could catch in here:
http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf
The only way to get the widget embed and working is through HTML -
How can I insert C structures that have character pointers into DBD file
Hello~
I am changing from a file system I made into DBD.
And I had no choice to convert structures that have character point members
to insert them into the DBD file
for examble,
If there is a structure as below
typedef struct
int IndexKey;
int groupID;
char* name;
char* pNum;
char* pAddr;
char* pMemo;
} TsomeRec;
I made a structure to convert as below
typedef struct
int IndexKey;
int groupID;
char name[MAX_NAME_LEN];
char pNum[MAX_NUM_LEN];
char pAddr[MAX_ADDR_LEN];
char pMemo[MAX_MEMO_LEN];
} TsomeRec2;
But, there are too many structures to convert.
So, I am seeking for the most efficient way to insert these structures into DBD files, considering Performance.
Frankly speaking, I'am not proficient.
please describe as specific as possible.
Thank you~Hi,
Review the documentation section title Using C Structures with DB, in particular the subsection called C Structures with Pointers. It will explain the way to store structures that have pointers.
Regards,
Andrei -
Inserting Fillable forms into PDFs converted from word
I need some help with inserting a fillable form I created in Live Cycle. When I go to insert the form into a file that was originally created in word and saved as a PDF,I receive a message (see below)
I need to be able to find a way to insert the fillable form to the end of a regular PDF, without losing the capabilities of the form, including a submit by email button, which I tried both as the Email submit button and the regular button, formatted to submit a email in response.
I don't know if there is some settings or preferences that I can change to be able to insert the form, but I need it to be one document.I know that this is not impossible, as I have seen other documents in this formatting, I just cant seem to be able to get it.I need some help with inserting a fillable form I created in Live Cycle. When I go to insert the form into a file that was originally created in word and saved as a PDF,I receive a message (see below)
I need to be able to find a way to insert the fillable form to the end of a regular PDF, without losing the capabilities of the form, including a submit by email button, which I tried both as the Email submit button and the regular button, formatted to submit a email in response.
I don't know if there is some settings or preferences that I can change to be able to insert the form, but I need it to be one document.I know that this is not impossible, as I have seen other documents in this formatting, I just cant seem to be able to get it. -
Working on a thesis project due soon... Created flash actionscript 3.0 swf for home page, text plus image, previews beautifully in Flash Publish, stored in my root folder, previews great when I open it in the root folder, dragged and dropped it into my dreamweaver code page, within a spry widget framework, size is perfect. and upon view in design or browsers or browser lab, I just get a nice empty white box. In design view, I see the F symbol and when I click play in properties, I get a message that says "Unable to find the plug in that handles this media type. Dreamweaver looks in both the "config/Plugins folder and the plug in folder for each o your installed browsers". I have Flash Professional CS 5. Reinstalled it just in case that was the issue with the plug in and didn't resolve the problem. Dreamweaver version is CS5. Using a template with spry widget panels. Before I inserted the swf, the preview in browsers and browser lab was fine on the spry widget and background. PC is windows, 32 bit, with ms office suite 2010 upgrade on it. Appreciate any advice.
my first trace on the hz position and vt position outputs but the trace for "scroll positions" and "new scroll positions" is not outputting.
i recieve this output when i click the 'next' and 'back' buttons within the menu9.SWF.
[Event type="iwannaresetscrolling" bubbles=true cancelable=false eventPhase=2]
does this seem right?
import fl.events.ScrollEvent;
aSp.setSize(600, 350);
function scrollListener(event:ScrollEvent):void {
trace("horizontalScPosition: " + aSp.horizontalScrollPosition +
", verticalScrollPosition = " + aSp.verticalScrollPosition);
aSp.addEventListener(ScrollEvent.SCROLL, scrollListener);
function completeListener(event:Event):void {
trace(event.target.source + " has completed loading.");
// Add listener.
aSp.addEventListener(Event.COMPLETE, completeListener);
aSp.addEventListener("main swf", scrollResetListener);
function scrollResetListener(event:Event):void {
trace("Scroll positions", aSp.horizontalScrollPosition,aSp.verticalScrollPosition)
aSp.horizontalScrollPosition = aSp.verticalScrollPosition = 0;
trace("New scroll positions", aSp.horizontalScrollPosition,aSp.verticalScrollPosition)
aSp.source = "menu9.swf";
Maybe you are looking for
-
Battery replacement caused super slow performance
I experience a strange behaviour of my laptop after the battery change i.e. horrible lags – the operating system is literally choking, and loading takes. First I thought that maybe that is a coincidence so I tried to clean the drive, to use a disk u
-
Hi: What is Active Vendor List
Hi, What is Active Vendor List. What type of report it is , and what type of tables and feilds are include inthis. plz send the responce
-
Why is there no support for RTF files in Pages?
Why is there no support for RTF files in Pages? This is nuts!
-
How to adjust the window size in overview screen of a scorecard ?
Hi Experts, In <i>SEM</i> application is it possible to adjust the size of the "<b><i>Perspective</i></b>" windows in the Overview screen of a <i>Scorecard</i> ? If possible how ?
-
New MMS alert but no message in inbox
I downloaded the Glide app and was sent a confirmation number to my MMS. I received the notification of the message and it shows I have a new message, but when I go to my inbox there is nothing there. I continue to try to clear the data from the MMS