Login Register

href

Dialog, DateTextBox and dojo/method problems

Hi,
Using the dialog widget, I point it to a url that results in some content that has a DateTextBox widget.
For reasons that I won't get into here, I need to set the value of that DateTextBox in script (instead of the attribute). But I can't seem to get my script to execute when it's loaded via the href from the dialog. My understanding is that the way to do this is to embed a script in the DateTextBox element with a type of "dojo/method".

A simple test as shown below (as an example) does not work. I would expect to see the javascript alert box when the DateTextBox is created.

passing parameters in contentpane's href

I have a tabcontainer with a contentpane, let's call it editTab. Elsewhere I have a js function:

function modify(id) {
var editTab = dijit.byId("editTab");
submitTab.setHref="/edit.html?id=" + id;
submitTab.refresh();
dijit.byId("myTabContainer").selectChild(editTab);
}

Let's I call modify(42); On server side I get the request for edit.html, but with an empty querystring (you know, HttpServletRequest.getQueryString();). Does dojo eat away my parameters? Any way to go by this? Other than xhrPost and setContent?

href or button inside a grid cell

I am trying to get an href or button inside a grid cell to call a function.

First, i CAN'T seem to get an href in at all...(so please show me an href in a grid cell)...

also, i CAN get a button to show with the button tag... but once there i can't use onclick in the button tag, of course, bcause this is inserting the button for all cells in the column... so how do i enteract with it?

Syndicate content