Coldfusion / Javascript Issue
This probably is not the most appropriate place to post this,
but I am sure that people that frequent these forums have run into
this:
i am making an edit form. the form will allow users to update
a record in teh database.
--here are parts of the code i ahve --
I have the following javascript:
<cfoutput query="qryGetEvent">
<script language="javascript">
function setTeam()
ddlTeam = document.GetElementByID("cboTeam")
ddlTeam.value = "#qryGetEvent.team#"
</script>
</cfoutput>
<body onload="setTeam()">
<form id="form1" name="form1" method="post"
action="ac_editevent.cfm">
<select id="cboTeam" name="cboTeam">
<cfloop query="qryGetTeams">
<option value="#id#">#team#</option>
</cfloop>
</select>
<!---evaluates to this in the view source--->
<select id="cboTeam" name="cboTeam">
<option value="6">Varsity</option>
<option value="7">Modified</option>
<option value="8">Masters</option>
<option value="9">All Teams</option>
<option value="10">Novice</option>
<option value="11">Varsity/Novice</option>
<option value="12">Select Teams</option>
</select>
<!--- --->
</form>
</body>
should this work?? i have used both getElementsByName,
getElementByName, getElementsByID, getElementByID.
Basically I am trying to default the cboTeam to a value when
the page loads.
hope this post makes sense..
thanks for any assistance
sb
1) wrong javascript. can't control a select element with that
code
2) why use javascript?:
<select id="cboTeam" name="cboTeam">
<cfoutput query="qryGetTeams">
<option value="#qryGetTeams.id#" <cfif qryGetTeams.id
eq
qryGetEvent.team>selected</cfif>>#qryGetTeams.team#</option>
</cfoutput>
</select>
note: i changed your cfloop to cfoutput since i did not see a
cfoutput
your cfloop was in...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Similar Messages
-
CRM 2013 - Inconsistent javascript issue crash the web client and user needs to reopen
Hello,
We are using CRM 2013 on premise version and almost 600 users are using it. We have some inconsistent JavaScript issue (following is the log for same) which happens to users in a day or two. When this issue occurs user can not work in system and they have
to open new instance of CRM.
Does anybody knows about this error?
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Unable to get property 'location' of undefined or null reference</Message>
<Line>1</Line>
<URL>/_static/_common/scripts/main.js?ver=1676323357</URL>
<PageURL>/main.aspx#313155368</PageURL>
<Function>anonymous($p0,$p1,$p2){this.$3_3.get_currentIFrame()&&Mscrm.PerformanceTracing.write("Unload",this.$3_3.get_currentIFrame().src);this.$H_3=$p0.toString();this.$26_3();this.$1A_3();this.$1J_3();if($p0.get_isLocalServer())$p0.get_query()["pagemode"]="iframe</Function>
<CallStack>
<Function>anonymous($p0,$p1,$p2){this.$3_3.get_currentIFrame()&&Mscrm.PerformanceTracing.write("Unload",this.$3_3.get_currentIFrame().src);this.$H_3=$p0.toString();this.$26_3();this.$1A_3();this.$1J_3();if($p0.get_isLocalServer())$p0.get_query()["pagemode"]="iframe";addPassiveAuthParameters($p0);var$v_0=$p0.toString();if(IsNull($p2))$p2=false;var$v_1=this.$18_3($p0,$p2);if($v_1){if(this.$2z_3()){window.location.reload();return}this.$2d_3();this.$1s_3();Mscrm.PerformanceTracing.write("Navigate",$v_0);!Mscrm.Utilities.isIE()&&this.raiseEvent(Mscrm.ScriptEvents.UpdateTopLocation,null);this.$3_3.get_currentIFrame().contentWindow.location.replace($v_0)}else{this.$10_3();var$v_2=this.get_contentWindow().Sys.Application.findComponent("crmPageManager");if($v_2){!Mscrm.Utilities.isIE()&&$v_2.raiseEvent(Mscrm.ScriptEvents.UpdateTopLocation,null);var$v_3={};$v_3["sourceUri"]=Mscrm.Utilities.getContentUrl(null);$v_2.raiseEvent(Mscrm.ScriptEvents.IFrameReactivated,$v_3)}}window.self.InnerIFrameSrcChangeTimestamp=(newDate).getTime();this.title=$p1;if(window.LOCID_UI_DIR==="RTL"&&$p0.toString().indexOf("PersonalWall")>=0&&window.UseTabletExperience)this.$3_3.get_currentIFrame().style.position="RELATIVE"}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1366x768</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2015-04-20T15:41:12</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{E8BBA7AE-A552-DE11-B475-001E0B4882E2}</OrgID>
<UserID>{614837CD-448B-DE11-A5E1-005056970D6C}</UserID>
<CRMVersion>6.1.2.112</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>Are you on-premise, or on-line? : It's on-premise
Can you reproduce it on-demand, or is it sporadic?: It's sporadic
There is a mention of loading an iFrame in the error, do you have iFrames on the form that generates this error?
It's not on specific forms, so can't identify that. Yes we have iframes on some forms.
Does it happen on any/all entity forms, or specific ones? Do the entity forms have any custom JavaScript on them?
It's not on specific forms. And yes we have javascript on almost all forms.
Do you have any network problems or slowness in your network? Does the problem happen when the network is busy?
We need to check this on next occurrence.
Do the users that see this error have any unusual add-ins or toolbars in their browser? This is not for specific user. Its happening for all randomly.
Have you tried other browsers like Chrome or FireFox and do users see the problem there as well?
We need to check only for IE. -
OBIEE 11g: Dashboard Javascript Issue
Hi Gurus,
We have upgraded obiee from 10g to 11g and finding issues with javascript in a dashboard.
Functionality: There are some custom labels showing prompt values in it with large font. When user change prompt value and Apply, it should change the value of those text as well.
In 10g its running fine, but in 11g its not happening after we change the value of prompts. I found the following Javascript is responsible for this functionality. Even I saw one thread to suggest the exactly same code, but in 10g.
<script type="text/javascript">
(function(){
var tblTag = document.getElementsByTagName('table');
var tdElem= document.getElementsByTagName('td');
for(m=0;m<tdElem.length;m++){
if(tdElem[m].className=='GFPSubmit'){tdElem[m].childNodes[0].tBodies[0].rows[0].cells[0].childNodes[0].childNodes[0].innerHTML='Run Report';
}//close if statement
}//close for loop
}// close function clickVal()
</script>
Thread:
Change Go Button Text on Prompt Only
I need to understand what its actually doing? and Does it really work in 11g? Whats the alternative code?
Thanks in advance.In 10g these are the html objects, after upgrade you need to know the html objects for that report based on that you need to modify javascript code.
From given code, activity is doing on these objects; You need to find out the equivalent object name for 'GFPSubmit' in 11g.
GFPSubmit
table
td
If make sense mark -
I have an applet method, which is invoked from a JavaScript function, that is triggered by the window.onload event. The problem seems to center in the loading of the applet and its methods.
If I step through the 3 applet acceptance prompts (I chose to use a down-level Java), the applet method is never invoked, nor is an exception raised. How this happens is beyond my understanding.
As additional information, the Init(), start(), and "desired" Java methods all use the synchronized keyword. This is an attempt to minimize the exposure to a multi-thread environment.
If I issue a message from JavaScript (via window.alert()) PRIOR to invoking the method, I can get the desired results in special circumstances:
1) When the alert is presented, Firefox also prompts, SIMULTANEOUSLY, to block/continue the applet (the first of the 3 applet acceptance prompts). I can accept that these are separate threads.
2a) If I walk through the 3 applet acceptance prompts FIRST, and then hit the OK button on the alert message SECOND, I get the desired results, my applet method executes, and all is well (other than the fact that I would prefer not to have the alert in place at all).
2b) If I hit the OK button on the alert message FIRST, and then walk through the 3 applet acceptance prompts SECOND, I get the same results as when the page loads WITHOUT the alert, which is the applet method is never invoked, nor is an exception raised. Weird, huh?
The above problem only occurs when the browser and the applet's URL are loaded for the first time.
Subsequent invocations (after the page & applet has been loaded initially) do not have the failing symptoms.
It is my understanding that IE and Firefox (and Chrome and Opera, for that matter) each use the same implementation of JavaScript provided by Microsoft. Please correct me if this information is inaccurate.
The failing page and it's applet are proprietary; I cannot provide the Internet URL, nor the Java or JavaScript source, to aid in your analysis.I can speak to the source code, but have no access to it.
The current process/thread that invokes an applet method must check to see that the applet is not currently being loaded by another process/thread. If it is being loaded, the current process/thread should block until the load is complete, THEN attempt to invoke the applet method.
Please forward my concern to a knowledgable developer. The nature of the problem, once identified, can be addressed in a very straightforward manner. -
Firefox 25.0.1 and Facebook have JavaScript issues
I am using Firefox 25.0.1 with Mac IOS 10.9 on my Macbook Air. When trying to get to Facebook, I am told that I have to enable JavaScript in my browser or go to the mobile site. I am given no instructions on enabling JavaScript, nor can I find JavaScript in my settings or add-ons. Safari does not have this issue, but I'd prefer to use Firefox. Unfortunately, a web search of this issue does not bring me any results. Is it just me?
Firefox has a general on/off setting for JavaScript. If it was off, lots of sites would be giving you the same message. Since it's only on Facebook, I think something else might be the culprit here.
Your post didn't include any information on your add-ons, so I'll give some general advice.
'''Removing obsolete/conflicting/corrupted stored data'''
When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
(1) Bypass Firefox's Cache
Use Command+Shift+r to reload the page fresh from the server.
Alternately, you also can clear Firefox's cache completely using:
Firefox menu > Preferences > Advanced
On the Network mini-tab > Cached Web Content : "Clear Now"
If you have a large hard drive, this might take a few minutes.
(2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
* right-click and choose View Page Info > Security > "View Cookies"
* Tools menu > Page Info > Security > "View Cookies"
* click the padlock or globe icon in the address bar > More Information > "View Cookies"
In the dialog that opens, you can remove the site's cookies individually.
Then try reloading the page. Does that help?
'''Testing for an extension conflict'''
Firefox's Safe Mode is a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
You can restart Firefox in Safe Mode using
Help > Restart with Add-ons Disabled ''(Flash will still work)''
In the dialog, click "Start in Safe Mode" (''not'' Reset)
Does Facebook work any better? -
JAVASCRIPT ISSUE (i realize this is a java forum not J.S.) URGENT!
Hello,
First off I realize this is a java forum and not Javascript so if you are do not know Javascript ignore this thread. I posted it here because Ive used this before and help is often prompt. However, If anyone out there knows javascript would you be willing to help me real quick on a function issue that i cannot seem to solve? It would be greatly appreciated! I am trying to add a pop up box that displays an error message when they enter the wrong format. For ex. the proper format is 3 letters followed by 3 numbers (INF334). If they enter something such as (INFD334) I want a J.S. pop up box to display and have them try again. I cant seem to figure out where I need to include this within my function I created though. Can someone please help! Here is my function:
function addCourses(arguments) {
//Declare Variables
var class = "-", grade = "-";
fieldValue = document.InformationForm.CoursesTaken.value;
if(arguments == null || arguments == '') {
//Prompt user for input, validate input
while(!class.match(/[A-Z]{3}[0-9]{3}/) && class != 0 && class != '' && class != null) {
class = prompt("Enter a Course ID. Ex. INF110", "");
else {class = arguments;}
//Checks for valid Grade Letters including Withdrawals
while(!grade.match(/[A-DFW]{1}/) && grade != 0 && grade != '' && grade != null && class != '' && class != null && class != 0) {
grade = prompt(" Enter The Grade Letter Earned. Ex. A B C D F W", "");
if(class != "" && class != null && grade != '' && grade != null && grade != 0 && class != 0) {
document.InformationForm.CoursesTaken.value = fieldValue + "" + class + "\t" + grade + "\n";
newGPA(grade);
classCount();
}//END addCourses FunctionAlso, if you don't want to be labeled a loser in this and other forums, please read this:
http://www.catb.org/~esr/faqs/smart-questions.html
especially these sections:
http://www.catb.org/~esr/faqs/smart-questions.html#forum
h2. Choose your forum carefully
Be sensitive in choosing where you ask your question. You are likely to be ignored, or written off as a loser, if you:
post your question to a forum where it's off topic...
http://www.catb.org/~esr/faqs/smart-questions.html#urgent
h2. Don't flag your question as ?Urgent?, even if it is for you
That's your problem, not ours. Claiming urgency is very likely to be counter-productive: most hackers will simply delete such messages as rude and selfish attempts to elicit immediate and special attention. -
ActionScript/javascript issues in Opera?
I have developed an mp3 player app in Flash/ActionsScript 3.0 and have it posted on a web site
for public access. It runs fine in Firefox and Internet Explorer, both on Mac and Windows
(not IE on Mac, of course). The version reported as I have it sniffed by javascript is v10.
Are there known issues with external interface and Flash in Opera?
Or issues with the Flash pluggin in Opera?
I have some other flash samples that are run with ActionScript but do not depend on
external interface and communication between AS and JS. They run fine, albeit a bit
slower in Opera than others.
Thanks; I would get my head shaved to discourage hair tearing, but I am likely to
develope scaring in my scalp if I did.
JKI have been working on this and have found out that my development version does now work
on Windows Vista w/Opera 10x. It will now work a bit better on Mac OSX with Opera 10x, but
instead of moving mouse continuously to get the animations run and events to register as
animation changes in response to mouse events, I have to resize the browser window constantly.
There appears to have been some problems with my flash player version detection javascript. THis
was apparent in Internet Explorer with my dev version. I fixed it for Internet Explorer and found that
Opera did better on Mac but still unacceptibly.
This is encouraging, but am a bit frustrated by the platform differences and don't know if
there are specific style sheet or markup quirks that would contribute to this.
As Flash depends on adequate style sheet and markup to run correctly in a web site,
as well as javascript, or other scripting language, It would be nice to include more instructional
material, or references to browser and platform specific issues that would effect. -
Responsive gallery help (javascript issue?)
I'm trying to add this responsive gallery to my site (http://tympanus.net/codrops/2011/09/20/responsive-image-gallery/) - I'm still working on customizing the style, but my main issue is that it's not responsive - I copied everything from the downloaded files, even tried with a clean HTML page when it failed to work within my site, but the gallery does not adjust when I resize the browser window.
http://atenndesign.com/photos/cuba.html
I'm not experienced in javascript but I copied those files and link paths as is... what am I missing?The gallery is responsive (you can test this by adding a small width to your <div class="content"> which will resize the gallery). However, your website is not. For the gallery to work, you need to make the rest of the site responsive by using % widths and preferrably no tables. There are a few posts about responsive sites in this forum or you can have a look here: http://www.smashingmagazine.com/responsive-web-design-guidelines-tutorials/
-
About a month ago, I upgraded my webserver to ColdFusion
MX7.0.1. I
have also upgraded my development and test server as well.
My test and development servers work fine, and have no issues
at
all. The production server has a major issue though. When
recovering from a restart, CF appears to be running (jrun.exe
is
running, and all services are running), but when making a
call to any
CF page a "500 null" error or "server error 500" is returned.
I found that through a series of restarts, cfstops, cfstarts,
and the
stars being in the proper alignment, I can get CF running.
When using cfstart on my developement or test server, I see
several
lines go by, and then it waits. When running it on my
production
server, I receive about 3000 lines of Java exceptions. All
the
exceptions occur after "ColdFusionStartUpServlet: ColdFusion
MX: VM
version = 1.4.2_05-b04"
Has anyone else had an issue like this? I am at the point
where I
need to get this resolved ASAP, and my next step is to
uninstall and
reinstall CF, unless someone here has any suggestsions.
Any help is appreciated.Here are the first 150 lines (out of 3164 lines)
--CrazzyWebMonkey
C:\CFusionMX7\bin>cfstart
Starting Macromedia JRun 4.0 (Build 92909), coldfusion server
06/13 05:16:38 warning Unable to open
C:\CFusionMX7\runtime/lib/license.properti
es
06/13 05:16:40 info JRun Naming Service listening on *:2920
06/13 05:16:40 warning No sessionSecret has been specified in
jrun.xml. Installi
ng a self generated sessionSecret.
06/13 05:16:42 info No JDBC data sources have been configured
for this server (s
ee jrun-resources.xml)
06/13 05:16:42 info JRun Proxy Server listening on *:51011
06/13 05:16:42 info Deploying enterprise application
"Macromedia ColdFusion MX"
from: file:/C:/CFusionMX7/
06/13 05:16:42 info Deploying web application "Macromedia
Coldfusion MX" from: f
ile:/C:/CFusionMX7/
06/13 05:16:45 INFO License Service: Flex 1.5 CF Edition
enabled
06/13 05:16:45 INFO Starting Flex 1.5 CF Edition
06/13 05:16:46 user JSPServlet: init
06/13 05:16:47 user CFMxmlServlet: init
06/13 05:16:47 user CFMxmlServlet: Macromedia Flex Build:
87315.134646
06/13 05:16:47 INFO Macromedia Flex Build: 87315.134646
06/13 05:16:50 user ColdFusionStartUpServlet: init
06/13 05:16:50 user ColdFusionStartUpServlet: ColdFusion MX:
Starting applicatio
n services
06/13 05:16:50 user ColdFusionStartUpServlet: ColdFusion MX:
VM version = 1.4.2_
05-b04
java.lang.StackOverflowError
at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:232)
at
coldfusion.log.CFFileAppender.doSuperAppend(CFFileAppender.java:77)
at
coldfusion.log.CFFileAppender.access$300(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$AppendPrivilegeAction.run(CFFileAppende
r.java:106)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.doAppend(CFFileAppender.java:72)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
(AppenderAttachableImpl.java:57)
at
org.apache.log4j.Category.callAppenders(Category.java:255)
at coldfusion.log.Logger.forcedLog(Logger.java:105)
at org.apache.log4j.Category.info(Category.java:704)
at
coldfusion.log.CFFileAppender.writeHeader(CFFileAppender.java:38)
at
org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java
:198)
at
coldfusion.log.CFFileAppender.setFile(CFFileAppender.java:28)
at
org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.jav
a:188)
at
coldfusion.log.CFFileAppender.doSuperRollOver(CFFileAppender.java:82)
at
coldfusion.log.CFFileAppender.access$400(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$RollingPrivilegeAction.run(CFFileAppend
er.java:126)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.rollOver(CFFileAppender.java:32)
at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
va:297)
at
org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at
coldfusion.log.CFFileAppender.doSuperAppend(CFFileAppender.java:77)
at
coldfusion.log.CFFileAppender.access$300(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$AppendPrivilegeAction.run(CFFileAppende
r.java:106)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.doAppend(CFFileAppender.java:72)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
(AppenderAttachableImpl.java:57)
at
org.apache.log4j.Category.callAppenders(Category.java:255)
at coldfusion.log.Logger.forcedLog(Logger.java:105)
at org.apache.log4j.Category.info(Category.java:704)
at
coldfusion.log.CFFileAppender.writeHeader(CFFileAppender.java:38)
at
org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java
:198)
at
coldfusion.log.CFFileAppender.setFile(CFFileAppender.java:28)
at
org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.jav
a:188)
at
coldfusion.log.CFFileAppender.doSuperRollOver(CFFileAppender.java:82)
at
coldfusion.log.CFFileAppender.access$400(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$RollingPrivilegeAction.run(CFFileAppend
er.java:126)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.rollOver(CFFileAppender.java:32)
at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
va:297)
at
org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at
coldfusion.log.CFFileAppender.doSuperAppend(CFFileAppender.java:77)
at
coldfusion.log.CFFileAppender.access$300(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$AppendPrivilegeAction.run(CFFileAppende
r.java:106)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.doAppend(CFFileAppender.java:72)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
(AppenderAttachableImpl.java:57)
at
org.apache.log4j.Category.callAppenders(Category.java:255)
at coldfusion.log.Logger.forcedLog(Logger.java:105)
at org.apache.log4j.Category.info(Category.java:704)
at
coldfusion.log.CFFileAppender.writeHeader(CFFileAppender.java:38)
at
org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java
:198)
at
coldfusion.log.CFFileAppender.setFile(CFFileAppender.java:28)
at
org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.jav
a:188)
at
coldfusion.log.CFFileAppender.doSuperRollOver(CFFileAppender.java:82)
at
coldfusion.log.CFFileAppender.access$400(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$RollingPrivilegeAction.run(CFFileAppend
er.java:126)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.rollOver(CFFileAppender.java:32)
at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
va:297)
at
org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at
coldfusion.log.CFFileAppender.doSuperAppend(CFFileAppender.java:77)
at
coldfusion.log.CFFileAppender.access$300(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$AppendPrivilegeAction.run(CFFileAppende
r.java:106)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.doAppend(CFFileAppender.java:72)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
(AppenderAttachableImpl.java:57)
at
org.apache.log4j.Category.callAppenders(Category.java:255)
at coldfusion.log.Logger.forcedLog(Logger.java:105)
at org.apache.log4j.Category.info(Category.java:704)
at
coldfusion.log.CFFileAppender.writeHeader(CFFileAppender.java:38)
at
org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java
:198)
at
coldfusion.log.CFFileAppender.setFile(CFFileAppender.java:28)
at
org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.jav
a:188)
at
coldfusion.log.CFFileAppender.doSuperRollOver(CFFileAppender.java:82)
at
coldfusion.log.CFFileAppender.access$400(CFFileAppender.java:13)
at
coldfusion.log.CFFileAppender$RollingPrivilegeAction.run(CFFileAppend
er.java:126)
at java.security.AccessController.doPrivileged(Native
Method)
at
coldfusion.log.CFFileAppender.rollOver(CFFileAppender.java:32)
at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.ja
va:297)
at
org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at
coldfusion.log.CFFileAppender.doSuperAppend(CFFileAppender.java:77)
at
coldfusion.log.CFFileAppender.access$300(CFFileAppender.java:13) -
Web Engine image/javascript issue
Just a note on an issue found in my gallerypage webengine with LR4 Beta.
The gallery uses javascript scrolling and I found this to be broken in the LR internal preview (using the new APE), it is all OK when exported or previewed in a browser.
(on OSX) - Console messages such as -
[HTML Trace]: ReferenceError: Can't find variable: oScroll
[HTML Trace]: doscroll at http://app-storage:52001/javascript/whscroll.js : 96
[HTML Trace]: scroll at http://app-storage:52001/javascript/whscroll.js : 90
[HTML Trace]: onmouseover at http://app-storage:52001/index.html : 192
It looked like the windows.onload functions in the js were not happening.
Tracking back from the gallerypage.html I found - background: url(../images/mailrule.gif) 0px 0px no-repeat; in CSS was causing the issue and was down to the mailrule.gif file missing from the images folder.
(was OK with LR3 but webkit in LR4 borked! and caused issues with javascript running in the webengine)
I suspect that images referenced from CSS when previewed within LR must exist in appropriate path or APE (webkit) may choke…
Also with another prototype webengine where the generated index.html uses an included html file as part of the page the same problem was happening but the image files did exist in the images folder however I think that being referenced from an included part of code causes a problem with the internal preview using APE - again everything OK with browser preview or exported galleries.
As a workround I have noticed that if the images in the included code are of the Base64 data URI embedded type then the webengine will work just fine - I used a Base64 Firefox plugin to generate the data URI's - works great!
I will maybe need to provide the embedded images on the included code when in Preview Mode only to cater for APE - just a bit of monkeying around unfortunately but glad to have the internal preview back.
Now back to my 2 year old problem of using an array list from the galleryInfo.lrweb in the albumgrid page (it broke after LR2!)Just a note on an issue found in my gallerypage webengine with LR4 Beta.
The gallery uses javascript scrolling and I found this to be broken in the LR internal preview (using the new APE), it is all OK when exported or previewed in a browser.
(on OSX) - Console messages such as -
[HTML Trace]: ReferenceError: Can't find variable: oScroll
[HTML Trace]: doscroll at http://app-storage:52001/javascript/whscroll.js : 96
[HTML Trace]: scroll at http://app-storage:52001/javascript/whscroll.js : 90
[HTML Trace]: onmouseover at http://app-storage:52001/index.html : 192
It looked like the windows.onload functions in the js were not happening.
Tracking back from the gallerypage.html I found - background: url(../images/mailrule.gif) 0px 0px no-repeat; in CSS was causing the issue and was down to the mailrule.gif file missing from the images folder.
(was OK with LR3 but webkit in LR4 borked! and caused issues with javascript running in the webengine)
I suspect that images referenced from CSS when previewed within LR must exist in appropriate path or APE (webkit) may choke…
Also with another prototype webengine where the generated index.html uses an included html file as part of the page the same problem was happening but the image files did exist in the images folder however I think that being referenced from an included part of code causes a problem with the internal preview using APE - again everything OK with browser preview or exported galleries.
As a workround I have noticed that if the images in the included code are of the Base64 data URI embedded type then the webengine will work just fine - I used a Base64 Firefox plugin to generate the data URI's - works great!
I will maybe need to provide the embedded images on the included code when in Preview Mode only to cater for APE - just a bit of monkeying around unfortunately but glad to have the internal preview back.
Now back to my 2 year old problem of using an array list from the galleryInfo.lrweb in the albumgrid page (it broke after LR2!) -
JavaScript issues under mx:HTML
Hi everyone,
I'm trying to create an login form in HTML and focus() on one field when the page loads. The problem is that when you load the page in the mx:HTML element, the JavaScript code doesn't work. Any help is appreciated!
Thanks,
LucianHi Lucian,
We looked over your application and that indeed there is a problem but is related strictly to focus() on the HTML element (confirm that you can load other JS code and that this is related strictly to a focus issue). It seems that there is an issue with focus() that is done for an HTML element from an HTML page that is loaded in a Flex app within an HTMLLoader (the same HTML file loaded in AIR JS/HTML app does not reproduce the issue). We will log a bug and investigate this.
Thanks for reporting,
Marius Ioana
AIR QE Team -
Javascript Issues + Cannot Load Websites
Hi everyone. After updating to 10.5.8, Safari has been having issues regarding Javascript and loading particular websites.
When I try to load certain pages, it says Javascript is disabled. However, in the preferences, Javascript and Java are both enabled. I would also like to note that the same problem has been occurring in Firefox. Both browsers are updated to the most recent build. In addition, I have run Software Update to update Javascript. It has not fixed the problem. I have tried an iMac and another Macbook Pro that has all the same updates and neither had problems with loading websites or Javascript errors.
NoScript and Adblock Plus including all other add-ons are disabled in Firefox. I tried removing Firefox and all user profiles and reinstalled. The same problems exist. I have not done the same with Safari, but I don't think that will solve these problems.
I'm starting to think this issue has to do more than the browsers, perhaps a problem with Javascript in Mac OS?
Any feedback or suggestions will be greatly appreciated.HI,
Try resetting Safari. From the Safari Menu Bar, click Safari/Reset Safari. Select the top 5 buttons and click Reset. If that doesn't help...
Maybe maintenance will help. Mac OS X: How to force background maintenance tasks (logs and temporary items)
Also, you tried really good trouble shooting from Klaus1 (he's good)... http://discussions.apple.com/message.jspa?messageID=10040439#10040439
Have you tried performing an Archive and Install? Might fix the glitch instead of investing anymore time trouble shooting.
http://support.apple.com/kb/HT1545
Carolyn
Message was edited by: Carolyn Samit -
Links2 -g javascript issue [solved]
I installed the community build of links2 -g as my backup web browser and to view html files on my computer. The web site describes javascript capability and their manpage indicates a setup box for adjustments. The PKGBUILD in ABS indicates that it should be compiled in? not sure about this. (I'm new) There is no setup box for javascript under setup and when I go to a website that definitely has javascript I get the "please enable or switch browser messages". I checked with Firefox/Noscript enabled and it reported the same message until I gave permissions.
Is this feature turned off due to security issues? Can I reset something in ABS to rebuild with javascript enabled? Any help would be appreciated.
Thanks
javascript was listed as buggy on website.
Skippy
Last edited by skippy (2008-02-16 05:01:15)I am seeing some similar weirdness in manually created tabular forms using apex 3.2 and 4.01. I have an order form where the f01 .. f09 items get saved in a collection when the user hits the next button (collection is truncated then rebuilt using ...add_member). If they go back to the tabular form with the previous button the quantity entered for a particular row in the form gets moved down to the next row. You can hit next and previous and it will keep on happening. Eventually the quantity entered will cycle through all the html rows and back to the top. It does not happen with IE 8, FF 3.6 or Chrome. It is like the fXX items are not properly sequenced in the html form. I have spend hours trying to figure this out to no avail. The only variable is FF 4. I've tried 5 different themes. No luck.
Dave -
I've successfully used the built-in pop-up menu javascript
function for years (I know....everyone hates it). I've never had
any problems until now. For some reason, in the following menu, the
Scopes pop-up pops up high on the page in IE6 (works fine in
Firefox). The code is exactly the same as all of the others and
they all work fine in both browsers. Can't figure this one out.
http://featheredgeoptics.com/pam.htm
Javascript code attached.Hi,
press f12 to display the developer tool...and to debug the un-named web site. Use the Performance tab to find long running scripts in your pages.
Post questions about html, css and scripting for website developers to the IE Web Development forum.
Include with your questions a link to your website or mashup that shows the issue.
Possibly you could be using an old version of jquery, but this is unclear in your question without a website link.
Regards.
Rob^_^ -
Javascript issue calling location.href
Hi
I am calling a javascript function from the click event of a command button.
function test1() {
// alert('Simple alert');
location.href='/context/faces/test';
//window.location='/context/faces/test';
The redirection is not working here from the method. If I uncomment alert in the method and accept the alert the rediredirection is happening. Any one tell me the issue here ? Is there any other way to have the redirection using javascript ?
THanks
SuneeshSuneesh,
What "doesn't work" about it? On Page 2, you can have a command button/command link that has an Action method that returns a navigation/control flow case which returns you to Page 1.
One thing to be aware of... if you are using ADF Task Flows, you must run the page using the task flow URL, not by running the JSPX page's URL. In JDev, test by right-clicking Page 1 in the task flow diagram and choosing Run.
John
Maybe you are looking for
-
Hi All, can someone help please. Having trouble connecting my iPad to free wi if at caravan parks and also at McDonald, I have no such problem connecting my laptop. Thank you.
-
Hi I got an e-mail stating that Apple has determined that certain Seagate 1TB hard drives used in 21.5-inch and 27-inch iMac systems may fail, and that mine was one that may fail and to book an appointment with Genius to click here. So after making a
-
Choice of bitrate when deinterlacing 1080i50 to 1080p25?
I (mainly) use a Canon Legria HF R16 for my footage, and my clips (original) have the following characteristics: 1 video stream: AVC 1 audio stream: AC-3 Maximum bitrate: 18Mbps Video: 15Mbps 1920 * 1080 (16:9), 25fps (interlaced, 50fields/second) AV
-
Nutanix site-to-site replication
When dealing with Nutanix protection domains, what would prevent the execution of the site-to-site replication of said protection domain? This topic first appeared in the Spiceworks Community
-
Power Percentage is not correct at all (1981374893%)
I have an Apple Magic Mouse and Keyboard connected via bluetooth to my Macbook. They usually show a normal percentage 1-100%, but lately it has been showing a totally bizarre 1238753298758932% on both. They change every now and then. I've tried recon