CSS & Web Design Forum  

Welcome to the CSS & Web Design Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
WM Media Banner

Supporters
Pos Software - POS hardware and Software to track, control and manage your inventory.
Web Templates - BoxedArt is the most reliable source for unlimited template downloads.

Directory Submission
WL Marketing - Your #1 source for building links

Go Back   CSS & Web Design Forum > Web Design > AJAX, Javascript & DOM
Reply
 
Thread Tools Search this Thread Display Modes
(#1)
Old
Geoff Cox
Guest
 
Default error message not understood? - 04-06-2009, 07:29 AM

Hello,

I am getting an error message

"a is undefined"

using

http://www.micro-active.com/osflv-test.htm

which I do not understand.

Any ideas please?

I am using the OS FLV video playing software and this works fine in
another file. Here I am feeing the player data into a dynamically
created div. The problem seems to come from str3.

Cheers

Geoff

The error message from Opera is beyond my comprehension but may mean
something to you ..

JavaScript -
http://ads1.revenue.net/j?site_id=12...r_num=55686464

Linked script not loaded
JavaScript - http://www.micro-active.com/osflv-test.htm
Inline script thread
Error:
name: TypeError
message: Statement on line 2: Cannot convert undefined or null to
Object
Backtrace:
Line 2 of eval script : In function AC_AddExtension
function AC_AddExtension(a,b){if(a.indexOf("?")!=-1){return
a.replace(/\?/,b+"?")}else{return a+b}}
Line 2 of eval script : In function AC_GetArgs
function AC_GetArgs(a,b,c,d,e){var f=new Object();f.embedAttrs=new
Object();f.params=new Object();f.objAttrs=new Object();for(var
i=0;i<a.length;i=i+2){var g=a[i].toLowerCase();switch(g){case
"classid":break;case
"pluginspage":f.embedAttrs[a[i]]=a[i+1];break;case "src":case
"movie":a[i+1]=AC_AddExtension(a[i+1],b);f.embedAttrs["src"]=a[i+1];f.params[c]=a[i+1];break;case
"onafterupdate":case "onbeforeupdate":case "onblur":case
"oncellchange":case "onclick":case "ondblclick":case "ondrag":case
"ondragend":case "ondragenter":case "ondragleave":case
"ondragover":case "ondrop":case "onfinish":case "onfocus":case
"onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case
"onmousemove":case "onmouseout":case "onkeypress":case
"onkeydown":case "onkeyup":case "onload":case "onlosecapture":case
"onpropertychange":case "onreadystatechange":case "onrowsdelete":case
"onrowenter":case "onrowexit":case "onrowsinserted":case
"onstart":case "onscroll":case "onbeforeeditfocus":case
"onactivate":case "onbeforedeactivate":case "ondeactivate":case
"type":case "codebase":case "id":f.objAttrs[a[i]]=a[i+1];break;case
"width":case "height":case "align":case "vspace":case "hspace":case
"class":case "title":case "accesskey":case "name":case
"tabindex":f.embedAttrs[a[i]]=f.objAttrs[a[i]]=a[i+1];break;default:f.embedAttrs[a[i]]=f.params[a[i]]=a[i+1]}}f.objAttrs["classid"]=d;if(e){f.embedAttrs["type"]=e}return
f}
Line 2 of eval script : In function AC_FL_RunContent
function AC_FL_RunContent(){var
a=AC_GetArgs(arguments,".swf","movie","clsid:d27cd b6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embed Attrs)}
Line 1 of inline#2 script in
http://www.micro-active.com/osflv-test.htm

AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', 272, 'height', 244, 'src', src, 'pluginspage',
'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer',
'allowFullScreen', 'true', 'movie', src,
'FlashVars','movie=assets/c2/video/video_c2_11.flv&fgcolor=0xDDDDDD&bgcolor=0x333333& volume=70');
stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have
Stacktrace'


Reply With Quote
(#2)
Old
rf
Guest
 
Default Re: error message not understood? - 04-06-2009, 09:17 AM

Geoff Cox wrote:
> Hello,
>
> I am getting an error message
>
> "a is undefined"
>
> using
>
> http://www.micro-active.com/osflv-test.htm
>
> which I do not understand.
>
> Any ideas please?


Absolutely none at all, even after spending five minutes tracing it with
firebug. You have taken web page writing to a totally new level, with all of
your writing javascript that writes javascript that is inserted into the DOM
to be possibly executed to write HTML into the DOM.. You have managed to
totally confuse firebug, and me.

Why are you still farting around with this stuff. This is *not* the way to
write web pages. To write web pages you use HTML. If you wish you may
flavour that web page with some javascript to make it a bit lively and then
season with CSS to make it look good.

You do *not* write javascript that writes javascript that writes HTML. I
have mentioned this before. You are placing layers upon layers of confusion
on top of something that is, at the beginning, relatively simple.

Aside: why are you using CDATA, which I admit you do conveniently comment
out, in an HTML document? Any why is that document transitional? What legacy
code are you transitioning from?

I saw your efforts over in the PHP arena as well.

Let's try this. Build two web pages, each containing one of the things you
want to do. Use *only* HTML. Nothing else. Forget javascript entirely. Just
get the movies working.

When you have those two pages operable and linked to each other (or may be
just the first one to the second) ask over in the PHP groups how you would
use sessions to retrieve and remember the data from those *two* pages so as
to put it into a database.

When it is all working the friendly people over at PHP will help you build a
page that has a variable number of videos. But, IMHO, this not something you
should even attemp with javascript. You *have* to use PHP (or some other
server side stuff) to use a database, so the page building there as well.
You know what is available on your server. You do not know what is available
at the client end.

--
Richard.


Reply With Quote
(#3)
Old
Geoff Cox
Guest
 
Default Re: error message not understood? - 04-06-2009, 12:14 PM

On Mon, 06 Apr 2009 09:12:10 GMT, "rf" <rf@z.invalid> wrote:

>Geoff Cox wrote:
>> Hello,
>>
>> I am getting an error message
>>
>> "a is undefined"
>>
>> using
>>
>> http://www.micro-active.com/osflv-test.htm
>>
>> which I do not understand.
>>
>> Any ideas please?

>
>Absolutely none at all, even after spending five minutes tracing it with
>firebug. You have taken web page writing to a totally new level, with all of
>your writing javascript that writes javascript that is inserted into the DOM
>to be possibly executed to write HTML into the DOM.. You have managed to
>totally confuse firebug, and me.


Richard,

Ok! Taking your point re a simpler approach to include php I have this

http://www.micro-active.com/osflv-test2.htm

which I was then trying to change the video sets using JavaScript but
haven't got very far at all.

I guess I now move on to the php group!

Cheers,

Geoff


Reply With Quote
(#4)
Old
Jon Gómez
Guest
 
Default Re: error message not understood? - 04-06-2009, 03:23 PM

Geoff Cox wrote:
> Hello,
>
> I am getting an error message
>
> "a is undefined"
>
> using
>
> http://www.micro-active.com/osflv-test.htm
>
> which I do not understand.
>
> Any ideas please?


I'm not about to drag my way through your script if rf stopped on it,
but I have a question. What's going on with your encoding? I noticed
you include an external script like so:

<script charset='ISO-8859-1' src='rac.js' type='text/javascript'></script>

When I loaded up this script, it had a lot of wonderful bizarre
characters, which I choked on. I tried overriding the encoding with a
few possibilities. I tried ensuring that it was the one you specified.
I checked the server headers, but they didn't seem to suggest anything.

Here are some screenshots of what I see:

http://www.pcs.cnu.edu/~jgomez/expor...ng_browser.png
http://www.pcs.cnu.edu/~jgomez/export/rac_encoding.png

I wonder if this could be related to your problem. Or maybe it's just
me doing something wrong.

Jon.
Reply With Quote
(#5)
Old
Jon Gómez
Guest
 
Default Re: error message not understood? - 04-06-2009, 03:34 PM

Jon Gómez wrote:
> <script charset='ISO-8859-1' src='rac.js' type='text/javascript'></script>
>
> When I loaded up this script, it had a lot of wonderful bizarre
> characters, which I choked on.


I guess it's intentional... now that I've looked at the script for a
little longer. I'm curious why you do that.

Jon.
Reply With Quote
(#6)
Old
Geoff Cox
Guest
 
Default Re: error message not understood? - 04-06-2009, 04:21 PM

On Mon, 06 Apr 2009 11:28:41 -0400, Jon Gómez <jgomez@invalid.invalid>
wrote:

>Jon Gómez wrote:
>> <script charset='ISO-8859-1' src='rac.js' type='text/javascript'></script>
>>
>> When I loaded up this script, it had a lot of wonderful bizarre
>> characters, which I choked on.

>
>I guess it's intentional... now that I've looked at the script for a
>little longer. I'm curious why you do that.


Jon,

Not me - rac.js is part of the installation for the OS FLV Player...

Cheers,

Geoff
Reply With Quote
(#7)
Old
Jon Gómez
Guest
 
Default Re: error message not understood? - 04-06-2009, 04:30 PM

Geoff Cox wrote:
> Not me - rac.js is part of the installation for the OS FLV Player...


Ah, okay. Maybe I can find something in their documentation.
Jon.
Reply With Quote
(#8)
Old
Dr J R Stockton
Guest
 
Default Re: error message not understood? - 04-06-2009, 10:57 PM

In comp.lang.javascript message <debjt4dqh2i37uir2l1m3mnr54vae3q37g@4ax.
com>, Mon, 6 Apr 2009 08:26:54, Geoff Cox <gcox@removethisword.freeuk.co
m> posted:
>
>The error message from Opera is beyond my comprehension but may mean
>something to you ..


It is always well to test in more than one browser.

Most browsers, at least, get the same results, near enough, from any
valid HTML, CSS, and JavaScript.

But when they find an error, each reports it in its own idiosyncratic
manner. In particular, ISTM that the Firefox error console is less
likely to confuse by volubility than is that of Opera.

In your page, the numbers should each refer to the nearest, rather than
to the next, radiobutton.

If you want your code to be read, you should indent it to show
structure. My js-quick.htm "Indt" button will do that, to a first
approximation, for you. Also, it helps to keep line lengths to no more
than about 70 characters.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Reply With Quote
(#9)
Old
Geoff Cox
Guest
 
Default Re: error message not understood? - 04-07-2009, 09:52 AM

On Mon, 6 Apr 2009 19:57:34 +0100, Dr J R Stockton
<reply0915@merlyn.demon.co.uk> wrote:

>In comp.lang.javascript message <debjt4dqh2i37uir2l1m3mnr54vae3q37g@4ax.
>com>, Mon, 6 Apr 2009 08:26:54, Geoff Cox <gcox@removethisword.freeuk.co
>m> posted:
>>
>>The error message from Opera is beyond my comprehension but may mean
>>something to you ..

>
>It is always well to test in more than one browser.
>
>Most browsers, at least, get the same results, near enough, from any
>valid HTML, CSS, and JavaScript.
>
>But when they find an error, each reports it in its own idiosyncratic
>manner. In particular, ISTM that the Firefox error console is less
>likely to confuse by volubility than is that of Opera.
>
>In your page, the numbers should each refer to the nearest, rather than
>to the next, radiobutton.
>
>If you want your code to be read, you should indent it to show
>structure. My js-quick.htm "Indt" button will do that, to a first
>approximation, for you. Also, it helps to keep line lengths to no more
>than about 70 characters.


Thanks John - wil give that a try.

Cheers

Geoff
Reply With Quote
(#10)
Old
Geoff Cox
Guest
 
Default Re: error message not understood? - 04-07-2009, 03:21 PM

On Mon, 06 Apr 2009 12:23:44 -0400, Jon Gómez <jgomez@invalid.invalid>
wrote:

>Geoff Cox wrote:
>> Not me - rac.js is part of the installation for the OS FLV Player...

>
>Ah, okay. Maybe I can find something in their documentation.
>Jon.


Do let me know if you can!

Cheers

Geoff
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Hosting at Triple.com
vBulletin Skin developed by: vBStyles.com