Click here to Skip to main content
16,021,449 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page which displays all the Events. Each event has a Calender link associated with it. Clicking on this Calender displays a dialog in jQuery. It is opening in first time. Then I click on another link Events Expired, which displays the events(load the events with out page postback) that are expired.

This also has the Calender link associated with it. When I click this time the dialog is not opening instead the div is displayed at the top of page.

So how can I solve this?
Posted
Updated 30-Nov-10 0:40am
v3

1 solution

Not sure I understand your problem; check the Javascript error console of your browser to see if there is any information. Is the id of your div/calendar changing?
 
Share this answer
 
Comments
deepak thomas 30-Nov-10 23:41pm    
I have a link like this
<a href="#" önclick="jQuery('#divCalender').dialog('open'); return false,test1('<%:Model.Event[i].eventId%>');">CALENDER/UPDATES</a>

$(function () {
$("#divCalender").dialog({
bgiframe: true,
height: 'auto',
modal: true,
autoOpen: false,
resizable: false,
closeOnEscape: true,
hide: 'slide',
width: 375,
title: 'Calender/Updates'
})



});

On clicking this link will show the dialog .This shows for the first time in Test.aspx page.Then there is an 'Expired Events' link on clicking bring up some events through ajax.When i click this link again the dialog box does not show up.How can i solve this?
deepak thomas 30-Nov-10 23:47pm    
no javascript error
deepak thomas 1-Dec-10 1:50am    
The problem is solved now.The div which was to be shown in dialog box was in the user control page.I moved this div to the aspx page and now it is displaying correctly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900