I'm getting an error message come up in IE6 when somenone subscribes to my newsletter from my home page (either from the drop down hover box form or the left hand form) here .
After entering a name and email address I get:
A runtime error has occurred....do you wish to debug? Line 4 Error: Unterminated string constant
When I click NO I then get a second small windows popup which says:
A runtime error has occurred....do you wish to debug? Error: Expected ')'
I've looked at lines 4 and 43 of my thanks.php page (the page subscribers get when they fill out the form but before they double optin via the email) and I can't find anything wrong. I guess the first message expects a semicolon and the second obviously a closing bracket. Code:
I am facing a problem in javascript. strdata is a variable of javascript and following is an assignment(hmm a Huge one but unfortunately its not mine code, I am just trying to rectify it) to this varibale.. Now I am facing a run time error(Unterminated string constant).....
in IE only (tested version 7) if var myWord = "English" then it works fine but if var myWord = "Modifier Chau00EEnes" then I get "Unterminated string constant" error.
What fix would you suggest to keep div.innerHTML = "" format?
Then when I run I get this error unterminated string literal selectAndUpdate('EA13','GY','210/60R. That means my third value from the db got problem due to the slash right? How to overcome this?
Hi, this is the first lines of a function. Although it runs, it still throws an "Unterminated string constant" error in the browser. It is all in one line, just wouldn't fit here.....
im trying to read an xml file and put it into a textarea on my page. here is the code that returns the xml file as a string:
Document doc = new Document(); SAXBuilder saxBuilder = new SAXBuilder("org.apache.xerces.parsers.SAXParser"); XMLOutputter xmlOut = new XMLOutputter(Format.getPrettyFormat()); doc = saxBuilder.build(filesName); String xml = outputter.outputString(doc);
no when i try to pass this to a javascript as follows: function putXML(fileName){ var blah = '<%= xml %>' document.btraxtestForm.HighwayMessage.innerText=blah; }
it gives me a unterminated string literal error.
also, i will never know the contents of this xml file so i cant split up the string. has anyone any ideas how i will fix this?
I created a simple WYSIWYG for creating CSS based webpages. It works exactly as assumed in Safari and Chrome. However, in firefox, when you copy/paste more than one line of text, instead of formatting it as html, in puts in line breaks causing the array storing all of the data to break into multiple lines and causing an unterminated string literal.
1. suggest why it is behaving this way? 2. suggest a work around to allow it to work on FF?
I have a form with a textarea field. I want to validate the input from the textarea using javascript. Suppose I want to check that the user has not entered the string: "Hello World!"
To do this I am using the script: form["text"].value == "Hello World"
But this gives an "unterminated string constant error" because the browser converts this to: form["text"].value == "Hello World"
I desperately need to have a constant website visitor that is online 24/7 on my website. Due to a js error. We need to keep an absolute minimum of one online site visitor. This is a temporary measure while we locate the error which so far has taken 3 js coders 3 days with no success in finding. We really need to keep the script thinking that a user is online.
Is there a bot setup that will simulate a website user that NEVER leaves a certain webpage?
If not. How can I set up the script so that I can fool it into thinking there is someone online? I really need this info... i have spent hours and another thread, with NO help on the repair. I really need to be able to keep the js rolling. I am on the verge of giving up on this project as impossible.
I built my website using Stacey app, and have installed the Jquery booklet plugin, but its not working, I get Uncaught Reference Error: $ is not defined. It is the script below that is not Working....
Why does the the following javascript function not work? This is not valid HTML (that is the problem). This works when not passing any arguments to the function. I think I'm required to have all element attribute values in quotes for XHTML standards. I've tried placing my echo statement argument in double and single quotes, and they both do not work. What simple thing am I missing?
make a scroller that could scroll continuously/constant both forward and backward (from left to right and right to left).
The instance shouldn't scroll unless holding down a link (arrows left&right) outside the scroller. (using onmousedown and stop onmouseup) and it would be great if it's not possible to scroll past the last and first item. (i don't want any empty space) But I guess I could do that with offset and exclude (:
I don't have any code for you, but if you want me to try some more first, I'll do that and send you if I got anything good out of it!
(I also tried the HoverScroll plugin, but since the arrows is implemented in the jquery/js-code I wasn't abled to tweak it as I wanted. That plugin is possibly the nearest already made scroller I've so far seen. However I want the buttons to be outside the scrollerarea, and I also want to be able to change the styling on the whole thing. and I want it to use onmousedown and onmouseup instead of onmouseover.)
I've tried with scrollable and ScrollTo/SerialScroll, but I'm not a code wizard so how to do this.. ;O These plugins seems really great, and I have used them in other projects, so I'm a bit familiar with how they work.
I'm having a hard time getting my head round it again. I know it could be more efficient in jQuery, but I'd be happy just to get it working, with an extra variable, in straight js.The function takes an array and progressively hides each element at constant interval, in this case 50ms:
function hide_50(arrayA,visibility,current) { if ( current == null ) current = 0; var arrayB=(typeof arrayA == 'string')? arrayA.split(',') : arrayA;