Round The DOJO Charting Using The Declarative (html) Method

Sep 19, 2011

I have been trying to get my way round the DOJO charting using the declarative (html) method.

1. I have a ItemFileReadStore for the data source
2. I know the data store has data as I am outputting it to a grid as well.

The only thing that appears is the axes and the numbering for the x axis, there is no line and the numbering for the y - axis, tried googling, but to no avail.

[Code]....

View 1 Replies


ADVERTISEMENT

Round Corners Script In Object Oriented Programming Method

Feb 12, 2012

I am trying to make a round corners script in object oriented programming method. This is purely for learning purposes.

The script is no where near complete but I am already having problems with it.

I am trying out the techniques described in 'David Flanagan ' text book 'JavaScript: The Definitive Guide, 5th Edition'

This code is called from html page which once working will place a round container around element

Code:

Javascript functions below

Code:

View 19 Replies View Related

JQuery :: Google Charting - Display For Example 5 Charts

Aug 23, 2010

I have a problem with display for example 5 times the same charts on the '#charts' (code below):

[Code]....

View 2 Replies View Related

Dojo Datepicker And Dropdowndatepicker

Sep 25, 2006

I try to use the dojo datepicker and dropdowndatepicker widgets and I
have the following problems.

The setDate methode does not modify the display.
The storedDate property stay undefined for the dropdowndatepicker

I want to initialise the date field from a MySql database but I don't
see how to achieve it.

View 2 Replies View Related

Add Dojo Toolkit In Netbeans?

Dec 2, 2010

how can I add dojo toolkit in netbeans so that when I view the palette i can easily drag and drop the items from it?

View 1 Replies View Related

DOJO Dialog Box Cannot Appear In Firefox

Aug 14, 2011

I am wondering why my DOJO Dialog box cannot appear in Firefox but can appear in IE and Google Chrome.
With Code JavaScript:
dialog5.show();
I thought my dialog box will automatically show in browser ? It is the case for IE and Google Chrome but not for firefox.

View 4 Replies View Related

JQuery :: Dojo Parsing Fails After Ajax?

Jul 19, 2011

Maybe it isn't really best practice (as it turns out) to use both jQuery and Dojo in the same application, but there are things I like about both libraries (for example jQuery is faster with animations, while Dojo has interface objects I like better). Nonetheless, best practice or not, I use both and that seem to create some complications.

The first time I load content via AJAX with jQuery DOJO seems to properly parse the checkboxes, datetime pickers, etc. which are sent with the new HTML. However, it seems the second time the parser won't react. I'm calling dojo.parser.parse() every time I load content with jQuery's $.ajax call. So basically my code looks like this:

Code:

$.ajax({
url: 'ajax.php',
success: function(data){

[code]....

It's like when an ID has been treated once by Dojo it doesn't want to do it again. there's a way to let Dojo know it has to parse the same IDs again?

View 1 Replies View Related

Dojo Signup Form / How To Execute 2 Functions At Once?

Jun 11, 2009

I am using dojo to validate my signup form. If I putting execute="checkPw(arguments[0]); before "submitI fValid(this.isValid());"> , the check password is working but i cant submit the form or vice versa.

View 3 Replies View Related

Embed Html In Alert Method?

Sep 17, 2009

I want to include a link in the alert method.I tried this

alert("Please enable your java to experience this enhanced page." + '<a href="http://www.java.com/en/download/index.jsp" target="_blank">Free Download Java</a>');

But this will not made a link it shows all as it is. How can i made a link in alert.

View 3 Replies View Related

DOJO - Remove Selected Items In The Grid2 To Grid1?

Sep 13, 2010

I am fetching dataitems(store1) from the json file using IteamFileWriteStore and IteamFileReadStore and storing these items in the EnhancedGrid G1.

<table dojoType="dojox.grid.EnhancedGrid" jsid="grid2" id="grid2" store="store2"
plugins="{indirectSelection: true, selectable: true, dnd: true, nestedSorting: true,
loadingMessage: 'Loading...', errorMessage: 'An error exists within the data.' }"
selectionMode="extended" class="mainDojoTable float-left" style="width:180px;
height:300px;">
[Code]...

After Fetching the data from the grid1 of store1. Now, I need to Remove the Selected items in the grid2 to the grid1. After Removing the Selected items to the grid2 that items should be Added from the grid1.

View 1 Replies View Related

JQuery :: Internet Explorer And Html Method

Jun 22, 2009

The following code is working great for all browsers except for Internet Explorer .. I've been investigating and the problem seems to be the html method. How can I change the script for it to work in Internet Explorer also? [code]

View 1 Replies View Related

DOJO Dialog Box - Remove Quotation Marks And Just Display The Pic - Words

Aug 4, 2011

As shown in the picture below, you can see the word "Chinese Swimming Club" in the dialog box

Why is the quotation marks there ?

Is it possible to remove the quotation marks and just display the pic + the words Chinese Swimming Club ?

Part of the coding:

Code JavaScript:

The name (Chinese Swimming Club) is retrieved from my database (I am using Microsoft SQL Server 2005)

View 4 Replies View Related

EXE From HTML: Critcal Patches Broke ShellExecute Method. What Now?

Jul 23, 2005

Note: There is considerable background detail here, but I do have
three questions, which are clearly marked and appear right before the
sample code.

I have a legitimate need to launch an EXE from an HTML page on Windows
XP/Internet Explorer. The EXE is already locally installed, and the
HTML page is also viewed locally on the PC- it's not a web site. I
know of two ways to do this, both of which are featured in the sample
HTML file at the bottom of my post.

The first method, using the Shell.Application ActiveX Object, used to
work until I installed the latest critical Windows XP patches from
Microsoft. Before these patches were installed, you could click the
‘Launch Notepad.exe' button in my sample HTML file and the program
would start right up. (Note that my Internet security settings are
always at Medium, my Local intranet security settings are at
Medium-low, and I've never had to mess with the individual ActiveX
security settings to get this code to work.)

However, one of the following critical updates has broken the ‘Launch
Notepad' code. It doesn't matter what my Internet/intranet security
settings are, or whether I've enabled unsafe ActiveX scripting. My
list of suspects is: KB842773, KB840315, KB841873, KB839645. (I have
four computers running Windows XP SP-1 at my desk, and each has the
same version of Internet Explorer installed-
6.0.2800.1106.xpsp2.030422-1633. The Launch Notepad code stopped
working on two of them this week, and still worked on the other two.
As a test, I ran Windows Update on one of the working systems and
found that after the patches were applied, my code no longer worked. I
even restored that machine's pre-patched ghost image and confirmed
that the code worked again. Next, I ran Windows Update a second time,
and allowed the aforementioned patches to be installed. Again, it
broke my code.)

You can confirm whether you have these patches installed on your
machine a number of ways, but perhaps the easiest is to open your
Windows folder and look for ‘$NtUninstallKBxxxxxx' folders with names
matching the patches I listed.

And then there's the second method, used by the ‘Launch Regedit.exe'
button. While this will actually still launch the EXE file, it's
undesirable because it always prompts you with a dialog that starts
out "An ActiveX control on this page might be unsafe…" Note that this
even happened before the patches, again regardless of the
Internet/Local intranet security settings.

* QUESTION 1: Is there any way to get ShellExecute to work again once
the new critical updates are installed?

* QUESTION 2: Failing that, how can I get around the unsafe control
warning with the Wscript.Shell method, for a local HTML file that's
trying to launch a local EXE?

* QUESTION 3: Is there any OTHER way for an honest guy like me to
launch a local EXE from a local HTML file?

Thanks, and here's the sample HTML file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" language="JavaScript">

function LaunchNotepad()
{
var launcher = new ActiveXObject("Shell.Application");
launcher.ShellExecute("Notepad.exe", "", "", "open", "1");
}

function LaunchRegedit()
{
var launcher = new ActiveXObject("WScript.Shell");
launcher.Run("Regedit.exe");
}

</script>
</head>
<body>
<form name="Form1">
<input name="ButtonNotepad" value="Launch Notepad.exe"
onclick="LaunchNotepad()" type="button"> <br>
<br>
<input name="ButtonRegedit" value="Launch Regedit.exe"
onclick="LaunchRegedit()" type="button">
</form>
</body>
</html>

View 9 Replies View Related

JQuery :: Post HTML Data Using $.ajax() Method?

Jun 15, 2009

I want to post some HTML (contained in a div on the page) data using jQuery using $.ajax() method. But it is not working.

<script language="javascript" type="text/javascript">
function PostHTMLContentTOServer() {
var pageData = document.getElementById
("MainDiv").innerHTML;

[Code]....

View 3 Replies View Related

JQuery :: .load() Method Won't Get Html From A Parent Directory

Feb 20, 2010

I'm trying to use the ajax load() method to load a file from a parent directory, e.g.

$("#divTests").load("../tests.htm");

But that doesn't work. I can load a simple html file from the same directory as my html file or a descendant directory, but not an ancestor directory. Nor can I load from an external server.

I'm doing my testing on my PC and I'm not running a server (apache or otherwise). Just using it as a simple client. Is that possibly the problem? Or is there something else I'm missing? If that is the problem, is there a workaround?

View 2 Replies View Related

JQuery :: Why Does String Replace() Not Work For The Results Of The Html() Method

Aug 13, 2011

I've seen an other post talking about not being able to perform a .html().replace() also, but no one replied.

[URL]

Why is this? I ran into the same problem and from what I was seeing, the replace() was only replacing the very first match. My work around was pretty simple, I just keep running replace() until it was done, but I'm dumbfounded as to why this would need to be done.

while (newLastRow.html().indexOf(settings.placeholder) > -1){
newLastRow.html(newLastRow.html().replace(settings.placeholder, curTotal)); }

As with the other post, I'm dynamically adding html to the page using a template, where the replace() method is updating the IDs of the fields when adding a new instance.

What's special about the value returned by the html() method? Is there a different preferred way to do this?

View 3 Replies View Related

JQuery :: Plugin In Websphere Portal Which Uses Dojo - Error Persist While The Page Is Loaded

Nov 5, 2011

We are using jquery plugin in websphere portal which uses dojo, one objservation is both use $ sign to start the function.

We have tried following.

1) We have put statement for jquery conflick $j = $.noconflict();

2) Still error persist while the page is loaded.

3) After this we have find Replaced $ with $j in all plugin files still it says $j is undefined. Do we need to replace it at all places or on specific places? Please see below code how it looks like after replacing $ with $j and let us know if this is correct.

View 1 Replies View Related

Round Down To Nearest .25 ?

Aug 13, 2010

I need to round down to the nearest quarter hour (or .25 in decimal) via Javascript and have not come across any appropriate code yet.

View 4 Replies View Related

Gradients And Round Corners

Jul 23, 2005

I haven't found in my CSS book how to create a gradient to fill a division
tag, and to create a border with round corners.

Is it possible using either CSS or JavaScript? I'd like to create a menu bar with a gradient in the background, and I want the top corners to be a little round with a 5px radius.

View 3 Replies View Related

JQuery :: How To Round Up To 2 Decimals

Apr 27, 2009

I can'nt ffigure out how to round up the result of division 10/3 for example and to show only 3.33 as result

View 2 Replies View Related

Round Off This Calc To 2 Decimals?

Jan 3, 2010

First time user of Javascript and built an online calculator, trouble is I dont know where or how to code it so the answer ends with only 2 decimals

I have embedded code, Personally I think it's a miracle the darn thing works.:thumbsup: Link to page it's on [URL]...I have searched and read but after hours of trying stuff gave up.

<!--
function treevalue() {
document.volume.result.value=(((3.14159*((document.volume.radius.value)*(document.volume.radius.valu e)))*(document.volume.height.value))/3)*(document.volume.base.value)*(document.volume.e.value)*(document.volume.fv.value)*(document.volum e.l.value);

[Code]...

View 9 Replies View Related

Still Can't Fix Math.round / Make It Possible?

Nov 8, 2011

Just started to learn java & came up with the following, but can't get the math.round to work. Anyone able to tell me where I'm going wrong please ? code...

View 9 Replies View Related

Round Off A Number Function

Jul 22, 2002

To round off a value to a specified number of digits:

function RoundIt(Value,Digits) {
&nbsp;var P=Math.pow(10,Digits);
&nbsp;var R=Math.round(Value*P)/P;
&nbsp;var G=true;
&nbsp;while(G) {
&nbsp;&nbsp;R=String(R);
&nbsp;&nbsp;var L=R.length;
&nbsp;&nbsp;var I=R.indexOf('.');
&nbsp;&nbsp;if (I == -1) {
&nbsp;&nbsp;&nbsp;R=R+'.'
&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;var D=L-I-1;
&nbsp;&nbsp;&nbsp;if (D < Digits) {
&nbsp;&nbsp;&nbsp;&nbsp;R=R+&#390;'
&nbsp;&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;&nbsp;G=false;
&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
&nbsp;}
&nbsp;return R;
}

View 2 Replies View Related

Imitate PHP Round Function In JS?

Jun 22, 2011

When rounding these 2 numbers in PHP and JS i get the following results:

22.044960000000003

PHP = 22.04
JS = 22.05 [code].....
}
I have tried many functions but cant seem to produce the same result as the PHP round. Does anyone have a solution to how can i get the same result using JS?

View 14 Replies View Related

Round Up 2 Decimal Places

Nov 17, 2011

I am trying to use the following javascript [URL] to create something similar to the example on [URL] for a school project but I wondered if someone could advise me how I can round numbers to 2 decimal places in the field box as I have to convert the calculated value by an exchange rate, e.g.:

where x=100 and y=50
calculate="(x+y)/1.55"

returns a value of 96.77419355. I would like to round this figure up to 2 decimal places so it would read 96.77 but I cannot figure out how to do this.

View 6 Replies View Related

JQuery :: Event-Bubbling The Other Way Round?

Apr 30, 2009

Ive written this source

[Code]...

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved