admin

 

hi eveyone!

canany one can help meto add text to the picts if i am using
the tree compnent ?

 

Hi everyone,

I’ve created a custom cursor for my mouse and I’ve also
created a new ContextMenu for my right click menu options. My mouse
works fine, but when I right click and make a selection from my
right click menu, my custom cursor along with the standard arrow
mouse appears as well. Then throughout the rest of the movie, both
mouses appear. How do I permanently get rid of the standard arrow
mouse and just have my custom mouse be used especially when right
clicking?

I’ve done research on this topic but none seemed to address
the right click part. Any help would be greatly appreciated!!

Thanks!;
If you are workking with a PC Projector then you can use

FlashJester Jugglor

http://www.jugglor.com

Regards

FlashJester Support Team

e. – support@flashjester.com

w. –
http://www.flashjester.com

There is a very fine line between “hobby” and

“mental illness.”

 

Adobe Flash CS3 Professional; Action Script 3.0.

Hello!

Could you please help me to figure out how to make an
UIScrollbar work in HTML-published document.

I searched several Flash forums and some people had this
problem, but I did not find a solution to it.

The problem is that when I make a text area and add
actionscript to upload a text (dynamic text) from a .txt file, I
also add a scroller (UIScrollbar) which works perfectly as a flash
movie (in flash player) and does not work as an HTML document,
being either on my HDD or published at a server.

Here is the link to a dummy website I am developing, and you
can see on the main page that the scrollbar is not active.
http://www.survivorsresource.narod.ru/Flash/main.html

I tried such browsers as Opera, IE, Firefox, Safari, and the
stage published in HTML does not display active scrollbar.

Much appreciated,

Alexey;
Can you just tell me if the problem lies in Action Script
that I need to change manually, or in Browser, or somewhere else. I
have last versions of Opera and Safari, and the last version of
Flash player, and I just don’t grasp it why such a simple feature
would not work by default.

I did all that is necessary for a scrollbar to work with
text. I gave a proper name in the properties, which corresponds to
the instance name of a text area, and it works in flash player, but
not in HTML.

I am a newbie to flash, so I just felt much frustration over
this issue, and there’s no easy troubleshooting that I found.

Thanks

Alexey;
What happens if you take the .swf and drag it onto a browser
window? Does the scroll bar work then? Are you attaching the scroll
bar using actionscript or are you placing the scroll bar on the
stage?;
Hi,

The scrollbar does not work when I drag this file into
browser’s window.

Yes, I dragged UIScrollbar onto the text area on the stage.

This is the Action Script code for uploading text. I found it
in a tutorial. I don’t use other text related code (only that for
links to work).

quote:


var loader:URLLoader=new URLLoader();

loader.load(new URLRequest(“test.txt”));

loader.addEventListener(Event.COMPLETE, onComplete);

function onComplete(event:Event):void

{

test_txt.text=event.target.data;

}


;
Do you guys have any ideas of what can be wrong with the
scrollbar?;
You need to include this line in your actionscript or the
scrollbar won’t work:

import fl.controls.UIScrollBar;

But you must have that or the movie wouldn’t work in test
mode either.

The only thing that comes to mind is to throw out the
UIScrollBar instance that you have in the Library and import a new
one. It may have become corrupted somehow.;
Rob,

I added this line of code in the script and it seemed not to
affect anything. I also know that I twice reinstalled the demo
version that I currently use, so the problem with corrupted files
seems not to be actual. I guess I either do a big mistake
somewhere, or it is a software error. I’ll try to find a ready for
use scrollbar script.

Thanks anyaway for your attention.

Alexey;
I finally found how to solve this problem.

http://www.flashperfection.com/tutorials/Custom-Scrollbar-made-with-Ac tionScript-3.0-41169.html
It’s an easy tutorial on creating a custom scrollbar in AS 3.0.

I used it and it works!

Alexey
;
Everythng works. Ask me how.

http://survivorsresource.110mb.com/flash.html;
Everythng works. Ask me how.

http://survivorsresource.110mb.com/flash.html

 

I am looking for a particular type of flyout menu – sounds
strange but it needs to be all horizontal. For example, roll over
the “Menu” button and all the categories flyout beneath it
horizontally. Then, sub menus of each category also flyout
horizontally. I have spent a long while looking for a component or
kit but not found anything suitable yet.

Any ideas?

Thank you;
Horizontal menus are great when you need to save space, i.e.
if you don’t have enough vertical space for a drop-down menu.

Creating one on your own isn’t much different from creating a
vertical menu. Just arrange the buttons or little movie clips
side-by-side instead of one on top of the other. Create each menu
section in a movie clip, then attach it to a main button on the
main button’s (or main stage’s) timeline. Use ActionScript to make
the flyout appear using an onClick or onRollOver (or MOUSE_OVER or
MOUSE_UP) event.

If you aren’t familiar with all this, go to www.flashden.net.
They have lots of pre-made menus, all very inexpensive.;
tunghoy wrote:

> Horizontal menus are great when you need to save space,
i.e. if you don’t have

> enough vertical space for a drop-down menu.

>

> Creating one on your own isn’t much different from
creating a vertical menu.

> Just arrange the buttons or little movie clips
side-by-side instead of one on

> top of the other. Create each menu section in a movie
clip, then attach it to a

> main button on the main button’s (or main stage’s)
timeline. Use ActionScript

> to make the flyout appear using an onClick or onRollOver
(or MOUSE_OVER or

> MOUSE_UP) event.

>

> If you aren’t familiar with all this, go to
www.flashden.net. They have lots

> of pre-made menus, all very inexpensive.

or just search google for “flash flyout menus”, there are
thousands of places providing

totally free and sometimes even better than flashden samples.

I found in fact many people trying to pass free source files
availalble on line, as their

own work on flashden.



Best Regards

Urami



“Never play Leap-Frog with a Unicorn.”

<urami>

If you want to mail me – DO NOT LAUGH AT MY ADDRESS

</urami>

 

My template used to work and used to update the pages without
problem, but now I receive errors. It started by not updating some
of my pages, while it updated others, and now is site-wide. Most of
the errors it says are on line 1, with “Unbalanced InstanceBegin”
tags. However, usually these are in portions of the pages that are
locked by the template. I read through other posts, and tried some
suggestions, but nothing seems to work!

I’m incredibly desperate. Please help!!!

The main page of my site is:
www.sapch.org It says the error
here is an unbalanced tag on Line 4. Please help!

There are lots of problems site-wide that I’m trying to fix,
but can’t do it when I can’t update the pages.

;
> However, usually these are in

> portions of the pages that are locked by the template.

I’ve never seen a false positive on this error. Let’s have a
look at your

template.

I’ve just looked at your child page, and for sure, there’s a
problem -

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0
Transitional//EN”


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html xmlns=”
http://www.w3.org/1999/xhtml”>

<head></head>

<!– InstanceBegin template=”/Templates/Home.dwt”

codeOutsideHTMLIsLocked=”false” –>

<head>

Note the duplicate <head> tags, and the misplaced
<!– InstanceBegin clause.

Let’s see the template now.



Murray — ICQ 71997575

Adobe Community Expert

(If you *MUST* email me, don’t LAUGH when you do so!)

==================

http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources

http://www.dwfaq.com – DW FAQs,
Tutorials & Resources

==================

“Jrowe11″ <webforumsuser@macromedia.com> wrote in
message

news:fsugft$92p$1@forums.macromedia.com…

> My template used to work and used to update the pages
without problem, but

> now

> I receive errors. It started by not updating some of my
pages, while it

> updated others, and now is site-wide. Most of the errors
it says are on

> line

> 1, with “Unbalanced InstanceBegin” tags. However,
usually these are in

> portions of the pages that are locked by the template. I
read through

> other

> posts, and tried some suggestions, but nothing seems to
work!

> I’m incredibly desperate. Please help!!!

>

> The main page of my site is:
http://www.sapch.org It says the
error here

> is

> an unbalanced tag on Line 4. Please help!

> There are lots of problems site-wide that I’m trying to
fix, but can’t do

> it

> when I can’t update the pages.

>

>

;
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0
Transitional//EN”


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html xmlns=”
http://www.w3.org/1999/xhtml”>

<head></head>

<!– InstanceBegin template=”/Templates/Home.dwt”

codeOutsideHTMLIsLocked=”false” –>

<head>

Note the duplicate <head> tags, and the misplaced
<!– InstanceBegin clause.

Where should the <!– InstanceBegin clause be in the code?

Here’s the code for the template:

;
Murray,

Can you take a look and see if you see a solution? I could
really use some help!;
In my previous post, I said this -

Try this -

Spawn a new page from the template, and post the first 10
lines of that new

page in a reply here.

You didn’t respond. Can you do that, please?



Murray — ICQ 71997575

Adobe Community Expert

(If you *MUST* email me, don’t LAUGH when you do so!)

==================

http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources

http://www.dwfaq.com – DW FAQs,
Tutorials & Resources

==================

“Jrowe11″ <webforumsuser@macromedia.com> wrote in
message

news:ft1rtt$2ob$1@forums.macromedia.com…

> Murray,

> Can you take a look and see if you see a solution? I
could really use

> some help!

 

Hello,

I have a class with a certain amount of properties that are
of different types (String, Array, custom class, etc.). I want to
be able to loop tthrough each of these properties. I tried the
following code:

var testObj:myClass = new myClass();

for each(var element in testObj){

trace(element);

}

I looked in the debugger and it does not go inside the “for
each” loop. Did I make a mistake or is there another way to do
that?

Thanks a lot in advance for any help

Pierrot;
That will work for dynamic properties (associative array),
but will not work

for class properties.

For class properties, you’ll need to use something like this:

import flash.utils.*;

function getObjectPropertyNames(o:*):Array

{

var result:Array = new Array();

var t:XML = flash.utils.describeType(o);

var l:XMLList;

if (o is Class){l=t.factory.accessor;}

else {l=t.accessor;}

var node:XML;

for each(node in l)

{

result.push(node.@name.toString())

}

return result;

}

var testObj:myClass = new myClass();

var props:Array = getObjectPropertyNames(testObj);

// dynamic properties

for each(var element in testObj){

trace(element, testObj[element]);

}

// class properties

for(var i:int=0; i<props.length; i++){

trace(props
, testObj[props]);

}

 

hi there

if you check these 2 sites out:

http://www.southendlocaljobs.co.uk/

and

http://www.chelmsfordlocaljobs.co.uk/

it looks to me like that is the same application that those 2
different domains points to, but pressumably the application is
also passed a ‘townid’ so it knows what text variances to display.

this isnt my application but we have a need to do something
similar.

we are running CF8 on windows sever (2003 i think).

is this something one handles in IIS? or via somesort of rule
in application.cfm

does anyone know what is considered best practice with this?

what about duplicate content from google’s perspective etc.

thanks very much indeed for any help you can offer.;
Does anyone have any comments to make on my above question?

All help would be very gratefully received.

Thank you.;
happysailingdude wrote:

>

> thanks very much indeed for any help you can offer.

>

There are many possibilities. But one of the easiest
identifier is the

URL. One can inspect the url used to access a web application
with the

CGI scope. With this piece of information it is rather
trivial to

configure a site to offer up specific content based on this
site ‘id’.

;
To vary the content by the domain name look at each request’s
cgi variables, such as cgi.server_name or cgi.http_host, and
generate your content accordingly.

To setup multiple domains to point to the same website you
need have multiple domain names associated with your site’s public
IP address.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expr essions_8.html#2679705;
thanks very much for your replies chaps,

so we have 2 issues here then it seems:

1. how does the application know which site the user is
visiting (and thus what content to serve)

2. how to configure the webserver / DNS etc.

–part 1–

It seems you’re both saying that looking at the CGI vars is
the way to go for part 1. I understand from the cfdocs that not all
browsers support all of the different cgi vars, does anyone have
any first hand experience of this? should i look at cgi.server_name
or cgi.http_host?

maybe i need to look at both? that leads me onto the question
of performance… does putting <cfif cgi.http_host contains
‘abc.com’ or cgi.server_name contains ‘abc.com’ > into
application.cfm represent a potential performance issue?

also what if some browser somewhere doesnt pass either
cgi.http_host or cgi.server_name – then what?

–part 2–

re DNS etc – forgive me this isn’t my strong point, so i’ll
probably ask my host to assist with this, but if anyone could
please give me a simple outline of what i’m seeking to achieve re
the DNS / hosting etc that would be great as then i can pass that
onto my host

Thanks very much indeed – your help is much appreciated

Nick;
happysailingdude wrote:

> –part 1–

> It seems you’re both saying that looking at the CGI vars
is the way to go for

> part 1. I understand from the cfdocs that not all
browsers support all of the

> different cgi vars, does anyone have any first hand
experience of this? should

> i look at cgi.server_name or cgi.http_host?

Slight misunderstanding here. CGI variables come from the web
server

not the web browser. Yes different servers offer somewhat
different

sets of CGI variables. Some CGI values are more universal
across

servers then others. But you should be well aware of what web
server

(i.e. IIS, Apache, whatever) you are using and can adjust
your code

accordingly.

> –part 2–

> re DNS etc – forgive me this isn’t my strong point, so
i’ll probably ask my

> host to assist with this, but if anyone could please
give me a simple outline

> of what i’m seeking to achieve re the DNS / hosting etc
that would be great as

> then i can pass that onto my host

DNS is a simple database of domain names matched to IP
addresses. So

how what we are discussing works is that you make multiple
entries into

this database, one for each domain name, all pointing to the
same IP

address of you application.

I.E.

www.southendlocaljobs.co.uk -> 111.222.111.222

www.chelmsfordlocaljobs.co.uk -> 111.222.111.222

There is a bit more to it then this, but your hosting
provider is going

to understand the details and be able to walk you through
this.

;
thanks Ian

sorry about the mix up re CGI vars – thanks for clarifying
that.

thanks also for the info re the DNS side of things.

just one quick question relating to “part 1″ if i may..

you say “different servers offer somewhat different

sets of CGI variables. Some CGI values are more universal
across

servers then others. But you should be well aware of what web
server

(i.e. IIS, Apache, whatever) you are using and can adjust
your code

accordingly.” – we’re running IIS – so ought we to base our
cfif statements in application.cfm around cgi.server_name or
cgi.http_host would you suggest?

oh yes, did you have any comments to make about any
performance issues of this putting this logic in application.cfm?
(do you think that something like this would be better than
interrogating the cgi var on each and every page?

<cfif not isdefined(“session.siteid”) >

<cfif cgi.HTTP_HOST contains “southendlocaljobs.com” >

<cfset session.siteid = “southend” >

</cfif>

<cfif cgi.HTTP_HOST contains “chelmsfordlocaljobs.com”
>

<cfset session.siteid = “chelmsford” >

</cfif>

</cfif>

thanks very much indeed for your help

;
sorry my code lost its formatting – here it is again for
clarity:

<cfif not isdefined(“session.siteid”) >

<cfif cgi.HTTP_HOST contains “southendlocaljobs.com” >

<cfset session.siteid = “southend” >

</cfif>

<cfif cgi.HTTP_HOST contains “chelmsfordlocaljobs.com”
>

<cfset session.siteid = “chelmsford” >

</cfif>

</cfif>;
Grrr! and again – ignore the fullstops

<cfif not isdefined(“session.siteid”) >

….<cfif cgi.HTTP_HOST contains “southendlocaljobs.com”
>

……..<cfset session.siteid = “southend” >

….</cfif>

….<cfif cgi.HTTP_HOST contains “chelmsfordlocaljobs.com”
>

……..<cfset session.siteid = “chelmsford” >

….</cfif>

</cfif>;
Rather than using repeating cfif statements, each of which
must be evaluated, I’d use cfswitch or cfelseif so that evaluation
will end when a match is found.

;
happysailingdude wrote:

> you say “different servers offer somewhat different

> sets of CGI variables. Some CGI values are more
universal across

> servers then others. But you should be well aware of
what web server

> (i.e. IIS, Apache, whatever) you are using and can
adjust your code

> accordingly.” – we’re running IIS – so ought we to base
our cfif statements in

> application.cfm around cgi.server_name or cgi.http_host
would you suggest?

I do not have direct knowledge if what CGI variables are
where with

which servers. Whenever I start developing an application
that will use

CGI variables, I just do a quick <cfdump var=”#cgi#”>
to see what I have

to work with today in the current environment.

>

> <cfif not isdefined(“session.siteid”) >

> <cfif cgi.HTTP_HOST contains “southendlocaljobs.com”
>

> <cfset session.siteid = “southend” >

> </cfif>

> <cfif cgi.HTTP_HOST contains
“chelmsfordlocaljobs.com” >

> <cfset session.siteid = “chelmsford” >

> </cfif>

> </cfif>

That is a fine idea. I’m not sure of the performance gain,
but I

suspect there is a small one over inspecting the cgi variable
every

request. If you are hype concerned about performance though,

theoretically integers are more efficient then strings. If
you care to

take it to this level you would set your siteid to simple
integers, i.e.

1,2,3,etc.

I’ve never needed to be concerned with this level of
performance. But

it is my understanding <cfif session.siteid is 1> is a
tiny bit faster

then <cfif session.siteid is ‘southend’>. But of course
at the cost of

code clearity. Who is going to remember 1 = soutend six
months from now.

;
hi Bob, good point thanks, would you go down the session var
route or just interrogate the cgi scope on every page?;

quote:


Originally posted by:
happysailingdude


hi Bob, good point thanks, would you go down the session var
route or just interrogate the cgi scope on every page?


If you plan to require sessions and will use them to store
data other than just the site id you could check for the existence
of your session variable then only create it as needed. I’d also
follow Skinner’s suggestion to store interger IDs rather than site
names in your sessions to keep your session objects small.

If the session’s only purpose is to track the site I would
avoid using session and just check the site on every page request
since using session creates overhead for your CF server (bear in
mind that search engine robots are notorious for creating
extraneous sessions on your server).

;
Thanks very much for your help Bob and Ian

I have summarised my conclusions here (based on the help ive
received) for anyone else reading this forum later on:

to achieve the aims outlined at the top of this post:

1. use CGI vars to deduce the domain the visitor has
requested

2. different server’s O/S will give you access to
cgi.http_host or cgi.server_name (or both) – use cfdump #cgi# to
see what you’ve got

3. use cfswitch or cfelseif statements in application.cfm to
deduce which site your visitor is after

4. if you’re using sessions already then set the siteid as a
numeric (rather than string), if you’re not using sessions then
dont do so just for this as they put an overhear on the server
(when googlebot visits) and the cfswitch logic isn’t very heavy on
processing

5. your host will help you with DNS – ask them to set it up
so you have an entry for each domain pointing to the same IP
address of your server

that’s about the size of it i think (do feel free to correct
me / add to this if you wish)

thanks again for your help chaps – is much appreciated

Nick

 

I am using a spry data table created in Dreamweaver CS3 on an
.htm page with dynamic xml data that updates 1x an hour.

The .htm file and XML reside on the same server within the
same folder on the server.

When I first view this page, everything displays correctly.

When the XML file is updated and FTP’d to this folder, the
dynamic spry table in FireFox displays the new XML content, but IE6
does not display the new XML content.

In IE6, I hit the F5 key to refresh the page, and the XML
content still does not display the current “fresh” data. When I
manually in the IE6 browser go to TOOLS > INTERNET OPTIONS >
DELETE temporary files to clear the cache. Then the new “fresh” XML
content appears.

Here is the code I am using:

var ds1hydro2 = new Spry.Data.XMLDataSet(“hydroplants.xml”,
“dataroot/HYDROPLANTS/HYDROPLANT”,{useCache:false,loadInterval:3000}) ;

In the Live Docs information, it says:

“One other concern with dynamically generated XML is making
sure

that the browser (or server) does not cache the data. Browser
or server

caching can prevent your most recent data from reaching Spry.
To prevent

this, specify HTTP headers for the following items:
Cache-Control. Expires, and Pragma.”

This is the http header info I used on the .htm page:

<META HTTP-EQUIV=”expires” CONTENT=”-1″>

<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache, no-store”>

<META HTTP-EQUIV=”Cache-Control” CONTENT=”private,

no-store, must-revalidate”>

I have tried various combinations, but I cannot get the IE6
cache to clear.

Do I have an error in my code?

Am I using the correct meta http-equiv tags?

Is there an IE6 cache bug?

Any comment or help is appreciated.

;
I’ve run into the same and had a little luck with the
following from the LiveDocs Spry:

// Load the data every 10 seconds. Turn off the cache to make
sure we get it directly from the server.

var dsPhotos = new
Spry.Data.XMLDataSet(“/photos.php?galleryid=2000″,
“/gallery/photos/photo”, { useCache: false, loadInterval:

10000 });

When you attach the dataset (XML) Adobe help recommends
“Select the Turn XML Caching Off option if you want to load data
directly from the server. By default, the Spry XML data set is
loaded to a local cache on the user’s computer to improve
performance, but if you have highly dynamic data, there is no
advantage to this method.

Select the Auto Refresh Data option and enter a value in
milliseconds. If you select this option, the data set automatically
refreshes the XML data from the server at the specified interval.
This is helpful with data that changes frequently. ”

Like I said – I’ve had some success with just this, but it
will load from the server every time (not cache).;
This is a real *&^%^ of a problem and it’s taken me quite
a while to find a solution; in fact, just got back from a friend’s
place who helped me out (thanks Steve).

I wasn’t doing auto refreshes, but same issue. I am
simulating the browser back/forward buttons in a Spry data area by
using a stack maintained in ColdFusion on the server, in session
scope. Traversing back and forth, trimming the stack, breaking the
stack when going to a new URL within the site after navigating
back, etc, all worked exactly as expected in Firefox. In IE, it
seemed to work until I wanted to go back into the stack then hit a
new internal link. From that point on, it got sticky and behaved
exactly as you wouldn’t expect, which we traced to a caching of
pages that couldn’t be overridden with header tags or anything else
we knew how to do.

OK, to the solution, it is a Spry issue. [** oops, no it
isn't exactly a Spry issue, it's IE failing to do what is expected,
now there's a first. See Kin's reply below. ***] You both did what
I did and followed the docs. My constructor looks like this:

var dsContent = new
Spry.Data.HTMLDataSet(“index.cfm?fuseaction=public.home”,
“contentData”, {useCache: false });

In testing, when we set useCache: true, Firefox behaved
exactly like IE, which gave us our clue.

My less-than-perfect understanding suggests that the Spry
code running in an IE6 browser session loses the useCache: false
directive on the data object. Our work-around is to re-assert this
after loading the data to the Spry data object. Here’s how mine
looks:

dsContent.loadData(); useCache=false;

Once we did this, IE behaved exactly like Firefox, and
exactly to expectations. Anyone who really understands this stuff,
please let us know if our work-around is safe and maybe the Adobe
Spry team can provide something more elegant.

Enjoy!

Peter Robertson;
U can also add a unique value to your data so IE sees it as
new content

————

var date = new Date();

var unique = date.valueOf();

var ds1hydro2 = new
Spry.Data.XMLDataSet(“hydroplants.xml?time=”+unique,
“dataroot/HYDROPLANTS/HYDROPLANT”,{useCache:false,loadInterval:3000}) ;

;
Yes, also makes sense for auto-refresh situations. In my
case, however, once the constructor runs it doesn’t get noticed
again as links outside of (and inside) my Spry data display load
new (hopefully) data to the data object for display. I’ll try to
get a chance to test it as this would indicate that IE knows
something about the data object. In any case, it is still a
work-around and this will hopefully will get noticed and fixed by
the team.

Cheers

Peter Robertson;
Hi Peter (chollo),

IE does have a caching bug. Spry is not losing the useCache
setting on IE. When useCache is false, Spry makes an XmlHttpRequest
for the URL you gave it, but it is then at the mercy of the caching
rules defined by the browser and server, and as such, at the mercy
of any bugs they have.

You can see the same problem by using pure XmlHttpRequests
(with no Spry involved). The way folks have been getting around
this is the way V1Fusion points out, by adding a timestamp to the
end of the URL which forces the browser to make the request, at the
expense of more browser caching. Another possible workaround, is to
use a POST instead of the default GET request. Try something like
this:

var ds1hydro2 = new Spry.Data.XMLDataSet(“hydroplants.xml”,
“dataroot/HYDROPLANTS/HYDROPLANT”,{useCache:false,
loadInterval:3000, method: “POST”});

And see if that gets you around the problem in IE. The reason
this should work, is that browsers don’t cache POST requests.

–== Kin ==–;
Hi Kin

Thanks for that, very good to know the why of it.

Given that the kludge we found appears to work, do you see
anything wrong with it?

ie, reasserting the false value when loading the data
subsequent to the constructor:

dsContent.loadData(); useCache=false;

(Mightn’t be elegant, but it’s simple :-) )

Really appreciate the input. Do you think Adobe should
reference these land mines directly in the Spry online docs?

Cheers

;
Hi Peter,

You are absolutely correct when you say we should be
documenting these land mines. We have this on our list of todos as
one of the things we need to document and provide a sample for.

As for your workaround, I don’t quite understand it:

dsContent.loadData(); useCache=false;

Do you mean??

dsContent.loadData(); dsContent.useCache=false;

I don’t understand why that would make a difference since
there is *NO* code within SpryData.js that ever sets the value of
useCache except in the constructor of the data set. Have you
actually verified with an alert() or Spry.Debug.trace() that
useCache is indeed true when it was supposed to be false?

–== Kin ==–

;
Hi Kin

No, haven’t verified that the property gets lost. Given not
understanding what happens under the covers, and verifying that
Firefox behaved the same as IE when setting useCache=true in the
constructor, we then went straw-clutching. The thing is, the code
works when we use it, the stack I’m maintaining behaves perfectly
well in IE as in Firefox and the behaviour of my code is as I
expect. In other words, IE stops caching.

If it doesn’t look to you as though it should work, I’m going
to take it out, as it may cause unpredictable effects with other
browser types/versions. I’ve tested your solution and it works
perfectly well (bearing in mind we’re not auto refreshing, we are
always loading data to the Spry data object from in-site links).

So, for my understanding, having put the POST directive in
the constructor, when I update the data object from a link, as in

<a onclick=

“dsContent.setURL(‘index.cfm?fuseaction=public.leftSubMenuItemPage&le ftNavSubID=435′);

dsContent.loadData();”

>

Personal Development Skills

</a>

… how does this work? Does the data object then know that
whenever it is asked to load any content, it must execute a post? I
really don’t understand.

Anyway, it works, so I’ll be using your POST solution.

By the way, appears you’re a Spry team member? Wasn’t sure
who I was talking to. Thanks for getting across this, and look
forward to next Spry iteration.

Cheers;
Hello everybody, I just try all the solutions you are writing
here and in mi case it doesn’t work, the really weird thing is that
it work’s some times and sometimes not, why?? all of you have try
this just once? or you can confirm that it work’s all the time?,
cause in my case not, I know it is a IE bug, but it should be a
walkaround for this, I use IE7 in vista, if anyones can tell me
why?? thanks;
goseta, there is a large topic about tacling this issue.

eayest thing is to use post requests instead of get.

var dataset = new
Spry.Data.XMLDataSet(‘source.file’,'my/xpath’,{method:’POST’});

100% sure that works,

same goes with my solution, also works 100%.;

Windows
ISS fix for Cache issue with Spry Data Table

;

Windows
ISS fix for Cache issue with Spry Data Table

;

quote:


Originally posted by:
V1 Fusion


goseta, there is a large topic about tacling this issue.

eayest thing is to use post requests instead of get.

var dataset = new
Spry.Data.XMLDataSet(‘source.file’,'my/xpath’,{method:’POST’});

100% sure that works,

same goes with my solution, also works 100%.


When I put in method:”Post”, IE doesn’t display the xml data. :( ;

hey, bchau,

I have the same problem with you.

But i did try the other way mentioned above to get around.

 

 

var date = new Date();
var unique = date.valueOf();
new Spry.Data.XMLDataSet(“galleries/galleries.xml?time=”+unique, “galleries/gallery”,{useCache: false,loadInterval:3000});

 

Anyone can explain to me why i can not get “{method::’POST’}”‘ working will be really great.!!!

 

By the way, spry framework is really great, I truely love it.

cheers!

;

Thanks all for this discussion, it’s just what I’m trying to solve. Unfortunately, I still have a combo of the issues.

In Firefox, adding useCache:false to the constructor worked just fine.

 

However,there seems to be new issues in IE8 (big surprise there), as this does not override caching.

Adding dsname.useCache=false; also does not work.

 

When I tried using the Post method in the constructor, Firefox 3.6 stops displaying the data set altogether, and IE8 is still using the cached data set, so unfortunately, the 100% works solution simply doesn’t, at least with these versions of the browsers.

 

Anyone have any clues on how to make FF, IE6, and IE8 all refresh the data set? I’m really only interested in it doing so when the page loads or reloads.

;

Hi everyone!

I just realized that I have the exact same problem, found this post and tried adding  the method:’POST’ thing.

This solved the problem in IE7 but NOT in IE8.

 

 

If somebody out there could help it would be much appreciated!

/Annika

Aug 092012
 

Why if I keep installing the Flash player does it say that I
need it?? I have down loaded the flash player about 10 times!!! If
I come across ant programmes it says I need to install? What am i
doing wrong??;
search these forums, this is a very common problem, you’ll
find the answer in other posts.

 

I have been using web audio plus to create SWF audio on web
pages for 3 years with no problems. After the latest flash player
update, these files do not play properly anymore. They skip and
squeek and pop etc. I restored my system back to vers 9.0.47.0 with
system restore and everything works again. Several other people
using my swf files are having the same problem. I tried to get them
to reinstall vers 9.0.47.0, but the install program for that
version only installs the ActiveX and does not install the plugin
for some reason. Anyone have any ideas on how to resolve this??

I am using a windows pc running Vista with IE and Firefox,
but some users are running win 98 and XP.

All suggestions greatly appreciated.

© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD