Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0asp: dropdown Page flickering problem after returning false using javascriptasp: dropdown Page flickering problem after returning false using javascript
Previous
 
Next
New Post
11/17/2008 10:01 AM
 

page flickering problem on selecting a value in asp: dropdown ....

function hideList(newList, drpDwn)
{
if (drpDwn.options[drpDwn.selectedIndex].value == 'NewSearch')
{
document.getElementById(drpDwn.id).style.display="none";
document.getElementById(newList.id).style.display="inline";
return false;
}
else
{
return true;
}
}
function hideTable(newList, drpDwn)
{
document.getElementById(newList).style.display="none";
document.getElementById(drpDwn).style.display="inline";
document.getElementById(drpDwn).selectedIndex=0;
}


some design page code
------------------------------
<asp: DropDownList ID="drpMoveItemsTo" runat="server" OnSelectedIndexChanged="drpMoveItemsTo_SelectedIndexChanged"
Width="150px" AutoPostBack="True">
</asp: DropDownList></td>
</tr>
<tr>
<td style="width: 126px">
<table id="newListName" style="width: 151px">
<tr>
<td style="width: 64px; height: 26px;">
<asp:TextBox ID="txtNewListName" runat="server" Width="61px"></asp:TextBox></td>
<td style="width: 30px; height: 26px;">
<asp:LinkButton ID="lnkAddList" runat="server" Font-Names="Arial" Font-Size="X-Small"
Font-Underline="True" ForeColor="Blue" OnClick="lnkAddList_Click">Add</asp:LinkButton></td>
<td style="font-size: 9pt; height: 26px">
<a id="lnkCancelNewList" href=" hideTable('newListName', '<%=drpMoveItemsTo.ClientID %>')"
style="font-size: 12px; font-family: Arial"><span style="color: #000000">Cancel</span></a>
</td>
</tr>
</table>

NOW THE PROBLEM IS
******************************************************

asp: dropdown autopostback set to true ...

When i select a particular value in asp: dropdown it will call a javascript function[above said, hideList(newList, drpDwn)] and hide the dropdown and show a table and last line of code says, return false. It means, not to postback, that means "NO FLICKERING OF PAGE". But here the page get flickered but i check it is not going back to page_load, that means, no postback. But still the page get flickered.

Now on hiding the asp: dropdown, a table with three controls will be shown and on click of a link in that table, the table will get hided and dropdown will displayed back. javascript function above shown [hideTable(newList, drpDwn)]. But here, there is no flickering happens. It will hide the table with controls and shows the dropdown, but no page flickering ... works fine ..

So why it is happening the page flicker on asp: dropdown onchange event even after returning false ......... any fix ?

Hope the question is clear .......
 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0asp: dropdown Page flickering problem after returning false using javascriptasp: dropdown Page flickering problem after returning false using javascript


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out