Append swf file - Spry.Utils.updateContent - not work
I don't understand this
When I try to add swf file to Spry Tabbed Panels content -
everything is OK. Now - in tabbed panels content I want to insert
data from external html files. In this external file I have swf
file and text, and images. When I preview this html external file
in browser - all data are displayed correctly. When I try append
this file into tabbed panels content :
<a href="#" onclick="Spry.Utils.updateContent('apDiv1',
'products/products1.htm'); return false;">Append file</a>
only swf file in a new window are display.
If I delete swf content from external html file - everything
is ok. But if in external append file is a swf content - IE display
only swf file.
Is there posible to append html file with swf file in this
method in any way?
Hi Elaine,
The implementation of AC_FL_RunContent() suggests that it was
only meant to be run *BEFORE* the page finishes loading. Because
Spry data sets and regions load and redraw asynchronously, usually
*after* the page finishes loading, they are not compatible. As
we've mentioned above, if Spry triggers the call to
AC_FL_RunContent(), it will most likely be *after* the onload event
has fired, and since AC_FL_RunContent() uses document.write() it
will result in the entire page being overwritten by the
<object>/<embed> tag that it writes out.
That all said, libraries like SWFObject were designed to be
called even after the onload event fires, at least from what I can
tell from their samples. If you need to extract data from a data
set to create your SWFObject, you can simply attach an observer to
your data set that will tell the swfobject to do what it is you
want it to do. For example:
<script type="text/javascript">
var dsProducts = new Spry.Data.XMLDataSet("products.xml",
"/products/product");
// Register an observer on dsProducts so that any time it
changes data or the current
// row changes, it tells the swfobject what to do:
dsProducts.addObserver(function(notificationType, notifier,
data)
if (notificationType != "onDataChanged" || notificationType
!= "onCurrentRowChanged")
return;
// Do something with the swfobject here:
var curRow = dsProducts.getCurrentRow();
// The following embedSWF call is only an example of how to
get the "productURL" column
// value for the current row and pass it to the swfobject.
The rest of the args, are left as names to
// show you what you should be passing.
swfobject.embedSWF(curRow.productURL, replaceElemIdStr,
widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj,
parObj, attObj);
</script>
--== Kin ==--
Similar Messages
-
NOTE THAT THIS ONLY PERTAINS TO MOBILE VIEWING (tested on iPhone)
Hi, I have a SpryTabbedPanels widget within my index.html page, where clicking each tab calls Spry.Utils.updateContent() to load an html fragment into the body of the panel content. My index.html looks something like...
<html>
<head>
<!-- All the Spry includes are done here but left out for brevity -->
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p>This is text that is effected by stylesheet.css</p>
<!-- The Spry tabbed panel widget is invoked here, but only the following line is pertinent -->
<li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('frag','frag.html');">Code Fragment</li>
<!-- The rest of the code to close up the tabbed panels widget goes here -->
</body>
</html>
Then the frag.html code can be anything, and here I'll just say it's...
<p>This is a code fragment not affected by stylesheet.css</p>
Suppose then that I have the following style sheet called stylesheet.css...
p {
color:#FF0000;
If index.html is accessed in a web browser like Chrome, Safari, etc., this code will have the obvious effect of displaying:
This is text that is effected by stylesheet.css
This is a code fragment not affected by stylesheet.css
However, when mobile browsing, the style sheet is not carried over to the code fragment, so the default settings for the <p> tag are used, producing black text for the second sentence above, displaying:
This is text that is effected by stylesheet.css
This is a code fragment not affected by stylesheet.css
I've tried putting <html> and <head> tags with a link to stylesheet.css in frag.html, but nothing seems to work. Any help would be greatly appreciated!
ThanksI think that worked. I've been messing around for a long time trying to
figure it out myself watching tons of drop down tutorials. Should have
asked a long time ago... It was hard because I wasn't completing from
scratch and rather updating my current site. How could I give you the
location on the server easily?
Lamppa Manufacturing Inc.
Kuuma (Green) Furnaces & (Fantastic) Sauna Stoves
P.O.Box 422
Tower, MN 55790
www.lamppakuuma.com
facebook<http://www.facebook.com/pages/Lamppa-Manufacturing-Incorporated-Kuuma-Furnaces-Sauna-Stove s/215958785138157>
[email protected]
1-800-358-2049
218-753-2330 -
PrevFrame() buttons in a swf file inserted in html not working in Firefox
Hi!
I have a very weird problem.
I have created a photo gallery using AS3 in Flash CS5. I have used prevFrame() and nextFrame() actions for "previous photo" and "next photo" buttons as well as for "previous thumbnails" and "next thumbnails" buttons.
All the buttons work fine when i run the swf files as well as when i run the swf files in Firefox 8.0 and IE9. However, once I insert this swf file into my html file using Dreamweaver CS5->Insert->Media->swf, the "previous" buttons dont work in Firefox 8.0! the previous image button works sometimes whereas the previous thumbnails button does not work at all! They work fine in IE9. The next buttons also work fine in every browser. Heres my code:
stop();
thumbprev_btn.visible=false;
next_btn.addEventListener(MouseEvent.CLICK, nextimage);
prev_btn.addEventListener(MouseEvent.CLICK, previmage);
thumbprev_btn.addEventListener(MouseEvent.CLICK, prevthumbs);
thumbnext_btn.addEventListener(MouseEvent.CLICK, nextthumbs);
function nextimage(event:MouseEvent):void
if(mc_content.currentFrame==mc_content.totalFrames)
mc_content.gotoAndStop(1);
else
mc_content.nextFrame();
function previmage(event:MouseEvent):void
if(mc_content.currentFrame==1)
mc_content.gotoAndStop(mc_content.totalFrames);
else
mc_content.prevFrame();
function nextthumbs(event:MouseEvent):void
thumbprev_btn.visible=true;
nextFrame();
if(currentFrame==3)
thumbnext_btn.visible=false;
function prevthumbs(event:MouseEvent):void
thumbnext_btn.visible=true;
prevFrame();
if(currentFrame==1)
thumbprev_btn.visible=false;
Please help.Thankyou Ned. The html file published by flash worked perfectly however the problem persisted even if i used this html file's code. But strangely, the problem disappeared after a few days! Now the original dreamweaver code is also working fine.
-
Keynote Flash .swf file to IWeb does not work correctly
I create a presentation in keynote, export to flash and save as a .swf file. I then drag it into a website that I am creating and it shows up as a text file; in other words the title of the file shows up in the box. What am I doing wrong first of all and then secondly, where do I get the HTML code from these files that I have created as I believe I could use the HTML snippet to import the code?? Please help
This seems to be a problem before the file even reaches iWeb. I exported a Keynote presentation to SWF but when I check the file info it shows that the file is a HTML file despite the fact that it has the .swf extension. I changed the "Open With" to Flash Player but that didn't make any difference. I then tried to upload to a server and it transfers the file as text.
It's got me buggered!
An yideas?
Cheers...>Scotty -
Cache of Spry.Utils.updateContent data?
So I have a need for a Tab system that pulls data from other
files to load into the tabs. Any links in those files will trigger
the file to load into the tab (think like an iframe, but no
iframes). If the link is to an external site it will work as
normal. The links in my outside files don't need any js, id or
class in them. Just normal html. With some help from the yahoo
event and dom library I was able to detect clicks and redirect
everything very nicely. Did I need to use YUI to do the event
listener? Not sure, it made it pretty easy and I am no JS expert. I
didn't see anything within spry to help in that regard.
Example Here:
http://dev.besavvy.com/Spry_P1_4_1214/samples/tabbedpanels/tabbed_panel_sample.htm
My trouble comes with caching of the files. It seems FF
caches my .html files but not .cfm ones. IE caches both. I can use
the cfheader tags to prevent the cache I am sure, but that doesn't
fix .html files. I know I can work around it but I wanted to check
here as I am not clear if there is an optional attribute or another
direction I should take. It would be very handy to have a :cache
true :cache false type of solution.Try:
Spry.Utils.updateContent('apDiv1',elTarget,null,{method:'POST'});
which I believe will cause it to use the browsers post
mechanism which never caches.
Or:
var ts = new Date();
Spry.Utils.updateContent('apDiv1',elTarget+'&TS='+ts.toString());
which will add a unique date string to the end of the url
being requested making the browser believe it is a new page
Oh if the page doesn't already have a query string change +
'&TS=' to + '?TS='
Regards,
Chris Phillips
Senior Application Developer
www.dealerpeak.com -
Spry.Utils.updateContent & IE caching pls help
Hi -
so ive read quite a few posts about this problem but no
single - comprehensive solution. Basically im using updateContent
to show and refresh a mini basket display on my ecom site. works
great in firefox but in IE7 the shopping basket apparently gets
cached the first time it gets updated and and then only updates the
cached version thus making it appear as if you havent actually
added anything to your cart. I know it's a cache issue cause I
clear the cache, re-updateContent, and the most current basket
state renders.
It seems like this should be documented somewhere - hopefully
someone can offer up a straightforward solution.
Cheers
AndyHi Andy,
By default Spry.Utils.updateContent() uses the "GET" method
for requesting a fragment from the server. What this means is that
you are at the mercy of the Browser's caching system and the
caching rules specified for that fragment by the Web Server. IE6,
not sure about IE7, also had a bug where even though the server
says don't cache my page, IE still insists on caching the page ...
a workaround was to append a query param to your URL that made the
URL unique, for example the local time:
Spry.Utils.updateContent(ele, "myfoo.php?id=12&curTime="
+ Date.now(), myCallback);
The other workaround is to use the "POST" method. Most
browsers don't cache results from a "POST" because that is what
most web applications use to fetch data that changes.
Spry.Utils.updateContent(ele, "myfoo.php?id=12", myCallback,
{ method: "POST" });
--== Kin ==-- -
Disk Utility is not working for me.
I have had a nightmare trying to install a Boot Camp partition on my brand new 27" iMac with 3TB Fusion Drive and running 10.8.4.
When trying to use Boot Camp Assistant, it would start the partition, then not finish. I quit BCA, tried repairing both the partition and the disk, that didn't help either. So I went into Disk Utility to create a new partition with no file system on it, assuming I could just use Boot Camp Assistant to format it when the partition was created. It would start, but not finish. I tried Repairing the disk and the partition, neither helped.
So I booted with CMD+R, launched Disk Utility, and tried to create a 500GB empty partition. It started and just never quit, so I CMD+Q, got out of it, went back to Disk Utility, I found that I now have a 1.22TB empty partition and a 1.78TB Mac Partition. This is probably my own fault, I should have just let it run, but after 20 minutes, it wasn't moving.
I figured that would work okay, so I tried installing with BCA, but found it's looking for an HFS+ partition to resize and wouldn't work with an empty partition, so I figured I'd just format the empty partition as HFS+ and install with BCA. Unfortunately, I can't get Disk Utility to format the partition. I select the empty space, it puts a white block on it like normal titled Untitled 2, I select Mac OS Extended (Journaled), hit apply, something flashes very briefly over the "capacity" line, and then nothing happens. Hit revert and it shows up with the Macintosh HD partition and the empty partition. No matter what format I choose, nothing happens. If I try to exit, it tells me that changes have not been saved.
I'm trying to just extend the Mac partition, but the resizing option is not available. I can't drag it to cover the Free Space partition, I can't type in the Size to resize it by number, I can't do anything. I've tried to repair the disk and the partition, nothing happens. I can't reclaim the space no matter what I do.
At this point, all I want to do is recover the entire space of the hard drive for Mac OS. I'll try again with Boot Camp Assistant after Apple works the kinks out.
Any help would be appreciated.The Boot Camp Assistant in 10.8.4 should be able to partition your 3TB+ drive so you can have Windows. If Disk Utility is not working then your disk is corrupt. Backup all your data using Time Machine. Erase the volume and restore from Time Machine backup. You can use the ‘OS X Recovery Disk Assistant’ (http://support.apple.com/kb/DL1433). Open Recovery Disk Assistant and follow the on screen instructions to create a Recovery HD on the external drive. When the Recovery Disk Assistant completes, the partition will not be visible in the Finder. To access the external Recovery HD, connect the drive, then restart the computer and hold the Option key. Select Recovery HD from the Startup Manager. You would need to re-install Mountain Lion up to 10.8.4. Then ran Boot Camp Assistant and then install Windows. Once you have confirmed that Windows is running then open up Migration Assistant (in the utilities folder) and migrate your Time Machine backup back on to the hard drive.
-
I added preset motions to my interactive pdf file. It's not working when I export my file as an interactive pdf. It's working when I play it on the Preview panel. I must not be doing something right. Does anybody have any clue what I need to do to have my presets motions work when played on Acrobat
So do you mean export the whole document in a swf file format and then bring the whole swf file in and save it as a pdf file. Is there way to export these motion presets seperately and bring them back into Indesign. I wish it was less difficult but I guess there is no way around it for the time being.
-
Fingerprint utility is not working for normal users - Tecra M11
Hi All,
I installed windows 7 pro in Tecra M11 laptop and the Toshiba finger print utility is not working for normal users.
It is working only for domain administrators. The TFPU is not working for, normal domain users, local users, local administrators. If we run the utility it will ask to enter the windows password and once we applied the password then the message saying "entered password is not valid" will prompt even if we are trying to use the utility first time.
If we try with a domain admin account it will work without any problem. Can somebody help me to trouble shoot this issue?
Thanks.People nowadays experienced that no matter How many times we glide our finger it have no response.In this instance, you might be very afraid of Windows password lost by reason that there is a plenty of important data on your PC.
Then what should you do? One choose is fix the Fingerprint scanners, but this method will cost a lot of money. The other is use the Windows password function to solve the problem. Certainly, this is a very safer, faster and easier to use method for you.
According my personal experience, you can try these three ways to re-access to your PC:
Method 1: Login with the default administrator account
* Step 1: Start Windows PC
* Step 2: When you can see the Windows login screen, press ctrl+alt+del keys Twice and it'll show Classic Login box
* Step 3: Type Administrator as Username and leave the password field blank
* Step 4: Press the Enter Key and then you can be able to login the default windows administrator account which is it created by default when install windows.
*Note:* This trick is only work for Windows XP. And when you input the key combination Please don't put the cursor on any account. And if you change the name or password before, you cannot login by this way.
Method 2: Use the previous password reset disk
This method describes how to create and use a password reset disk for a computer that is a member of a domain. You can use a Windows password reset disk to gain access to your Microsoft Windows Professional-based computer if you forget your Windows password. Please click here to learn more.
Method 3: Using Windows Password Unlocker
Using Windows password remove software is could be the fastest and easiest way for you to reset your Windows password while you didn't create a password reset disk before.
There are 2 options for you: recover Windows password with a bootable CD/DVD or recover Windows password with a USB flash drive.
Before starting, a bootable CD/DVD or USB flash drive and a computer with CD drive are required. (Internal CD drive and external CD drive are both OK.
Option 1: Recover Windows password by burning a bootable CD/DVD
Option 2: Recover Windows password by burning a USB flash drive
The whole Windows password recovery process can be divided to 3 big steps:
* >> Step 1: Burn a USB flash drive to remove lost Windows password
* >> Step 2: Set your target computer to boot from USB
* >> Step 3: Recover forgotten Windows password with the burned USB flash drive
In fact, all you need is a *Windows Password Unlocker www.passwordunlocker.com/windows-password-recovery.html which can help you directly reset your windows xp password, and then you can login your XP without a password required. Of course, there are also some other ways to do it, but this way may be most convenient one. -
File type associations is not working in the App-V 4.6 SP3
Hello,
I found issue, that file type associations is not working in App-V 4.6 SP3. When I try to open associated file with double click I receive next window:
Translate: This action is only valid for products that are currently installed.
I have checked associations in App-V Console and in OSD file, everything looks like OK.
Maybe someone has some ideas?
Could you please share them with me?
Thank you in advance.Is this only happening on one client machine? If so can you completely clear the application and re-stream\cache it again?
If that fails, you could try to create the FTA locally on the client
PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
rorymon.com Twitter: @Rorymon -
RAID Utility does not work after Vista upgrade
Hi,
I have a Qosmio G30 with 2 HD 120GB each. After I upgraded to Windows Vista from Windows XP, the Toshiba RAID Utility does not work anymore. In WXp it worked OK, but in Vista there is no way I can mirror the HD. That is, the utility itself work, but the button that should say Mirror, or something like that is not shown. I have set the drives to RAID-1 in the BIOS, but no go.
Is there any way to get the software RAID to work again?Hi,
just a little question: While installing vista, did you installed the RAID-driver at installation time? Maybe this could be the reason why RAID cannot be activated properly.
Please give some feedback, if you installed the RAID drivers for Vista during the installation..
Cheers -
Spry:state="loading" for Spry.Utils.updateContent
It would be very handy to be able to use something like
spry:state="loading" for Spry.Utils.updateContent. Right now it
seems you can only use the :state="loading" for regions. Makes
sense but being able to activate the loading div while update
content is running would also be very handy. To that matter for
waiting for tabs to load, etc.Cool. Thanks for the reference, Andrew!
-
Application "FINDER"not responding,Desktop files disappeared & " also "Trash" not working svn after relaunching several times.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
Step 1
Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
Enter the name of the crashed application or process (Finder) in the Filter text field. Post the messages from the time of the last crash, if any — the text, please, not a screenshot.
When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
Please do not indiscriminately dump thousands of lines from the log into a message.
Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
Step 2
Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful. -
I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?
Are you using the Adjust Date and Time option or the Batch Change option? If it's the former try the latter. If you get the same results launch iPhoto with the Option key held down and create a new, test library. Import the same video file and check to see if the same problem persists.
OT -
I have mp4 videos on my computer that I want to add to itunes...the add a file or folder is not working. Why?
wait until, Apple fixes it
Maybe you are looking for
-
I want to set up a desktop ikon for a webpage. Can you help?
Here is the webpage: http://onlineministries.creighton.edu/CollatorativeMinistry/daily.html I want to create an ikon on my desktop to use daily. I was given directions for Explorer, but I use Firefox, and the directions did not work. How do I do this
-
Classic freezes for one user, not another
Hello, For a couple of years, an older iMac in our office has been running Classic just fine with Quicktime version 5.0.5, even though we always got the warning that we should use 6.03. We turned the warning off, and Word & Excel both run fine in the
-
Populate Result of query in Different worksheets of One Workbook in Excel.
I want to get output of different queries to be populated in Different Sheets of a workbook of Excel in Unix/Linux Environment.
-
BDC - SHDB is not completing the transaction MEKH
I am trying to create a BDC Program for updating/adding Market price KONP-KBETR using transaction MEKH. 1 .I used CALL TRANSACTION 'MEKH' in mode 'A'. But screen fields are not getting populated. 2. I tried to create the program from Recording, but I
-
Why cant i rename my music, it doesn't save my artist name when i disconnect from itunes!
It renames all my files (Artist Names) when I am plugged into itunes, but as soon as I disconnect my device (both my iphone and itouch), it goes right back to the messed up names that they are when i first put the songs on. My OCD is killing me and I