|
I doubt many people will download your code and try it. I would recommend using jsfiddle.net instead.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Here is universal parser in javascript: http://synth.wink.ws/moonyparser/
I've been to hell and back to make it faster, but that's it, shift-reduce can't be much faster. Unfortunately, finding errors in text makes it three times slower. At least it has linear parsing time.
|
|
|
|
|
i've just fixed some ugly bug about unspecified tokens. sorry for inconvenience.
oh, did i mention that the code is free for any use? just don't sue me, that's all
|
|
|
|
|
ivan vodišek wrote: did i mention that the code is free for any use? just don't sue me, that's all If you want to promote your code then please post an article about it as described in http://www.codeproject.com/info/Submit.aspx[^], not the technical forums.
Use the best guess
|
|
|
|
|
is there any security warning you are getting by opening this link i got that y telling you
|
|
|
|
|
I am sure this has been asked a million times, but I am going to ask again because I can't find a good answer to my specific issue. I am using MVC asp.net and I want to load data through Ajax when a row in a Telerik grid goes into edit mode. I can get the data to load and everything is good, but I can't get the cascading drop down to work. Here is my change event code, the error is somewhere in here:
$(document).ready(function () {
$('#categoryId').live('change', function () {
var defects = $('#defectId');
if ($('#categoryId option:selected').val() != '') {
$.ajax({
data: { categoryId: $('categoryId option:selected').val() },
type: "GET",
url: '@Url.Action("_GetDefectsByCategory", "Observation")',
success: function (data) {
defects.dataBind(data);
defects.reload();
alert("Successfully bound.");
},
error: function () {
alert("Failed to bind defects.");
}
})
};
});
});
The alerts are there for debugging purposes, obviously. I am not natively a JScript person as I typically work in strictly OO Client-Server environments, any help would be appreciated.
Cheers, --EA
|
|
|
|
|
Seems like you're missing a # in the line here:
data: { categoryId: $('categoryId option:selected').val() },
Should be...
data: { categoryId: $("#categoryId option:selected").val() },
|
|
|
|
|
.low
{
text-transform:uppercase;
}
but this not work
|
|
|
|
|
Wrong forum.
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
|
|
|
|
|
Try the "Web Development" discussion. The Lounge will not be helpful unless this question is framed in some lingo indicative of long-lasting subscription to reading threads there.
[edit]
As vbmike says beneath here ... try F12
[end edit]
modified 16-Jul-13 15:46pm.
|
|
|
|
|
It should work. Could be a few of things: you have a setting for the .low class lower(further down) in your css file that is over-riding this value, or you have not used the .low class on any element or maybe even mistakenly used and id of 'low' rather than a class of 'low' on one of your elements. It also could be that you have a text setting lower in your css file that over-rides this. Really difficult to tell from one bit of code. Use the browser console to try and debug what is happening.
vbmike
|
|
|
|
|
if u are using c# then first .tostring().toupper() then
this class can be useful to you
.low
{
text-transform:uppercase;
}
|
|
|
|
|
hi i am tarun
in asp.net we work on textbox changed event for check datais available or not and compair datafrom database .but page is pastback and taking time .
I want to use java script on client side this fast how to write javascript code in client side
|
|
|
|
|
You'll want to use jquery .ajax method.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi all,
i am beginner and learning. below my sample code. demo is working and demo1 is not , what the mistake i have done
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<p id="demo1">
what the hell is going on.
</p>
<p id="demo">
JavaScript can react to events. Like the click of a button.
</p>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML="Hello JavaScript!";
doucment.getElementById("demo1").innerHTML="This is not working";
}
</script>
<button type="button" onclick="myFunction()">Click Me!</button>
</body>
</html>
Thanks
Joe
|
|
|
|
|
You misspelled "document" as "doucment" on the "demo1" line.
If you look in the Javascript console, there should be an error message saying something like "doucment is not defined" - when something in JS fails to work, you should look there first.
|
|
|
|
|
Hello Joe,
spelling mistake in second statement.
document
Regards,
J Sampath Kumar,
Osmosys
|
|
|
|
|
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<p id="demo1">
what the hell is going on.
</p>
<p id="demo">
JavaScript can react to events. Like the click of a button.
</p>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML="Hello JavaScript!";
document.getElementById("demo1").innerHTML="This is not working";
}
</script>
<button type="button" onclick="myFunction()">Click Me!</button>
</body>
</html>
Try this... there is miss Sppell in document
|
|
|
|
|
<script>
function myFunction()
{
document.getElementById("demo").innerHTML="Hello JavaScript!";
document.getElementById("demo1").innerHTML="This is not working";
}
</script>
spelling mistake
ajd
|
|
|
|
|
how to make the framework area in java script in which i do work and out side the that area controls are disable.??????
|
|
|
|
|
This is not very clear. Please explain more.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
hi,
i want to reload my datagrid using javascript below is my code but that is not working fine can anybody suggest me to reload data into datagrid
PageMethods.FetchINV(input_par, OnSuccess, OnFailure);
function OnSuccess(response) {
response.each(function (index) {
my_result += '' + index.carat + '' + index.price + '';
});
my_result += ''
+ '<span>1</span>'
+ ''
+ ''
+ '';
$("#dginventory").html(my_result);
}
|
|
|
|
|
Your code is hard to follow. Please correct the formatting
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
|
|
|
|
|
I'm trying to figure out what I am missing here - setting a multiple column sort initially is easy via aaSorting, but when I click on a column to sort, the only data I get on the server side is for just that one column.
I.e., if I have A, B, C columns I can set up to initially sort like this:
[code]
'aaSorting': [[2, 'asc'], [0, 'desc'], [1, 'asc']]
[/code]
All of which come as iSortCol_# on the server side. But if I click on column B, I only get iSortCol_0 on the server side, with iSortingCols = 1. In this case what I really want is to have B shifted up front so the new sort is [[0, 'desc'], [2, 'asc'], [1, 'asc']].
I just know I'm probably missing some property somewhere :)
Anyone?
|
|
|
|
|
when you write your entire question formatted as a code block it makes it difficult to read (IMO).
your code listed is somewhat generalized so I can't only offer the following as help:
iSortCol_0 will come in your server request and you need to interpret it's value to decide the column that you are going to be sorting your data on.
iSortCol_0 = 2;
iSortingCols - 1;
Have you tried hacking the fnServerParams[^] to debug the values that are being created for your server call?
"fnServerParams": function(aoData) {
for(data in aoData) {
var name = aoData[data].name;
var value = aoData[data].value;
var junk = 123;
}
}
Hopefully this helps get you started or at least pointed into the right direction. If you have a bug datatables then you will probably have to use it's debugger[^] and submit the result on their forums.
you want something inspirational??
|
|
|
|