Login Register

javascript

Fields generated by javascript not posting?

I'm having a problem posting a form and was wondering if anyone here could help.

I have a form that has a user control inside of it, this user control will prompt for two dates, but the user has to be able to add as many date ranges as they want. So when they click the "Add" button, this code gets executed to generate the two textboxes. This is just one to make it easier to read:

var newSDTB = document.createElement('input');
newSDTB.id = this._count;
newSDTB.setAttribute('type', 'text');

DOM/html scoping problem is causing a "dijit.byId is not a function" error on dijit.byId()

I have been struggling with the dijit.byId is not a function for a while. I believe it is not a parsing (onAddLoad) problem. Although I am not sure. I suspect it to be a scoping issue with my html.

I get the following errors in firebug when I set a breakpoint a checkbox handler: undefineddojo._scopeArgs = [undefined];

"dijit.byId is not a function"

Here is a copy of html file:

Dons Book Checkbox

Custom Build Plugins / Layer and Documentation ideas

I’ve been pondering a few ideas relating to the build and jsdoc systems. I’m just sharing the early concepts here for open discussion, if anyone else is interested. Thanks to James Burke for providing insights on the current build system and pointing me in the right direction.

The Ideas:

Does shrinksafe use a javascript (js) linker for minification - how to eliminate unnecessary js code?

I can download the minified version of dojo, and try and publish this with my webapp, but the web page for shrink safe said something about using a js linker in the future to eliminate unnecessary packages? modules? code? from being included so that only the javascript that would be needed would be included.

Using Package system - error loading new .js file

Hello. I've been trying to use the package system for the first time to create a compressed release version of Dojo for my site. I was able to get the script to execute properly by running it with the following command:

build.bat profile=attic action=release releaseName=dojo-root optimize=shrinksafe layerOptimize=shrinksafe

I pulled the entire release directory into my project and I'm trying to reference the new .js file, but I'm getting a javascript error on page load saying it can't recognize "dojo". Here is some additional information.

dispatchEvent() to unknown leaf-node

Hi! [first post dance]

I wish to dispatch an event programmatically.
The scenario is well modelled by trying to spatially displace a regular event. E.g. a click-event occurs at (10,10) and I wish to re-dispatch (+10,+10) at (20,20).

I tried calling dispatchEvent() on the uber-container (e.g. DIV) but it seems that makes the event's target the uber-container rather than the HTML component at that location (e.g. a link, Dijit widget, etc). I tried synthesizing an entirely new event (rather than redispatching an extant one) and saw the same result.

Execute Javascript inside Dialog

I am loading Dialog using setHref .In the loaded page, I have javascript. How to execute that Javascript?

Rendering HTML and Javascript

Hi,

i have a big problem. I must create with dojo static websites.

Explanation:
I have generated a dynamic web application with dojo. But now i got a request to optimize the page for a search engine. I can't use jaxer on the server, so i can't render it on server side.

Question:
Is it possible to generate static files for a search engine during the dojo build process with rino?

I hoooooooooooope somebody can help me.

Cheers

dynamic execution of the XHR response content

Hello,

I'm evalutaing Dojo by recreating an application previously built with other frameworks. Liking it so far and it's a lot lighter! But just encounter my first road block was hoping someone could help me solve...

Does Dojo provide a means for dynamically executing an XHR response content. In other words parse the xhr response for script tags and execute this javascript?

We've used the following solution (a plugin for YUI) in the past if this helps you understand our requirement.

http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher

Many thanks in advanced!

JavaScript Function Call Stack Trace

Hi All,
I am currently usinf FireBug plug in for FireFox and I find it very useful... However, FireBug doesn't seem to be able to provide the Stack Trace. So I eventually get the method causing the problem, but I get no info on which methods were called before the call to this method was made. Thank you in advance :)

Regards,
Yazad Khambata

Syndicate content