All.

Just for reference, Another technique is to set your entire html page as a
valid xhtml doc. You can then load the page into Flash and traverse to the
desired content with xpath / E4X etc. I have used this technique on projects
which require whitehat SEO. As the page has already been loaded once by the
browser, Flash should call a cached version with no traffic overhead etc.

A good explanation can be found here:
http://dreamsocket.com/support/articles/seo/seo-flash

BTW - your initial desired technique is shown in the section "2. Feeding
your data at initialization", what I am talking about is "3. Loading/Parsing
your existing data in the XHTML"



Cheers,

Aran




On Thu, Jul 23, 2009 at 6:34 AM, Vincent Polite <
[email protected]> wrote:

> I wouldn't think this would affect the rest of your code unless that's just
> a showstopper type error.  Try including an alert statement immediately
> after:
> var parent1 = document.getElementById('pageTitle').innerHTML;
> alert('got here');
>
> To see if that executes.
>
> VP
>
>
> On Wed, Jul 22, 2009 at 1:32 PM, Vincent Polite <
> [email protected]> wrote:
>
>> The document element is returning NULL.  This is an error message I am
>> seeing in the Javascript Error console that I believe ships with FF.
>> This means that document.getElementById is failing; likely because the
>> page hasn't loaded fully to instantiate the div, or there's a typo somewhere
>> between where you define your pagetitle div and when the flashembed js gets
>> executed.
>>
>> What you need to do is wrap this code in a domready event.  If you can put
>> it in the <head></head> then that would work, or if you have access to a
>> library like jQuery where there is an onDomReady kind of event you can plug
>> into, that should solve your issue.  At least on the page you linked to me.
>>
>> Vincent
>>
>>
>> On Wed, Jul 22, 2009 at 1:07 PM, Chris <[email protected]> wrote:
>>
>>>
>>>
>>> Vincent,
>>>
>>> I replaced the flashvar with a string literal:
>>> flashvars.parentXML = "String Literal";
>>>
>>> and my .swf file is currently pulling from internal variables only
>>> (not using the parentXML flashvar).
>>>
>>> So the only thing that affects whether swfobject embeds my file or not
>>> is that very first line (and it dies as soon as I add .innerHTML
>>> or .toString() or .value)
>>>
>>> I just posted the files. You can look at them here:
>>>
>>> http://homepage.mac.com/hisandheranderson/AaronHartmanMD/interiorSample.html
>>>
>>> thanks for your help,
>>> chris
>>>
>>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to