Does anyone know what I can use to show something other then innerHTML
to show html from a ajax call?
Phillip M. Vector wrote:
Brad Wood wrote:
Also, what kind of element is character? IE doesn't like it when you
attempt to innerHTML a table after page load.
It's an area surrounded with
alert();
Or get FireBug.
-Original Message-
From: Phillip M. Vector [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2008 10:40 AM
To: CF-Talk
Subject: Re: Unknown JS error when doing AJAX.
Does anyone know what I can use to show something other then innerHTML
to show html from
PROTECTED]
Sent: 30 July 2008 16:40
To: CF-Talk
Subject: Re: Unknown JS error when doing AJAX.
Does anyone know what I can use to show something other then innerHTML
to show html from a ajax call?
Phillip M. Vector wrote:
Brad Wood wrote:
Also, what kind of element is character? IE doesn't like
No.. That isn't what I'm asking...
I have code (posted earlier) that performed an ajax call and displayed
something. It worked for Firefox, but not for IE.
I tried a few solutions and it was suggested that IE doesn't like
assigning innerHTML after the page loads.
I changed
I have Firebug and yes, I agree that it's great for debugging. :)
My issue is that IE doesn't like the call and Firefox does. IE keeps
giving me an unknown runtime error.
Craig Dudley wrote:
Install the reverse proxy called 'Charles' in Firefox and you can watch the
calls themselves, that and
Sorry.. It's early..
It's not that IE doesn't like the call. It does. The query functions
perfectly (it updates a record). But when it comes to displaying the
result, it bombs.
Phillip M. Vector wrote:
My issue is that IE doesn't like the call and Firefox does. IE keeps
giving me an unknown
I changed
document.getElementById(character).innerHTML=xmlHttp.responseText;
to..
document.getElementById(character).value=xmlHttp.responseText;
This will not show anything, since the element character is a div, it
has no value.
Only input element have values.
So all what the statement
I figured it out finally. :)
It turns out that there WAS an issue with the form being processed.
IE doesn't like option1/option for values. Apparently, firefox adds
in the value command automatically.
option value=11/option solves the issue. :)
Thanks for everyones help. :)
-
From: Phillip M. Vector [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, July 30, 2008 10:39 AM
Subject: Re: Unknown JS error when doing AJAX.
Does anyone know what I can use to show something other then innerHTML
to show html from a ajax call?
Phillip M. Vector wrote
Brad Wood wrote:
Also, what kind of element is character? IE doesn't like it when you
attempt to innerHTML a table after page load.
It's an area surrounded with div
div id=character name=character
Please select an option
/div
I changed it from innerHTML to value, but now it doesn't
I don't know if you posted the entire code there, but if so, the second
close curly bracket should be a semicolon.
xmlHttp.onreadystatechange=
function()
{
document.getElementById(character).innerHTML=xmlHttp.responseText;
}
} == make that a semicolon
-- Josh
- Original Message -
No. I didn't post the whole code. Trying to cut down on extra code..
function updatestats()
{
xmlHttp=GetXmlHttpObject();
cfoutput
var url=#myself#AJAX.ShowCharacter;
url=url+House=+document.getElementById(House).value;
-
From: Phillip M. Vector [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, July 28, 2008 4:35 PM
Subject: Re: Unknown JS error when doing AJAX.
No. I didn't post the whole code. Trying to cut down on extra code..
function updatestats()
{
xmlHttp=GetXmlHttpObject
PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, July 28, 2008 4:35 PM
Subject: Re: Unknown JS error when doing AJAX.
No. I didn't post the whole code. Trying to cut down on extra code..
function updatestats()
{
xmlHttp=GetXmlHttpObject();
cfoutput
var url=#myself
, 2008 7:59 PM
Subject: Re: Unknown JS error when doing AJAX.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive
15 matches
Mail list logo