Click here to Skip to main content
15,889,721 members
Home / Discussions / Web Development
   

Web Development

 
QuestionWhat's going on with this javascript? Pin
Mundo Cani21-May-07 18:24
Mundo Cani21-May-07 18:24 
AnswerRe: What's going on with this javascript? Pin
Expert Coming21-May-07 20:41
Expert Coming21-May-07 20:41 
GeneralRe: What's going on with this javascript? Pin
Mundo Cani22-May-07 7:59
Mundo Cani22-May-07 7:59 
AnswerRe: What's going on with this javascript? Pin
Guffa21-May-07 21:08
Guffa21-May-07 21:08 
GeneralRe: What's going on with this javascript? Pin
Mundo Cani22-May-07 7:59
Mundo Cani22-May-07 7:59 
AnswerRe: What's going on with this javascript? Pin
Lalafaraz21-May-07 23:43
Lalafaraz21-May-07 23:43 
GeneralRe: What's going on with this javascript? Pin
Mundo Cani22-May-07 8:00
Mundo Cani22-May-07 8:00 
QuestionModal dialog form unable to return values to a webpart Pin
singhmanpreet21-May-07 13:17
singhmanpreet21-May-07 13:17 
Hi,

I have a web part page with a toolbar webpart and a grid webpart. In the toolbar, I have menu-items to update a field.

For selecting the value of the field I have another asp.net webform which shows the various options in a dropdownlist.
This form has to be a modal form and has to be shown on click the Toolbar menu items. When the user selects an option from the drop-down list and click OK then the option selected has to be
returned to the web-part page from where the webform was shown.

I'm able to do this when I have a Webform and not a sharepoint webpart page as the parent page. When I use a sharepoint web-part page, this doesn't work.

Code Snippet:

grid webpart(in a webpart page):

• Code-behind
void webpart_SetToolbarMenuItemProperties(object sender, SetMenuItemPropertiesEventArgs e)
{
switch (e.MenuItem.MenuItemAOTName.ToLower())
{
case "smmmileadchangestatuspostpone":
e.MenuItem.ClientOnClickScript = "UpdateStatusWindow()" ;
break;
}
}

• Html source


function UpdateStatusWindow()
{
var returnVal = window.showModalDialog('http://localhost/_layouts/ep/smmLeadReasonId.aspx','','dialogWidth:200px;dialogHeight:120px;status:no');
alert (returnVal);



Aasp.net form shown as modal form

• Html source




function Close()
{
window.returnValue = getSelectedReason();
window.close();
}
function getSelectedReason()
{
return form1.ddlUpdateStatus.value;
}


If anyone has some idea why this is not working, please provide your inputs.




Thanks,
Manpreet
QuestiongetElementById() when element is in MasterPage Pin
Mundo Cani21-May-07 11:53
Mundo Cani21-May-07 11:53 
AnswerRe: getElementById() when element is in MasterPage Pin
JimmyRopes21-May-07 13:32
professionalJimmyRopes21-May-07 13:32 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani21-May-07 18:09
Mundo Cani21-May-07 18:09 
GeneralRe: getElementById() when element is in MasterPage Pin
JimmyRopes22-May-07 1:22
professionalJimmyRopes22-May-07 1:22 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani22-May-07 9:45
Mundo Cani22-May-07 9:45 
GeneralRe: getElementById() when element is in MasterPage Pin
Guffa22-May-07 1:35
Guffa22-May-07 1:35 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani22-May-07 8:01
Mundo Cani22-May-07 8:01 
AnswerRe: getElementById() when element is in MasterPage Pin
Guffa21-May-07 23:36
Guffa21-May-07 23:36 
AnswerRe: getElementById() when element is in MasterPage Pin
Lalafaraz21-May-07 23:50
Lalafaraz21-May-07 23:50 
GeneralRe: getElementById() when element is in MasterPage Pin
Mundo Cani22-May-07 8:02
Mundo Cani22-May-07 8:02 
QuestionLINKBUTTON - CENTER TEXT in ASP.NET Pin
hifiger200421-May-07 4:16
hifiger200421-May-07 4:16 
AnswerRe: LINKBUTTON - CENTER TEXT in ASP.NET Pin
Christian Graus21-May-07 12:00
protectorChristian Graus21-May-07 12:00 
GeneralRe: LINKBUTTON - CENTER TEXT in ASP.NET Pin
hifiger200421-May-07 22:31
hifiger200421-May-07 22:31 
QuestionIs there any event to identify that AJAX Collapsible panel extender is Expanded/Collapsed ? Pin
Sarang_Deshpande21-May-07 0:14
Sarang_Deshpande21-May-07 0:14 
Questionimage hendeling help me Pin
jayvaishnav8220-May-07 20:12
jayvaishnav8220-May-07 20:12 
AnswerRe: image hendeling help me Pin
Christian Graus20-May-07 21:03
protectorChristian Graus20-May-07 21:03 
GeneralRe: image hendeling help me Pin
jayvaishnav8221-May-07 0:43
jayvaishnav8221-May-07 0:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.