Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ JujuLand Are you using KM 1.7 code in your testing? I have not gotten any injectJS() to work with KM 1.7 code. You must first test to see if you can get any injectJS() to work. The following all seem to work for me in KM 1.6.2.4 beta. They don't work when I move them to 1.7 code. [code] $_Snippet_Value = injectJS( "Date()"); alert( $_Snippet_Value, "datestring", INFO); $_Snippet_Date = injectJS( "var d = new Date(); function returnVar(d){return d;} returnVar(d);"); alert( $_Snippet_Date, "Date()", INFO); $_Snippet_Year = injectJS( "var d = new Date(); dm = d.getFullYear(); function returnVar(dm){return dm;} returnVar(dm);"); alert( $_Snippet_Year, "d.getFullYear()", INFO); $_Snippet_Month = injectJS( "var d = new Date(); dm = d.getMonth(); function returnVar(dm){return dm;} returnVar(dm);"); alert( $_Snippet_Month + 1, "d.getMonth() +1", INFO); $_Snippet_Day = injectJS( "var d = new Date(); dm = d.getDate(); function returnVar(dm){return dm;} returnVar(dm);"); alert( $_Snippet_Day, "d.getDate()", INFO); $_Snippet_WeekDay = injectJS( "var d = new Date(); dm = d.getDay(); function returnVar(dm){return dm;} returnVar(dm);"); alert( $_Snippet_Day, "d.getDay()", INFO); $_Snippet_DateString = injectJS( "var d = new Date(); dm = d.toDateString(); function returnVar(dm){return dm;} returnVar(dm);"); alert( $_Snippet_DateString, "d.toDateString()", INFO); [/code] If you can't get a date item with one of these then injectJS() is not functioning for your install.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development