473,785 Members | 2,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with AJAX calls in IE through accordion tabs

3 New Member
Hello,
I have an accordion (using the Rico framework at www.openrico.or g) and each tab of the accordion is basically some sort of wizard (having a description and a 'Start' button in each tab). When the Start button is pressed, I get the contents of only that tab updated. I am using the innerHTML property of the div placeholder to update the contents, and the HTML is provided from a perl script on the server side. The page layout looks something like this:

Expand|Select|Wrap|Line Numbers
  1. table
  2.    row for holding the whole page HTML
  3.    table
  4.       row for holding the accordian
  5.       table
  6.          row for holding the specific content tab
  7.             div(WizBody)
  8.             end div
  9.          end row
  10.       end table
  11.       end row
  12.    end table
  13.    end row
  14. end table
  15.  
The contents returned by the perl code is another HTML table which get inserted in the 'WizBody'.

This works perfectly as expected in FF (2.0). In IE (7.0) however, the first time I press any 'Start' button, the first table (which has a form inside it) shows up. Any subsequent pressing of 'Next' buttons do not work. Also, none of the 'Start' button in other tabs works either after the first display. Using MS Script debugger, I have noticed that the send method does get called for each of the AJAX request, and even the database activity in perl also takes place in the back-end. But the associated handler function in JS never gets called the second and subsequent times in IE.

Any ideas about what can be the problem?

Thanks.
-Samik
May 29 '07 #1
3 2288
acoder
16,027 Recognized Expert Moderator MVP
Can you give an example of a response returned by the Perl script?

IE has been known to have problems with tables that do not have tbodies (a tbody tag before the table rows begin and after they end).
May 30 '07 #2
samikrc
3 New Member
Thanks for the response.
Following is the code returned to the IE when the 'Start' button is pressed the first time. I actually did not have the tbody tags around the table elements, so I put them in after you mentioned it. But unfortunately that made no difference.
Note that, as I mentioned in my OP, when I press the 'Next' button in the form below (line 28), the perl routine in the backend does get called, it executes the routine and generates similar HTML code. Only, the JS stateChangeHand ler method for the XMLHTTP object, which should handle things when readyState changes to 4 and status changes to 200 etc. never gets fired. So, the backend processing looks good, but somehow the XML below gets lost and does not reach the browser.
Regards.

Expand|Select|Wrap|Line Numbers
  1. Content-type: text/xml
  2.  
  3.  
  4.         <table width='95%' align='center'>
  5.             <tbody>
  6.             <tr><td>
  7.             <form name='TeamEdit'>
  8.             <center>[Click on the <img src="images/edit.gif" /> image to edit corresponding field]</center><br />
  9.             <font size='-4'><br /></font>
  10.             <table class='border' cellspacing='10' align='center'>
  11.                 <tbody>
  12.                 <tr><td>Team Name</td><td><input type='text' class='textread' name='TeamName' value="Team1" readonly='readonly' size='10' onChange="javascript:showSave('TeamEdit');" /><img src="images/edit.gif" alt='Edit' onClick="javascript:letEdit('TeamEdit','TeamName');" /></td></tr>
  13.                 <tr><td>Team Login</td><td><input type='text' class='textread' name='TeamLogin' value="Team1" readOnly='readonly' size='10' /></td></tr>
  14.                 <tr><td>Password</td><td><input type='text' class='textread' name='Pass' value="test1" readOnly='readonly' size='10' onChange="javascript:showSave('TeamEdit');" /><img src="images/edit.gif" alt='Edit' onClick="javascript:letEdit('TeamEdit','Pass');" /></td></tr>
  15.                 <tr><td>Level Name</td><td><input type='text' class='textread' name='LevelName' value="Ipsin" readOnly='readonly' size='10' /></td></tr>
  16.                 <tr><td colspan='2'>Comment: <br />
  17.  
  18.                 <textarea class='textinput' name='Comment' cols='40' rows='5' wrap='virtual'></textarea>
  19.                 </td></tr>
  20.                 </tbody>
  21.             </table>
  22.             </form>
  23.             <form>
  24.             <table width='30%' border='0' align='right' cellspacing='30'>
  25.                 <tbody>
  26.                 <tr>
  27.  
  28.                     <td><input type='button' class='btn' value='Next >' onClick="javascript:display('CredBody',new Array('Module','Cred','TeamLogin','Team2'));" /></td>        
  29.                     <td><input type='button' class='btn' value='Summary' onClick="javascript:display('CredBody',new Array('Module','Cred','TeamLogin','Summary'));" /></td>
  30.                 </tr>
  31.                 </tbody>
  32.             </table>
  33.             </form>
  34.             </td></tr>
  35.             </tbody>
  36.         </table>
  37.  
May 30 '07 #3
samikrc
3 New Member
In a last-ditch effort, I created a highly scaled down version of my page which demonstrates the problem. Can anyone have a look and see if something strikes as un-natural or problematic? I tested it, and it works in FF but not in IE7.
URL: http://samik.freeshell.org/test/ajaxtest.html

The backend perl is available at: http://samik.freeshell.org/test/ajaxTest.txt
Regards.
May 31 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6280
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I am just stating to use ajax, and have a perfect place to use the accordion control. I have it working fine, but need to have a normal asp button in one of the panes that fires an onclick event as normal. The button works fine outside of the pane, but once I put it in the pane it no longer fires the event. How can I get a button in the accordion to run a function on the server on the onclick event? Thanks.
3
3436
by: srilakshmim | last post by:
Hello I want to create Accordion (Ajax Control Tool Kit)dynamically. My Code is as follows Code: ( cpp ) protected void Page_Load(object sender, EventArgs e) { try { Accordion aCC = new Accordion();
7
1897
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We are looking at Ajaxing our existing web application. Question is...Should we Ajax any and everything we can, or not? One example...if a page posts back to itself, is that a good candidate for Ajax?
2
2168
by: LayneMitch via WebmasterKB.com | last post by:
Greetings. I'm reading this book that is teaching me the more appropriate way of assigning functions. It has an 'accordian' example that when you click on a link, it expands into other options and when you click it again it 'collapses'. I understand the most of it, but there is just one part I don't understand. Here's the code.
4
3786
by: ameshkin | last post by:
Hi Everybody, I'm just now learning javascript and I'm using mootools. What I want to do is to dynamically load a php page into accordian panel 2, depending on which radio button is selected in accordian panel 1. Here is a simplified version of my code. window.addEvent('domready', function() { var accordion = new Accordion('h3.atStart', 'div.atStart', { display: 0, //will open the 1st panel at start
8
2740
by: Tomasz J | last post by:
Hello developers, After migrating my web project application (using the old model) to .Net Framework 3.5 and Ajax Control Toolkit release 20820 the Accordion control no longer works correctly. In certain cases (only) it renders but is dead - does not initialize. Before the migration it worked, no changes have been made. Here is the complete scenario description:
7
6672
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a tabcontainer which has 1 panel already, however I want to try create the TabPanels dynamically. I followed the advice here: http://www.asp.net/learn/ajax-videos/video-156.aspx (3rd comment - Joe Stagner)
1
2139
by: E11esar | last post by:
Hi there. I have created an asp.net page with C# and have added two tabs using the respective AJAX control. I am trying to add a table within an AJAX Accordion control in the second tab but I am running into problems where the two accordian entries are not functioning correctly. If I don't use a table and just place some sample text within the accordian body then this works okay but once I add the table, the second accordion value appears on...
8
3607
by: quipo | last post by:
Hi, im using an accordion script but it doesnt work if i use it with ajax. example: <div id="accordion"> <dl class="accordion" id="slider"> <dt>click here for the 1st pane</dt> <dd>content of the 1st pane</dd> <dt>click here for the 1st pane</dt> <dd>content of the 1st pane</dd> <dt>click here for the 1st pane</dt>
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10330
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9952
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.