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: -
table
-
row for holding the whole page HTML
-
table
-
row for holding the accordian
-
table
-
row for holding the specific content tab
-
div(WizBody)
-
end div
-
end row
-
end table
-
end row
-
end table
-
end row
-
end table
-
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
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).
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. -
Content-type: text/xml
-
-
-
<table width='95%' align='center'>
-
<tbody>
-
<tr><td>
-
<form name='TeamEdit'>
-
<center>[Click on the <img src="images/edit.gif" /> image to edit corresponding field]</center><br />
-
<font size='-4'><br /></font>
-
<table class='border' cellspacing='10' align='center'>
-
<tbody>
-
<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>
-
<tr><td>Team Login</td><td><input type='text' class='textread' name='TeamLogin' value="Team1" readOnly='readonly' size='10' /></td></tr>
-
<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>
-
<tr><td>Level Name</td><td><input type='text' class='textread' name='LevelName' value="Ipsin" readOnly='readonly' size='10' /></td></tr>
-
<tr><td colspan='2'>Comment: <br />
-
-
<textarea class='textinput' name='Comment' cols='40' rows='5' wrap='virtual'></textarea>
-
</td></tr>
-
</tbody>
-
</table>
-
</form>
-
<form>
-
<table width='30%' border='0' align='right' cellspacing='30'>
-
<tbody>
-
<tr>
-
-
<td><input type='button' class='btn' value='Next >' onClick="javascript:display('CredBody',new Array('Module','Cred','TeamLogin','Team2'));" /></td>
-
<td><input type='button' class='btn' value='Summary' onClick="javascript:display('CredBody',new Array('Module','Cred','TeamLogin','Summary'));" /></td>
-
</tr>
-
</tbody>
-
</table>
-
</form>
-
</td></tr>
-
</tbody>
-
</table>
-
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
|
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();
|
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?
|
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.
|
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
| |
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:
|
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)
|
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...
|
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>
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |