I am looking to access the actual value returned from the server.getRowData returns the value after unformat applied to the value. This results in loss of information.
For instance, if a double value is rounded to two decimal places and if I want to populate the form for edit with the original value returned from the server with 6 decim...
I have a series of <div/>'s as follows:
<div>.co.uk</div>
<div>.com</div>
<div>.gb.com</div>
<div>.uk.com</div>
<div>.net</div>
How do I select just the divs containing .co.uk, .com, .net.
If I use:
$('div:contains(".co.uk"), div:contains(".com"), div:contains(".net")`)
This causes the .gb.com and .uk.com divs to be select...
var doc = w.document;
doc.open('application/CSV','replace');
doc.charset = "utf-8";
doc.write("all,hello");
doc.close();
if(doc.execCommand("SaveAs",null,"file.csv")) {
window.alert("saved ");
}else {
window.alert("cannot be saved");
}
not working in IE 8
but woks in IE 6
what is the problem ? it is alerting "cannot be save...
I have a database the I am rebuilding the table structure was crap so I'm porting some of the data from one table to another. This data appears to have been copy-pasted from MSO product so as I'm getting the data I clean it up with htmlpurifier and some str_replace in php. Here is the clean function:
function clean_html($html) {
...
Is the difference here just various syntactical sugars or is there a reason to use one approach over the other? They all work, and to be a little more confusing what is the difference between this and evt.currentTarget?
the CSS
#reportDetails table tr:hover td,
#reportDetails table tr.hover td {
background: #aae4e2;
color: #33...
How can i call test() inside that method? It's possible?
(function() {
tinymce.create('tinymce.plugins.WrImagerPlugin', {
init : function(editor, url) {
editor.addCommand('mceWrImagerLink', function() {
//--> how can i refer to test() here?
});
},
test: function () ...
In the FullCalendar dayClick event, can I get the events that already exist in clicked date?
http://arshaw.com/fullcalendar/docs/mouse/dayClick/
Let me explain a little about my project
I'm writing a simple php site that allow user to add/edit event on calendar.
Only single event can add to a date.
If user click on empty date, New...
We are capturing a visible tab in a Chrome browser (by using the extensions API chrome.tabs.captureVisibleTab) and receiving a snapshot in the data URI scheme (Base64 encoded string).
Is there a JavaScript library that can be used to scale down an image to a certain size?
Currently we are styling it via CSS, but have to pay performance...
Hello!
Is there a way to change the "today" date in jquery.ui datepicker?
With today, I mean today (class="ui-datepicker-today") and not the minDate or the current-selected date!
I figured out, that datepicker uses the system time for default values. Now I get the current date from my server and set it to my minDate. But I didn't find a...
Hi,
I am just trying to cycle the focus between elements inside a particular element when the tab key is pressed. What I want to do is not to set focus to any element which is not a descendant of an element when tab is pressed from the last control inside the element. At that time the focus must be set to the first input element inside ...
Server.UrlEncode("My File.doc") returns "My+File.doc", whereas the javascript escape("My File.doc") returns "My%20File.doc". As far as i understand it the javascript is corectly URL encoding the string whereas the .net method is not. It certainly seems to work that way in practice putting http://somesite/My+File.doc will not fetch "My ...
What is the best way to determine whether a frame is cross-domain? Here's what I have now:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("#foo").load(function() {
alert(isCrossDomain(window.frames["foo"]));
});
});
...
I work on an internal corporate system that has a web front-end as one of its interfaces.
The web front-end is served up using Tomcat.
How can I monitor the rendering time of specific pages in a browser (IE6)?
I would like to be able to record the results in a log file (separate log file or the Tomcat access log).
EDIT: Ideally, I ne...
I'm sure this is really simple and I'm drawing a giant blank, but how do you set the result of a function as a global variable?
Example, I want to set the first "color" in array "colors" as global variable "color" (I know the example doesn't make much practical sense, but it's just to illustrate my question):
var color = "";
function ...
I have an input text field, which has a value "something" by default, but when I start to type, I want that the default value changes color, and the text i'll type, another one.
How can i do that?
<input type="text" value="something" onclick="this.value=''" />
...
hi,
when creating and sending an http POST request like this...
var req = new qx.io.remote.Request("/test","POST");
req.setParameter("pi", "3.1415");
req.setParameter("color", "red");
req.setParameter("password", "mySecretPassword");
req.send();
... paramters are send in the body and in the url...
I know how I would achieve this using PHP, but with jQuery / JavaScript I'm not sure how to, here's the string I'm dealing with (It's the name attribute from a input element):
Field[0][some_random_text]
I want to retrieve the value some_random_text and slap it in a variable, I guess I would usually use regex to accomplish this task bu...
What are the advantages of using
var foo = [];
over using
var bar = new Array();
i've been told to use [] over new Array() but never with much explanation
...
Hello,
My Html is like this:
<div style="height: 90px;" class="tabtextarea">
<div>Description:</div>
<textarea style="height: 85px;">TEXT...</textarea>
</div>
As you can see textarea is contained within a div with specific height so that it doesnt break layout on some browsers due to float styling and etc I ...
Can anyone tell me how to write javascript code that removes everything after the html tag.
I have the following file:
<html>
<head>
<script>
// my script
</script>
</head>
<body>
Some text
</body>
</html>
<script>
</script>
Rendered output must not contain the last script (or any other) tag.
...