» Home » javascript » Page 1
javascript error “invalid XML attribute value <script language=JavaScript> ”
by mrmt in Web Design

i have some javascript files included in my html file for months. It used to work just fine until couple of days ago, now my scripts don't run anymore and i get javascript error "invalid XML attribute value <script language=JavaScript>
"
with firebug.


Does anyone know what this error means and how to get rid of it? i guess is something about that


buttons generated in php and javascript calling a javascript function with an argument just refresh the page
by TheMoo in Javascript

I am trying to generate some buttons to hide a text field on a form with php and javascript, but every time i press the button it just refreshes the page. I cant tell if its the buttons or the function that is having troubles but i am assuming the program is refreshing because it is erroring out.


php generated button


echo("<button id="button".$count."" onclick=dele

Command Line JavaScript Input Arguments Issues While Minifying JavaScript in Gedit
by johntynan in Javascript

I want to minify my JavaScript files immediately in Gedit. I tried do it via external tools option with jsmin.js script. I have SpiderMonkey engine installed. I stored jsmin.js file at /home/mushex/use/js/jsmin.js and created a new js file named jsmin-low.js in the same directory with content


#!/usr/bin/js
load('/home/mushex/use/js/jsmin.js');
var body = arguments[0],<

JSP/Javascript/JQuery: store html/javascript content in a variable + write it to textarea
by Silverforce11 in Web Design

I'm using a json object to store different bits of content, one of which can contain javascript & html relevant content (like quotes, semicolons, tags etc) which without encoding can break the page. To work around this I'm using:


"content":"<%=StringEscapeUtils.escapeHtml(StringEscapeUtils.escapeJavaScript(content))%>"


(I'm using JSP as server-side technology and


Is it necessary to write tests for both Javascript and non-Javascript for apps that “degrade gracefully”?
by Barfo in Javascript

In writing the tests for my Rails 3.2.3 application, I am writing the tests to handle the basic clicking and stuff minus the Javascript. However, I'm leaning heavily on jQuery in the application and I am wondering if I should:


A) Write the tests for JS instead


or


B) Write the tests for both


I have learned basically everything I know from RailsCast


If I hide a text input element with javascript can other javascript functions still access a value entered into it?
by Javier Pitalua in Javascript

I am trying to use this function:


function storagecalc(){
var thediv=document.forms["boxes"];
var boxno=thediv.elements["numbofboxes"];
var howmany =0; //If the textbox is not blank */
if(boxno.value!="")
{
howmany=parseInt(quantity.value);
}
return howmany;
document.getElementById('numberprice').innerHTML = "£"+

how to assign a block of html code to a javascript variable (to invoke a javascript call)
by Icyflash in Javascript

I want to assign a block of html code to a js variable


the html code is


<script>alert('test');</script>

I want to do this


var script = "<script>alert('test');</script>";
document.getElementById('test').innerHTML = script;

but it does not work


if I substitute the tag (o


looking for any codes(javascript/jquery/ajax) like able to pause the javascript and only activate it when onclick else dont do anything
by droom in Javascript

hi i am new here and i need help!
i am looking for simple javascript for okay/cancel function. just like hotmail when want to delete email, it will prompt you whether you wan to proceed or cancel.
my current code will just auto runs two javascript.
so now i am looking for codes like able to pause the javascript and only activate it when onclick else dont do anything.



jQuery to JavaScript: equivalent to $(“.className tagName”) selector in javascript
by Thaweesak Suksuwan in Javascript

I wonder what's the equivalent to this jQuery selector: $(".className tagName") in javascript?
Anyone can help me?
Thnaks in adcance.


Javascript to set hidden form value on drop down change - options not populating from Javascript array
by Venezuela in Javascript

I have some Javascript code that creates 2 arrays: One for Product Category and one for Product.


But before the user can choose the Product Category or Product, they have to choose the type of Campaign they wish to use. Thus, the selection (event) of the 'Campaign', triggers the hidden drop-down menu from which to choose the Product Category. Once the Product Category is chosen


Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .