/    Sign up×
Community /Pin to ProfileBookmark

Javascript error…

I’m getting this javascript error:

[code]
Error: Expected ‘:’ but found ‘left’. Declaration dropped.
[/code]

and this message

[code]
Error: Unknown property ‘mso-bidi-font-size’. Declaration dropped.
[/code]

I’m using FireFox. Anyone know what this means?

Here’s the only JavaScript in the file:

[code]
<script type=”text/javascript”>
function new_window_three(){
window.open(‘/three_free.htm’,’three_free_window’,’width=600,height=460,menubar=no,resizable=yes,toolbar=no,scrollbars=yes,left=20,top=80′);
}
function new_window_buy(){
window.open(‘/how_to_buy.htm’,’how_to_buy_window’,’width=520,height=400,menubar=no,resizable=yes,scrollbars=yes,toobar=no,left=20,top=80′);
}
function new_window_ship(){
window.open(‘/shipping_info.htm’,’shipping_window’,’width=520,height=400,menubar=no,resizable=yes,toobar=no,scrollbars=yes,left=20,top=80′);
}
function new_window_policy(){
window.open(‘/privacy_policy.htm’,’policy_window’,’width=520,height=400,menubar=no,resizable=yes,toobar=no,scrollbars=yes,left=20,top=80′);
}
function new_window_help(){
window.open(‘/help_shopping.htm’,’policy_window’,’width=520,height=400,menubar=no,resizable=yes,toobar=no,scrollbars=yes,left=20,top=80′);
}
</script>
[/code]

Thanks in advance…

Mike

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 07.2006 — Show the full line of code in error plus a couple of lines before.
Copy linkTweet thisAlerts:
@bathurst_guyMar 07.2006 — can you show us the line or more if you could
Copy linkTweet thisAlerts:
@Mike_BurdickauthorMar 07.2006 — Wow...fast responses!

I was editing my post so it should now have the information you need. :o
Copy linkTweet thisAlerts:
@bathurst_guyMar 07.2006 — Those errors dont relate to this code. there must be more javascript in the page, that is if these are javascript errors.
Copy linkTweet thisAlerts:
@UltimaterMar 07.2006 — Doubt this will be of help but you used the window name "policy_window" twice, once in the "new_window_policy" function and second in the "new_window_help" function.

Also you mis-spelled "toolbar" in most-all your functions (excluding the first).
Copy linkTweet thisAlerts:
@phpnoviceMar 07.2006 — The error message is not caused by your JavaScript. The following looks like something generated by using MS WORD to create an HTML page:

'mso-bidi-font-size'
Copy linkTweet thisAlerts:
@Mike_BurdickauthorMar 08.2006 — Thanks for the help everyone!

Sorry I didn't thank all of you sooner but had to attend to some other matters.

The problem turned out to be some HTML code that was messed up by MS Word as phpnovice suggested. I must have accidentally edited with that word processor. I wonder why FireFox’s javascript console found those as errors…hmmmm.

Ultimater,

Thanks for catching the misspelled "toolbar"! Apparently the "toolbar" switch must default to "no" as it didn’t show up.

Mike
Copy linkTweet thisAlerts:
@phpnoviceMar 08.2006 — ... catching the misspelled "toolbar"! Apparently the "toolbar" switch must default to "no" as it didn’t show up.[/QUOTE]
They all default to "no" when at least one feature is specified. I've often tried to convince people they could save on their coding by omitting all those [URL=http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp]window.open()[/URL] method features for which they keep trying to specify "no" or "0".
[B]Remarks[/B]

By default, the open method creates a window that has a default width and height and the standard menu, toolbar, and other features of Internet Explorer. You can alter this set of features by using the sFeatures parameter. This parameter is a string consisting of one or more feature settings.

[U]When the sFeatures parameter is specified, the features that are not defined in the parameter are disabled[/U]. Therefore, when using the sFeatures parameter, it is necessary to enable all the features that are to be included in the new window. [U]If the sFeatures parameter is not specified, the window features maintain their default values[/U]. In addition to enabling a feature by setting it to a specific value, simply listing the feature name also enables that feature for the new window.[/quote]
×

Success!

Help @Mike_Burdick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...