Re: Monthly tips
by jalal <the_jalal(at)fastmail.fm>
|
Date: |
Sun, 2 May 2004 21:55:10 +0200 |
To: |
hwg-techniques(at)hwg.org |
References: |
localhost |
|
todo: View
Thread,
Original
|
|
On Sun 2 May 2004 20:50, David Kendall wrote:
> Hello again, I hope you aren't all sick of my questions and
> problems by now! :)
>
> Anyways, I set up a monthly tip page in Java for a client based on a
> script I found at http://www.globalrph.com/davescripts/month.htm (I
> changed it very slightly, but it was still screwing up before the
> change). The page loads, but the monthly tip area is blank, and
> there is a little "Errors on the page" logo at the bottom of my IE
> status bar. (The line that it points to is very straightforward and
> unchanged from the script I used off the 'net too).
>
> The monthly tip page is at
> http://www.homepagesplus.com/theaccountingdean/tip.html . So
> what did I do wrong?
The script isn't in Java, its in Javascript... a very different bird.
Which doesn't help you much :-)
You have a quote within your string at line:
m[4]="It makes good sense to review and update your "business plan" at least
quarterly, or more frequently (monthly). If you don't have a plan there is no
time like the present to develop one. ";
You need to either escape the quotes like so:
m[4]="...your \"business plan\" at..."
or use single quotes around the string like so:
m[4]='...your "business plan" at...'
or even like so:
m[4]="...your 'business plan' at..."
And it helps you a browser such as Firefox (or Mozilla) which have a built in
Javascript debugger which will tell you immediately where the error is.
HTH
jalal
--
GPG fingerprint = 3D45 5509 D380 26A4 523E A9D8 A66A 5F38 CA43 BB0E
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA