Click to See Complete Forum and Search --> : external js file as pseudo database


ahinalu
12-08-2002, 03:41 PM
Aloha,
I have a problem with netscape (well more than one but...) If you look at example one: http://www.holoholocharters.com/holonewsite/newsite/tours/index.html When you click on any one of the three links(niihau, napali etc.) If you're using ie5.5+, or opera 6.05 you will have a pop-up window open and see prices and text explaining the tour. In netscape 6 It will only show you the prices. Both teh prices and the main text in the pop-up are extracted from two seperate js files. It seems that netscape will only read the first one and not the secound. Any work around for this? the js file is http://www.holoholocharters.com/holonewsite/newsite/java_text/tours/niihau/gen_info.js and http://www.holoholocharters.com/holonewsite/newsite/java_text/tours/niihau/prices.js

I would apreciate any help

mahalo ahinalu

ahinalu
12-08-2002, 04:26 PM
I'm not sure what you mean by 'special character' Is it something you're seeing when you view it by folowing the links, or when you look at the js file itself?
Chris

ahinalu
12-08-2002, 08:00 PM
Ok, I didn't find any characters but there was a 'space' at the end (which usually kills it even in IE)

Maybe I should ask this question...

I have a bunch of different js files for each 'module' of information. What I want to do is:

1) Grab that information and place them into different table cells..some cells needing to call more than one js file.

2) Have pop-up windows and in those windows do the same thing as #1, with a 'close' button, and maybe a 'print' button.

3) As in another post do same as #1 within an <IFRAME> (so I can have overflow text scroll inside a 'window' WITHOUT frames. Of course I am using an external css to format the text.

The kicker is it needs to work in Netscape (what I have already works in IE and Opera) I know that only 11% of my viewers are using netscape, but the boss wants their money...he he..:D

If anyone has a better solution than what I am using PLEEEEASE HELP!!

Aloha Chris

ps- sorry for the 'long windedness'

ahinalu
12-08-2002, 08:39 PM
Looks like Netscape is being ist's usual anal self...There were two things that went wrong...

1)
b) I need to call the css for the js file in the js file itself (ie; <DIV ID=blah> and <P> etc)

a) Had to get rid of any formating before or after the script (I had them encased in <P>)

3) THIS was the biggest duh of all- when calling the script I had <script src='duh.js"> What I should have done is: <script type="text/javascript" src="duh.js">

So there you have it, my <IFRAME> experiment "duh.html" words too.

The only question remains..how many people am I going to isolate using <IFRAME>? Is anyone out there using it? Heard of anyone using it? If so, had any poor responses from the "masses"?


Thanks for putting up with my questions..... blah

Chris:cool:

Beach Bum
12-08-2002, 10:43 PM
you should be fine with iframe. i think supported by any browser that supports frames. fine in IE6 and NS7. works great for the right situation.


but if you are worried about "poor responses from the "masses"? ". . .

you have extensive us of pop-up windows. did not see many of them as i have pop-up stopper to kill all those pop-up type ads. that may be your biggest problem