Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Javascript errors in Table Editor > Import/Export

Quote Reply
Javascript errors in Table Editor > Import/Export
I'm trying to use the 'Fields to Export' and 'Fields to Import' functions (the Add and Add All buttons). But they both fail with a Javascript error in the browser status bar -- in MSIE 5 and Netscape 4.

Javascript is enabled. Is there anything else that might be switched off?
Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
I am getting the same error. Anyone have a fix for this?

Regards,
Clueless

Quote Reply
Re: [Clueless] Javascript errors in Table Editor > Import/Export In reply to
In Reply To:
I am getting the same error. Anyone have a fix for this?
Must be a bug in one of the three Javascript functions.
It's odd that import/export functions are different for the Links and Categories tables -- anyone know the reason?
The alternative control panel import method ("from previous versions of Links") is virtually unusable -- can't handle deviations from default setups.
Workaround: use raw MySQL or MySQLMan

Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
Unfortunately MySQLMan with 2.05 doesn't work with Import/Export either. I get the 'unknown user using password Yes' error.

I think i'll send a email to Gossamer Support on these issues.

Regards,
Clueless

Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
Hi,

The Links export/import was changed so it included category information, and we removed the ability to export/import only selected columns.

As for Javascript error, are you running 2.0.5?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Javascript errors in Table Editor > Import/Export In reply to
In Reply To:
Unfortunately MySQLMan with 2.05 doesn't work with Import/Export either.
Ours is OK.

In Reply To:
The Links export/import was changed so it included category information, and we removed the ability to export/import only selected columns.
But that is not helpful for people who want to import categories, which is what we were trying to do -- no links, just categories. Please restore the previous functions!

In Reply To:
As for Javascript error, are you running 2.0.5?
Yes.

Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
Quote:
But that is not helpful for people who want to import categories, which is what we were trying to do -- no links, just categories. Please restore the previous functions!

You can do that via Category->Properties->Import/Export. Only Links->Properties->Import/Export should be different.

I'll look into the Javascript error.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Javascript errors in Table Editor > Import/Export In reply to
In Reply To:
You can do that via Category->Properties->Import/Export
Hi Alex ... that is exactly what we cannot do! That is what this thread is about.

Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
Hi,

I understand, but you said to restore previous functionality. What I was saying is that the Category Import/Export functionality has not changed, only the Links Import/Export.

Can you send a message to support-lsql@gossamer-threads.com with admin access so I can see the Javascript error you are getting?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Javascript errors in Table Editor > Import/Export In reply to
In Reply To:
Can you send a message to support-lsql@gossamer-threads.com with admin access so I can see the Javascript error you are getting?

In MSIE 5, in the browser status bar, I get "Error on page".
In NN 4.6, in the browser status bar, I get "Javascript error"
That's all.

Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
Hi,

If you doubleclick on the javascript icon in MSIE, or in Netscape enter 'javascript:' in the URL bar to see what the actual error is.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Javascript errors in Table Editor > Import/Export In reply to
MSIE 5 :
Code:
Line: 29
Char: 5
Error: 'document.ImportForm' is not an object
Code: 0
URL: <MY_DOMAIN/PATH_TO>/admin.cgi?db=Category&do=editor_import_data_form


Quote Reply
Re: [YoYoYoYo] Javascript errors in Table Editor > Import/Export In reply to
Here is the error message that I am getting when trying to export my category data. I unfortunately started a new thread with this before I was informed of this thread. Blush

Quote:
Line: 28
Char: 5
Error: 'document.ExportForm' is not null or not an object
Code: 0
URL: My-Path/cgi-bin/linkssql/admin/admin.cgi?db=Category&do=editor_export_data_form

I have a beta installation that I am experimenting with on my local machine. It's not something that anyone can dial into.

Any luck with this one?

Many thanks Smile

DogTags


------------------------------------------
Quote Reply
Re: [DogTags] Javascript errors in Table Editor > Import/Export In reply to
It may be that the <form> tag is missing a name attribute. Could you have a quick look to see if somewhere in the tag it has...

<form name="ExportForm"
Quote Reply
Re: [RedRum] Javascript errors in Table Editor > Import/Export In reply to
Hi RedRum

It looks like it had 2 names:

Quote:
<form method="POST" name="admin" action="admin.cgi" name="ExportForm" >

I've never seen a form with 2 names. I'm trying to find where to edit this...

Thanks, RedRum

DogTags



------------------------------------------

Last edited by:

DogTags: Nov 4, 2001, 10:11 AM
Quote Reply
Re: [DogTags] Javascript errors in Table Editor > Import/Export In reply to
Ah....try getting rid of name="admin"

(Im not sure if that will affect anything else).

Last edited by:

RedRum: Nov 4, 2001, 10:09 AM
Quote Reply
Re: [RedRum] Javascript errors in Table Editor > Import/Export In reply to
Yeah, that's what I'm after.

As soon as I find where the heck to edit this, I'll post it, too.

Thanks, again.

DogTags



------------------------------------------
Quote Reply
Re: [DogTags] Javascript errors in Table Editor > Import/Export In reply to
Okay, it looks like it is in the following file:

/admin/GT/SQL/Admin.pm

about line 2199

Code:
print $self->_start_form ( { do => 'editor_export_data', db => $self->{cgi}->{db} }, {name => 'ExportForm'});

What that line prints out is this (I believe):

Code:
<form method="POST" name="admin" action="admin.cgi" name="ExportForm" ><input type="hidden" name="db" value="Category"><input type="hidden" name="do" value="editor_export_data">

I'm not sure where the extra name is coming from yet.

DogTags



------------------------------------------
Quote Reply
Re: [DogTags] Javascript errors in Table Editor > Import/Export In reply to
I'm not sure what else this affects.

If one of the Gossamer gurus could weigh in here, I'd feel better. I'm still getting familiar with things, and I'm afraid I'd mess up my system at this point.

Many thanks Smile

DogTags


------------------------------------------
Quote Reply
Re: [DogTags] Javascript errors in Table Editor > Import/Export In reply to
Hi,

This is indeed a bug, remove name="admin". Around line 2641 change:

return qq~<form method="$meth" $mimeenc name="admin" action="$url"$att>$out\n~;

to:

return qq~<form method="$meth" $mimeenc action="$url"$att>$out\n~;

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Javascript errors in Table Editor > Import/Export In reply to
It worked, Alex! Thanks Smile

It was line 2594 for me

Cool

DogTags



------------------------------------------
Quote Reply
Re: [DogTags] Javascript errors in Table Editor > Import/Export In reply to
Working now. Output is OK.