|
-
Mar 18th, 2002, 11:24 AM
#1
Thread Starter
Frenzied Member
Dissapearing Images and outerHTML
I am using asp to build a table via info pulled from a database then I am using outerHTML to overwrite the table from a hidden fram to reflet the new data. Occasionaly my images that are in the cells of this table dissapear (the code is there but they dont display). Has anyone had a problem with this or does anyone have any suggestions?
Thanks
Michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Mar 19th, 2002, 09:18 AM
#2
Fanatic Member
I've had a similar problem using with this sort of thing when using netscape...sometimes it just doesn't display all the images. If its in Internet Explorer then its new to me...
-
Mar 19th, 2002, 09:56 AM
#3
Thread Starter
Frenzied Member
it seems others have had this problem also. I found this at google. It has a solution but I was not able to figure it out.
Google Groups View Thread missing images
michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Mar 19th, 2002, 10:22 AM
#4
Fanatic Member
Yeah, at least according to that microso$t guy its a known bug.
Try using a combination of insertAdjacentHTML, innerHTML & outerHTML until you can force a refresh.
-
Mar 19th, 2002, 10:25 AM
#5
Thread Starter
Frenzied Member
I tried doubling my outerHTML statement and that didnt work. And I coulden't get the MS guy's insert adjacent to work at all (due to being jscript?).
Thanks
Michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Mar 19th, 2002, 10:33 AM
#6
Fanatic Member
JScript and Javascript are very similar though. It should work with Javascript... try reading the docs for it http://msdn.microsoft.com/library/de...jacenthtml.asp
-
Mar 19th, 2002, 02:29 PM
#7
Thread Starter
Frenzied Member
jscript/javascript is not my stong point and I am having a problem with it.
I am getting the error:
Invalid target element for this operation
Code:
parent.frames[0].document.all.roomratetable.outerHTML = '<table id="roomratetable"><tr><td>test</td></tr></table>';
parent.frames[0].document.all.roomratetable.insertAdjacentHTML('beforeend', '<img id="imghack" style="display:none" src="dot.gif" height="1" width="1">');
my string that inserts the table is much longer than that so for the boards sake i cut it down
thanks
michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Mar 19th, 2002, 04:46 PM
#8
Fanatic Member
try changing it to
parent.frames[0].document.all("roomratetable").outerHTML
or if you are using IE 5+/NS6 use
parent.frames[0].document.getElementById("roomratetable").outerHTML.
If that still doesn't work try putting parent.frames[0].focus() before the code. Javascript is strange when it comes to Frames at times.
-
Mar 19th, 2002, 05:19 PM
#9
Thread Starter
Frenzied Member
sorry, forgot to specify, the outerHTML is fine... its the insertAdjacentHTML that is getting the error
thanks
michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Mar 22nd, 2002, 11:30 AM
#10
Thread Starter
Frenzied Member
I finished the rest of the project and now back to this problem... anyone have anyideas ? (keep in mind this is friday, the sooner I get done the sooner I can take off )
thanks
michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|