Forums

Submit button in IE

peverheart 06 May, 2009
I am using CC to make entries to a table. It works fine in Firefox, however, the same Submit buttons in IE do not work. When they are clicked, the page refreshes, but the page stays the same.

Specifically the 'new Link' code should take the user to the 'Front Permissions' page, but it does not.

Here is what I have for the 'new Link' code.
<input value="Add Child" name="add" type="submit"/>
'Edit Link'
<input value="Edit Child" name="edit" type="submit"/>
and 'Delete link'
<input value="Delete Child" name="delete" type="submit" />

I tried adding 'onClick' to no avail.

Does anyone else have this problem or how should it be fixed?
peverheart 06 May, 2009
Anyone else see this behaviour between the 2 browsers?

Here is what I have been able to debug so far.

I noticed that in FF the URL parameters of my 'add child' button contain:

'/index.php?option=com_chronoconnectivity&connectionname=test&task=newrecord'

and when viewing the same page in IE it is:

'/index.php?option=com_chronoconnectivity&connectionname=test'

IE does not have the 'task' param. If I add it manually to the URL, it will bring up the add record page...

Is this a ChronoConnectivity bug or what?

Any ideas Max or Grey???
GreyHead 07 May, 2009
Hi peverheart,

I did a couple of quick tests and some Googling around and this seems to be a 'feature' of the way IE handles form buttons.

The simple answer is not to use buttons here - use text or an image for your link instead - you can even use an image (or a css span) that looks like a button.

Bob
peverheart 07 May, 2009
Have you tested this idea in IE?
I did and it did not change the behaviour. After looking at the back end code, there is something relating to line 153 in chronoconnectivity.html.php.

Specifically it has to do with the '&' usage in the href. Something either in cc or joomla is encoding that to be & on the rendered page source. Which is what IE does not handle. FF can. I do know that IE needs this to be the actual ampersand, otherwise it is not picking it up as part of the URL parameters.

This is a fairly hardstop for me to decide if I can use this stuff. IE users make up a whole lot of my audience.
GreyHead 07 May, 2009
Hi perverheart,

I'm not quite sure what you are asking me here. Do Chronoconnectivity edit links work in IE - yes, I just tested in IE 6.7 & 8 with no problem. So. I'm not understanding exactly what the problem is??

Bob
peverheart 08 May, 2009
I am running Joomla 1.5.10, and needed to know if you could tell me what is wrong with the simple form I created using CC. The problem is this form does not operate in IE7 like it does in FF for me on 2 different computers.

Specifically the 'new Link' code should take the user to the 'Front Permissions' page, but it does not.
Here is what I have for the
'new Link' code.
<input value="Add Child" name="add" type="submit"/>
'Edit Link'
<input value="Edit Child" name="edit" type="submit"/>
and 'Delete link'
<input value="Delete Child" name="delete" type="submit" />

When the add child is clicked , it should take me to the Front Permissions page,but it does not in IE, only FF. What I see is that the page refreshes, and it stays on the same page. The only thing I can see differently (between the 2 browsers) from my end is that second ampersand variable(task=newrecord) when I hover over the add child link, is not there in IE. One more thing, if I manually add the second variable to the URL in the URL window, the page will load, but that is the only way I can get that page to load.
GreyHead 08 May, 2009
Hi peverheart,

But why are you using 'submit' inputs in there? As you've said, it doesn't work.

All you need is text or an image for the link that ChronoConnectivity creates - here is an example from a site I'm currently working on. It works OK in FF & IE.

Bob
peverheart 08 May, 2009
Ok. What you suggested works now.
But why? because in the tooltip for those fields state 'the HTML code that will replace...'. HTML code to me means code, not just a word. All the other fields allow fairly complex HTML and PHP to be entered. Perhaps a little more clearer documentation would help those of us who know too much and are dangerous. :wink:

Thank you.
This topic is locked and no more replies can be posted.