Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

JavaScript Question

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Site mock - Critique appreciated :)  
Author Message
newsgroups

External


Since: Oct 30, 2003
Posts: 6



(Msg. 1) Posted: Mon Mar 01, 2004 7:33 pm
Post subject: JavaScript Question
Archived from groups: alt>www>webmaster (more info?)

I was told that all I had to do was to include the following line of
code in a web page to cause timely information to magically appear. I
have added that line in the body of a web page, but nothing shows up,
even after I refresh the page. Obviously there is more to the story.

  >
language="JavaScript"
src="http://jurist.law.pitt.edu/paperchase.js"><script>

What am I missing?<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
user398

External


Since: Feb 22, 2004
Posts: 97



(Msg. 2) Posted: Mon Mar 01, 2004 8:27 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:

 > I was told that all I had to do was to include the following line of
 > code in a web page to cause timely information to magically appear. I
 > have added that line in the body of a web page, but nothing shows up,
 > even after I refresh the page. Obviously there is more to the story.
 >
  > >
 > language="JavaScript"
 > src="http://jurist.law.pitt.edu/paperchase.js"><script>
 >
 > What am I missing?




--
/Arne

---------------------------------------------------------------------
Quote of the month:
Top posting is absolutely insane. In a multi-threaded reply format
with many responses, top posts is as bad as post with leaving out
everything that is responded to. Question in both cases is, what is
the poster replying to?
---------------------------------------------------------------------<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
user398

External


Since: Feb 22, 2004
Posts: 97



(Msg. 3) Posted: Mon Mar 01, 2004 8:33 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:

 > I was told that all I had to do was to include the following line of
 > code in a web page to cause timely information to magically appear. I
 > have added that line in the body of a web page, but nothing shows up,
 > even after I refresh the page. Obviously there is more to the story.
 >
  > >
 > language="JavaScript"
 > src="http://jurist.law.pitt.edu/paperchase.js"><script>
 >
 > What am I missing?

If the code above is exactly what you tried, there is a part of it
missing. Try this:

<script language="JavaScript"
src="http://jurist.law.pitt.edu/paperchase.js"><script>

But to be honest, you don't need the Javascript at all. The content in
the *js file is only a link to a iframe and you can put only that on
the page where you want it to display. The iframe code is:

<IFRAME src="http://jurist.law.pitt.edu/paperchaseheadlines-ex.php"
frameBORDER=0 HEIGHT=555 WIDTH=400 scrolling=no></IFRAME>

--
/Arne<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
newsgroups

External


Since: Oct 30, 2003
Posts: 6



(Msg. 4) Posted: Mon Mar 01, 2004 8:42 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Arne wrote:
 > Mike Phillips wrote:
 >
 > If the code above is exactly what you tried, there is a part of it
 > missing. Try this:
 >
 > <script language="JavaScript"
 > src="http://jurist.law.pitt.edu/paperchase.js"><script>
 >
 > But to be honest, you don't need the Javascript at all. The content in
 > the *js file is only a link to a iframe and you can put only that on
 > the page where you want it to display. The iframe code is:
 >
 > <IFRAME src="http://jurist.law.pitt.edu/paperchaseheadlines-ex.php"
 > frameBORDER=0 HEIGHT=555 WIDTH=400 scrolling=no></IFRAME>
 >

Clearly, something disappeared from my quote. You're correct, the code is

  >
<script language="JavaScript"
src="http://jurist.law.pitt.edu/paperchase.js"><script>

Do you know why it doesn't work?

I'll try your suggestion. Thanks.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
sharif2

External


Since: Jan 25, 2004
Posts: 110



(Msg. 5) Posted: Mon Mar 01, 2004 8:54 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:
 > Arne wrote:
  >> Mike Phillips wrote:
  >>
  >> If the code above is exactly what you tried, there is a part of it
  >> missing. Try this:
  >>
  >> <script language="JavaScript"
  >> src="http://jurist.law.pitt.edu/paperchase.js"><script>
  >>
  >> But to be honest, you don't need the Javascript at all. The content
  >> in the *js file is only a link to a iframe and you can put only that
  >> on the page where you want it to display. The iframe code is:
  >>
  >> <IFRAME src="http://jurist.law.pitt.edu/paperchaseheadlines-ex.php"
  >> frameBORDER=0 HEIGHT=555 WIDTH=400 scrolling=no></IFRAME>
  >>
 >
 > Clearly, something disappeared from my quote. You're correct, the
 > code is
 >
  > >
 > <script language="JavaScript"
 > src="http://jurist.law.pitt.edu/paperchase.js"><script>

The last <script> should be </script>

--
Sharif T. Karim
....you expected some spam here?...<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
user398

External


Since: Feb 22, 2004
Posts: 97



(Msg. 6) Posted: Mon Mar 01, 2004 9:40 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:
 > Arne wrote:
 >
  >>Mike Phillips wrote:
  >>
  >>If the code above is exactly what you tried, there is a part of it
  >>missing. Try this:
  >>
  >><script language="JavaScript"
  >>src="http://jurist.law.pitt.edu/paperchase.js"><script>
  >>
  >>But to be honest, you don't need the Javascript at all. The content in
  >>the *js file is only a link to a iframe and you can put only that on
  >>the page where you want it to display. The iframe code is:
  >>
  >><IFRAME src="http://jurist.law.pitt.edu/paperchaseheadlines-ex.php"
  >>frameBORDER=0 HEIGHT=555 WIDTH=400 scrolling=no></IFRAME>
  >>
 >
 > Clearly, something disappeared from my quote. You're correct, the code is
 >
  > >
 > <script language="JavaScript"
 > src="http://jurist.law.pitt.edu/paperchase.js"><script>
 >
 > Do you know why it doesn't work?
 >
 > I'll try your suggestion. Thanks.

As Sharif says, the closing tag should be </script> if you use the
script. I missed that, there is no "/" in it. But it works fine for me
even then, even if it don't validate of cause Smile

But as I say'd, you can use only the IFRAME code alone as it work just
the same. The advantage with only the IFRAME is that you can change
the height because there is now a lot of white space and a counter
under the content. You can see the difference here if you like:
<a style='text-decoration: underline;' href="http://w1.978.telia.com/~u97802964/iframe.html" target="_blank">http://w1.978.telia.com/~u97802964/iframe.html</a>

On top is the IFRAME alone and in the bottom same thing executed via
the Javascript. The height in the IFRAME code is only 340 pixels.

--
/Arne

---------------------------------------------------------------------
Quote of the month:
Top posting is absolutely insane. In a multi-threaded reply format
with many responses, top posts is as bad as post with leaving out
everything that is responded to. Question in both cases is, what is
the poster replying to?
---------------------------------------------------------------------<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
newsgroups

External


Since: Oct 30, 2003
Posts: 6



(Msg. 7) Posted: Mon Mar 01, 2004 9:43 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Arne wrote:
 >
 > As Sharif says, the closing tag should be </script> if you use the
 > script. I missed that, there is no "/" in it. But it works fine for me
 > even then, even if it don't validate of cause Smile

It was. I don't know what the problem is with me correctly pasting the
URL. Sorry for the wasted brain cells...

 > But as I say'd, you can use only the IFRAME code alone as it work just
 > the same. The advantage with only the IFRAME is that you can change
 > the height because there is now a lot of white space and a counter
 > under the content. You can see the difference here if you like:
<font color=purple> > <a style='text-decoration: underline;' href="http://w1.978.telia.com/~u97802964/iframe.html</font" target="_blank">http://w1.978.telia.com/~u97802964/iframe.html</font</a>>

The IFRAME works great.

 > On top is the IFRAME alone and in the bottom same thing executed via
 > the Javascript. The height in the IFRAME code is only 340 pixels.

This is interesting because there is only one chart displayed. The
JavaScript is apparently not executing. My Google Toolbar must be
blocking it, or either I have something else disabled for JavaScript in
IE6. The bottom line is, the IFRAME is the way to go.

Thanks for taking the time.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
user398

External


Since: Feb 22, 2004
Posts: 97



(Msg. 8) Posted: Mon Mar 01, 2004 10:10 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:

 > Arne wrote:
 >
  >>On top is the IFRAME alone and in the bottom same thing executed via
  >>the Javascript. The height in the IFRAME code is only 340 pixels.
 >
 >
 > This is interesting because there is only one chart displayed. The
 > JavaScript is apparently not executing. My Google Toolbar must be
 > blocking it, or either I have something else disabled for JavaScript in
 > IE6. The bottom line is, the IFRAME is the way to go.
 >
 > Thanks for taking the time.

That's the second advantage using the IFRAME, even visitors with
Javascript disabled can see it Smile

Just set the height to what you want (need) to have all chart content
visible.

--
/Arne

---------------------------------------------------------------------
Quote of the month:
Top posting is absolutely insane. In a multi-threaded reply format
with many responses, top posts is as bad as post with leaving out
everything that is responded to. Question in both cases is, what is
the poster replying to?
---------------------------------------------------------------------<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
user104

External


Since: Jun 28, 2003
Posts: 1662



(Msg. 9) Posted: Mon Mar 01, 2004 10:55 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Arne" <arne.luras.RemoveThis@telia.com> wrote in message
news:7uK0c.84689$dP1.234134@newsc.telia.net...

 > But to be honest, you don't need the Javascript at all. The content in
 > the *js file is only a link to a iframe and you can put only that on
 > the page where you want it to display. The iframe code is:
 >
 > <IFRAME src="http://jurist.law.pitt.edu/paperchaseheadlines-ex.php"
 > frameBORDER=0 HEIGHT=555 WIDTH=400 scrolling=no></IFRAME>

Interesting.

Can Google follow an iframe?

Is it well supported across browsers?
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://www.CharlesSweeney.com" target="_blank">www.CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
user398

External


Since: Feb 22, 2004
Posts: 97



(Msg. 10) Posted: Mon Mar 01, 2004 11:22 pm
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Charles Sweeney wrote:

 > "Arne" <arne.luras.TakeThisOut@telia.com> wrote in message
 > news:7uK0c.84689$dP1.234134@newsc.telia.net...
 >
 >
  >>But to be honest, you don't need the Javascript at all. The content in
  >>the *js file is only a link to a iframe and you can put only that on
  >>the page where you want it to display. The iframe code is:
  >>
  >><IFRAME src="http://jurist.law.pitt.edu/paperchaseheadlines-ex.php"
  >>frameBORDER=0 HEIGHT=555 WIDTH=400 scrolling=no></IFRAME>
 >
 >
 > Interesting.
 >
 > Can Google follow an iframe?
 >
 > Is it well supported across browsers?

Well, a frame is a frame even if it's a iframe Smile
In this case the OP want to display links with headline news to an
other site who has it as a service. I don't think it's a big
disadvantage for the OP when it's not importent content from of his
own site?

IFRAME is not supported by older browsers (i.e. NS 4.xx) but it is
valid. Smile

--
/Arne<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
anonymous

External


Since: Jan 28, 2004
Posts: 58



(Msg. 11) Posted: Tue Mar 02, 2004 4:07 am
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:

  > I was told that all I had to do was to include the following line of
  > code in a web page to cause timely information to magically appear. I
  > have added that line in the body of a web page, but nothing shows up,
  > even after I refresh the page. Obviously there is more to the story.

   >>
  > language="JavaScript"
  > src="http://jurist.law.pitt.edu/paperchase.js"><script>

  > What am I missing?

In case you missed the buried answer.........

The end <script> should be </script>
Without the closing tag, the decoding just continues dropping down the
source code line by line until it finds the closing tag. If none is present,
you either get a screwed up page or nothing.
And you should also <script type="javascript/text"> instead of "language".<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
anonymous

External


Since: Jan 28, 2004
Posts: 58



(Msg. 12) Posted: Tue Mar 02, 2004 4:11 am
Post subject: Re: JavaScript Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Phillips wrote:

  > I was told that all I had to do was to include the following line of
  > code in a web page to cause timely information to magically appear. I
  > have added that line in the body of a web page, but nothing shows up,
  > even after I refresh the page. Obviously there is more to the story.

   >>
  > language="JavaScript"
  > src="http://jurist.law.pitt.edu/paperchase.js"><script>

  > What am I missing?

BTW, I just tried it and it worked just fine.

<script style="javascript/text"
src="http://jurist.law.pitt.edu/paperchase.js">
</script>


Put those two lines in the BODY of your code where you want it to display.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: JavaScript Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
javascript question - i have a quiz that uses frames and i don't know how to score my quiz. my quiz answers are on one frame and the questions are on another. my quiz has multiple choice and fill in the blank questions as well as check boxes and radio buttons can anyone help....

javascript question - i have a quiz that uses frames and i don't know how to score my quiz. my quiz answers are on one frame and the questions are on another. my quiz has multiple choice and fill in the blank questions as well as check boxes and radio buttons can anyone help....

Javascript Question - You know how some links have javascript embedded in them? Like <a href="javascript:history.go(-1)"></a>... Would this still work if javascript is disabled? -- Sharif Tanvir Karim http://www.onlyonxbox.net

Javascript help! - I've got the following script. <script language="javascript"> function pop_window(url) { var popit = window.open(url,'console','menubar,toolbar,location,directories,status,scrol lbars,resizable,width=584,height=636'); } I call it t...

selection javascript - Bonjour! - j'ai 2 zones de textes, l'une a cote de l'autre - entre les 2, il me faut 2 fleches pour faire passer des elements d'une zone a une autre.. Comment faire ca svp? merci d'avance a tous ceux qui voudrons bien m'aider! ^^ -- Lo La..
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]