Firefox generates a javascript syntax error with ![CDATA[
I have an app written in HTML5, SVG and javascript that ran until today. I uploaded 3.6.10, and now javascript reports a syntax error for the <![CDATA[ tag. Even when I remove the tag, the SVG will not run. I haven't made ANY changes to the app, just updated Firefox. What changed to break this?
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.
See http://forums.mozillazine.org/viewforum.php?f=25
You need to post a link to the website or post relevant parts of the code.
Similar Messages
-
Parsing errors with CDATA tags using oracle xml parser v2
I'm using the oracle.xml.parser.v2 parser to combine a
generated xml document from a database with a static
xsl file to produce html. Within the xml document, there
are fairly large CDATA sections (500 lines) which happen
to contain javaScript.
Occasionally, I'm getting xml tags in the final html
document! It seems that the oracle parser pukes
on a certain type of data within a CDATA tag, and then
replaces an angle bracket (<) of a tag with a #60. This
can cause html tags being viewed in the document. At
first, I thought the amount of JavaScript within the
CDATA tag was too large for the parser to handle,
because when I split it up into 2 or more parts the errors
went away. But, re-arranging the JavaScript (String in the CDATA tag)
can make the errors disappear. And, if I
use the Saxon parser to manually combine the xsl with
the xml, the output is fine. If anyone knows that this is
a confirmed bug by Oracle, or any other relevant info on
this, please let me know.Hi,
Your lucky, i've just finished a project that used the oracle parser extensively.
I think the problem may stem from your xsl. Although your cdata tags may be well formed, in the xsl you might need to escape the text again, this may mean that the xsl needs to print a further cdata tag around the data. This is because the parser (well the version I was using) strips the cdata tags before the transformation happens.
This is the probably the cause of the nasty html output. -
Syntax Error with JSON.Parse method to parse SharePoint List Items
Hi All,
I want to get SharePoint List data and bind that retrived data to the JQuery Grid Control.
For this I used SPServices to get the SharePoint List data in SOAP Envelope. Now I need to parse the soap envelope and store the retrieved items in array to pass it to the Grid Control.
While using the JSON.Parse(resporseText) method, Iam consistenly getting an Syntax Error!
Could anyone help me with this ?
Please find the SOAP Envelope I received from SP List as below:
"<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'>
<rs:data ItemCount="2">
<z:row ows_OBNumber='112211.000000000' ows_Project_x0020_Name='Project 1' ows_MetaInfo='11;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 1' ows_ID='11' ows_UniqueId='11;#{FBBCBCF9-666D-42F9-92D7-67188C51BC9B}' ows_owshiddenversion='1' ows_FSObjType='11;#0' ows_Created='2015-01-12 10:25:06' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:25:06' ows_FileRef='11;#sites/Lists/Projects/11_.000' />
<z:row ows_OBNumber='1122343.00000000' ows_Project_x0020_Name='Project 2 ' ows_MetaInfo='12;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 2' ows_ID='12' ows_UniqueId='12;#{0D772B76-68E4-4769-B6FF-6A269F9C7ABD}' ows_owshiddenversion='1' ows_FSObjType='12;#0' ows_Created='2015-01-12 10:33:48' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:33:48' ows_FileRef='12;#sites/Lists/Projects/12_.000' />
</rs:data>
</listitems></GetListItemsResult></GetListItemsResponse></soap:Body></soap:Envelope>"
Any help on this will be greatly appreciated.
Thanks In Advance.!Hi,
According to your description, there is an issue when parsing result from the data retrieved using SPServices.
By default, SPServices returns data as XML format, however, the JSON.parse() method “Throws a SyntaxError exception if the string to parse is not valid JSON”:
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
To extract the data needed from the response, you can either take the demo below for as a reference:
http://spservices.codeplex.com/wikipage?title=GetListItems
Or use the jQuery.parseXML() function:
http://api.jquery.com/jquery.parsexml/
Best regards
Patrick Liang
TechNet Community Support -
MySQL syntax error with TestStand 4.0 database logging
I had been using MS Access database to log results which worked fine but the access database is too limited. Switched to MySql. Database works fine and I can query it from Visual C++ and was able to create all my result tables fine from TestStand.
I get a syntax error when actually trying to log results and it has to do with either a missing quote or and extra quote, I can't quite tell. I thought I saw a post on this somewhere but can't find it now. Here is the complaint from TestStand:
An error occurred calling 'LogOneResult' in 'ITSDBLog' of 'zNI TestStand Database Logging'
An error occurred executing a statement.
Statement: UUT_RESULT.
[MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT VALUES' at line 1
Description: [MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT VALUES' at line 1
Number: -2147467259
NativeError: 1064
SQLState: 37000
Reported by: Microsoft OLE DB Provider for ODBC Drivers
Description: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
Number: -2147217887
NativeError: 0
SQLState: 37000
Reported by: Microsoft OLE DB Provider for ODBC Drivers
Source: TSDBLog
And here is all that appears in the MySql logfile:
INSERT INTO UUT_RESULT DEFAULT VALUES
070914
You can't see it here but the string is truncated after the word VALUES. The next line starts with the odd number.
Any ideas?
Thanks,
Bill Peters
BAE SYSTEMSSure. There were two bugs in the ini file that contains the default TS schemas (I think it was Default_Database_Options.ini or like that...).
Anyway the table description for STEP_NUMERICLIMIT had for it's command line INSERT INTO MEAS_NUMERICLIMIT. I guess TestStand looked at that and said hmm I better create that table too. Then later down the page when you try to create MEAS_NUMERICLIMIT it says the table already exists even though it is empty. The generate SQL button builds a bad file and then the database viewer creates a bad database. I would have to go into MySql and drop the database. I had to save the schema under a custom name, edit it read it back in, generate a new SQL file, but then it would still fail validation because the ini files don't get updated until you exit TestStand. So basically I did this process 3 times before I got it right.
It's wasn't a big deal but it's amazing how a little thing can cause a lot of work.
The second bug, I'm not certain was initially in the file or somehow got set on the fly. There was a random int statement at the very end of the SQL table description for UUT_RESULT. It was also in the schema INI file. Since the int had no name and occurred in a odd place, it created a syntax error in MySql. Same fix as above.
But like I said it's working great now. I like this approach because I serve it to the net with Apache and parse the database with simple PHP scripts.
Thanks,
Bill Peters
BAE SYSTEMS -
Syntax Error with EXPORT statement in ECC 6
Hi All,
I have one issue with EXPORT statement syntax.
I have declared data like below:
DATA: BEGIN OF mem_id,
mandt LIKE sy-mandt,
uname LIKE sy-uname,
modno LIKE sy-modno,
END OF mem_id.
export the memory id
EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID MEM_ID.
When I am checking the syntax error i am getting like "MEM_ID" must be a character-type field (data type C, N, D or T). by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".
I know this statement would be like IMPORT ITAB TO JTAB FROM MEMORY ID 'table'. So I have written like below
EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID 'MEM_ID'. But still it is throwing an error.
Can you please let me know how can I resolve this?
Regards,
Jyothi CH.Hi Jyothi,
data: l_var type string.
concatenate '6' '8' into l_var separated by space.
export l_var to memory id 'BB'.
Here we have to declare the type(structure) for l_var not for BB
and in another program
data:l_var type string.
import l_var from memory id 'BB'.
write : l_var. -
Syntax Error with Table Parameter (type: ANY) when Creating Function Module
Hello experts,
I want to create a function module with a table parameter and table type is ANY. But when I check (Ctrl+F7) this function module, syntax error occurs - "In this statement, the internal table "MSG_TABLE_ITEM" must have the type "STANDARD TABLE"."
Could anyone tell me what the wrong is? And how can I fix it?
Thanks,
ShelwinHi,
For table parameters, you can only pass
MSG_TABLE_ITM TYPE STANDARD TABLE
or
MSG_TABLE_ITM ( don't fill other columns TYPING ASSOCIATED TYPE ).
For reference check FM 'GUI_UPLOAD' - Table parameters
Regards,
DPM -
Syntax errors with ES freeze/hang FM
Hi,
I keep bumping into situations where a small syntax error causes FM to freeze, like there is a modal dialog open except there is no dialog. For example:
doc = app.ActiveDoc();
...this is wrong because of the parenthesis, but rather than throwing any errors, FM just freezes and I can't get it unfrozen, except to kill it with the Task Manager. Is there a way to prevent this freeze or at least thaw it out? It's becoming tiresome to restart FM and reset locks, etc. with every little typo.
Thanks,
RussHi Russ,
I think this won't help you, but I can reproduce this with app.ActiveDoc() and app.ActiveBook().
With other properties I get a correct runtime error "app.AutoBackup() is not a function".
So generally it works as expected, but not in these two cases.
I think this is a problem of the script engine in these two cases. Perhaps there's an invisible (private) method defined, which is used internally, I don't know.
Bye
Markus -
Illegal register: "icc" : syntax error with Sun C 5.8 compiler
I wanted to compile my C file with compiler option "cc -c -Xc -mt -fast -xarch=amd64" on Solaris 10 amd64 machine but it failed with following error -
Assembler: abc.c
"/tmp/GAAOBain6", line 819 : Illegal register: "icc"
"/tmp/GAAOBain6", line 819 : Syntax error
Near line: " orq %icc,%r8 ;/ line : 210"
"/tmp/GAAOBain6", line 852 : Illegal register: "icc"
"/tmp/GAAOBain6", line 852 : Syntax error
Near line: " movzwq %icc,%r9 ;/ line : 215"
cc: ube failed for abc.c
*** Error code 2
I am using following sun C compiler -
/SS11/SUNWspro/bin/cc -V
cc: Sun C 5.8 Patch 121016-02 2006/03/31
Do anybody has idea about this issue?
Thanks
SguptaThanks Boris for your help.
My abc.c file is following -
struct struct_1 {
unsigned type:8;
unsigned level:5;
unsigned seen:1;
unsigned pad:2;
unsigned length:16;
void sample (unsigned char type)
struct struct_1 *q;
/*** Allocate and assign pBody here **/
q->type = type;
q->length = type;
==========================================
compiling this file with following option gives the error in Sol-10 amd64 -
/SS11/SUNWspro/bin/cc -c -Xc -mt -fast -xarch=amd64 abc.c
But compiling without "-fast" options work fine.
Thanks
Sgupta -
Syntax Error with creating object
Hi,
I am getting the following syntax error in the code below:
non-staic variable this cannot be referenced from a static context
job[ ] thread = new job(20);
non-staic variable this cannot be referenced from a static context
thread[index] = new job(index);
public static void main (String[ ] args) {
job[ ] thread = new job(20);
for(int index=0; index < 20; index++) {
input1[index]=index;
input2[index]=index*2;
for (int index=0; index < 20; index++) {
thread[index] = new job(index);
thread[index].start();
Zulfi.Declare the nested class 'job' as static. Like "static class job" etc.
-
Syntax Error with SWF files on SH903i
I'm using Flash Pro 8 and thought I'd try out creating a very
simple SWF to test on the phone. Using the basic templates for
Flash 1.0/1 and Actionscript 1... I made a simple bouncing circle,
but I keep getting a "syntax error" when I try to download it into
my phone via the phone web browser. Is there something I'm missing?
It seems very straight-forward, but is there something I'm
missing?I figured it out. I had to access the file directly.
Oddly. -
Hi Gurus,
I am try in to buid a function
function runReport(){
I have declared all these variables above
and I am trying to build this URL. I want if user changes destype drop down to 'cache' that destype should add. else this line should not add. I am getting here syntax error. If I remove that if condition it works fine. Any help appriciated.
var URL = "http:" + "//" + WEBHOST + colon + WEBPORT + "/reports/"
+ cgiexe + qmark +
"report=" + REPORT + paramsep +
"cmdkey=" + CMDKEY + paramsep +
"useremail=" + USEREMAIL + paramsep +
"destype=" + DESTYPE + paramsep +
"desname=" + DESNAME + paramsep +
"paramform=" + PARAMFORM + paramsep +
"branch=" + BRANCH + paramsep +
"sales_terr=" + SALES_TERR + paramsep +
"beg_app_date=" + BEG_APP_DATE + paramsep +
"end_app_date=" + END_APP_DATE + paramsep +
"desformat=" + DESFORMAT + paramsep +
if (document.forms[0].elements["DESTYPE"].value == "cache"){
document.writeln (""schedule=" + SCHEDULE + paramsep +") }
"username=" + USERNAME + paramsep +
"notifyfailure=" + NOTIFYFAILURE;)If you really want to disable right-click then it would be far better if you did so only for images:
document.oncontextmenu = suppress_imageClick;
function suppress_imageClick(sic) {
if (!sic) var sic = window.event;
var sicTarget = (window.event) ? sic.srcElement : sic.target;
if (sicTarget.tagName == "IMG") {
return false;
Put the script in the head of your document, inside script tags, and it will disable right-clicking for images only.
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Menus | Galleries | Widgets -
@prompt syntax error with Optional
Hi Everyone,
My first post here, hope you guys can help me out. I have some predeifned conditions on a UDT universe which does not parse but works fine. However, In IDT i am making the same but unable. As I have seen so far with the .UNX universe any predefined conditions which does not parse on IDT does not work on the report as well unlike UNV universe. So here is my issue:
This does not parse on .UNV but works fine on the report:
convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL',}) OR 'ALL' =
@variable('Customer No:')
I have corrected the mistake of the 7th parameter which is the default value as follows:
convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL'})
OR 'ALL' = @variable('Customer No:')
and i get the following error : Incorrect syntax near the keyword 'OR'.
When I remove the "OR 'ALL' = @variable('Customer No:')"
I get the error: Incorrect syntax near ')'.
So i have to correct the filter condition as
convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent)
but this does not allow me to have ALL as the default value which inturn acts as an optional prompt at report level.
Kindly help me either fix this or create pre-defined conditions with optional prompts.
MaheeHi mahee,
Apply this filter condition
if you want to select single value in report use "Mono"
Vw_Ln_Umb.rim_no = @Prompt('Customer No:','N','Limit Details\Customer No.',Mono,Free,Not_Persistent)
if you want to select multiple value in report use "Multi"
Vw_Ln_Umb.rim_no IN @Prompt('Customer No:','N','Limit Details\Customer No.',Multi,Free,Not_Persistent)
Remove extra comma in your filter condition.
Regards
Mustafa -
Syntax error with CL_ABAP_CHAR_UTILITIES
Hi,
I am facing an error during syntax check of the include program ZXMBCU01.
My code is:
class cl_abap_char_utilities definition load.
CONSTANTS: c_lf TYPE C VALUE CL_ABAP_CHAR_UTILITIES =>CR_LF.
CONSTANTS: c_cr TYPE c value cl_abap_char_utilities=>newline.
CONSTANTS: c_tab TYPE C VALUE CL_ABAP_CHAR_UTILITIES =>HORIZONTAL_TAB.
whats wrong with it?
thanks!
ChikaFound that CR_LF is two characters, right?
Sorry for double...I just hit post once. -
Syntax error with Transformation
Hi all,
I am trying to write a routine in Transformation which reads the navigation attribute of the char Ymaterial from a ODS and fills an internal table which will then be uploaded to a char in the cube.
The Code looks like the one below:
$$ begin of 2nd part global - insert your code only below this line *
DATA: G_MATERIAL TYPE TABLE OF /BIC/PYMATERIAL.
TABLES: /BIC/PYMATERIAL.
$$ begin of routine - insert your code only below this line -
SELECT * INTO TABLE G_MATERIAL
FROM /BIC/PYMATERIAL.
FOR ALL ENTRIES IN SOURCE_PACKAGE
WHERE /BIC/YMATERIAL = SOURCE_PACKAGE-/BIC/YMATERIAL.
SORT G_MATERIAL BY /BIC/YMATERIAL.
I am getting the following error message:
E:The statement "FOR" is not expected. A correct similar statement is
"FORM". statement is "FORM".
In other words, how do I ensure that the value of the attribute which I am reading from the master data table of Ymaterial is the one that is present in the ODS. Can you give the syntax for the same.Hi rakesh
I think You are right but when I removed the full stop after FROM /BIC/PYMATERIAL, I got the following error Field "SOURCE_PACKAGE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement
Thanks -
Hi All,
I have the below logic in ECC 6
FORM ysd_sd09_124_clean_up_zzcmw.
DATA: lv_a0 TYPE i VALUE 160.
DATA: lv_trans(2).
FIELD-SYMBOLS: <lf> TYPE c.
ASSIGN lv_a0 TO <lf> CASTING TYPE c.
lv_trans(1) = <lf>+3(1).
TRANSLATE vbkd-zzcmw USING lv_trans.
ZZCMW is a custom field(customer master warranty field).
When I am trying to create a sales order this user exit will trigger and giving dump for the code TRANSLATE vbkd-zzcmw USING lv_trans.
Category ABAP Programming Error
Runtime Errors DATA_OFFSET_TOO_LARGE
Except. CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program SAPMV45A
Application Component SD-SLS
Date and Time 21.09.2011 10:09:33
Short text
Invalid subfield access: Offset too large
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPMV45A" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
In the running program "SAPMV45A", the field "<LF>" of the type
"C" and length 2 was to be accessed with the offset 3.
However, subfield accesses with an offset specification that is not
smaller than the field length are not permitted.
But same is wokring in 4.7. I tried to change the declarations but it did not work out. Can you please tell me what would be the difference in both versions?
Regards,
Jyothi CH.Did you activate Unicode during the upgrade, check [Assignments to Field Symbols|http://help.sap.com/saphelp_nw04/helpdata/en/79/c55491b3dc11d5993800508b6b8b11/frameset.htm]
Assignments to Field Symbols
Until now the ASSIGN statement made it possible to define addresses past field limits by specifying the offset or length. There was only a runtime error when addressing past the limits of the data segment. Cross-field accesses to the offset/length in an ASSIGN, for example, could be used to edit repeating groups.
With Unicode, however, problems occur since it is not possible to ensure that cross-field offset or length definitions can be interpreted as bytes or characters in an identical and meaningful manner in both a US and an NUS. For this reason, the ASSIGN statement was enhanced with the RANGE and INCREMENT additions while the CASTING addition now supports all variants of this statement. The RANGE addition is offered for all valid variants of ASSIGN and can be combined with the CASTING addition.
Try a
lv_trans = cl_abap_conv_in_ce=>uccp( '00A0' ).
(UTF-16 to UTF-8 ?)
Regards,
Raymond
Maybe you are looking for
-
Hi Geeks, I m working on File (XML ) to SOAP Scenario through BPM .In Bpm i m using a transformation step which converts from one source structure to 3 diff target structure.( One has the pay load and rest two have constant values ( this will be g
-
I am unable to override the crop area and adjust the crop margins in Acrobat X Standard.
When cropping in Acrobat X Standard, I am no longer able to override the crop area and make adjustments in Acrobat X Standard. All options are grayed-out. This seems to be a relatively new issue, but I'm not sure when I started having the problem. Wh
-
Trace function or some way to see what branching decisions are being made.
Hello, Is there anyway to trace through a series of conditional branching items? In my 11 page form I have a case where I think I have set up the proper Show/Hide and branching conidtions, however In one senario, when testing the form I get a "Bla
-
"Projected" date for SOA Suite on Vista?
Hi all, Is there a date (currently shown as "projected" on Metalink) for support of AS 10.1.3.1 on Vista? Not too interested in production use, just a developer workstation. Regards, John
-
SCSI ID for a Quantum FB10A011 IDE HDD
I took my old Performa apart to salvage the HDD, I want to find out what's on it. I hooked it up to my Beige G3 MT but it won't show it even being there on the desktop. Is there a SCSI ID for the FB10A011 or will it even work in my Beige. Mic